feat: redis支持zset、redis数据操作界面优化

This commit is contained in:
meilin.huang
2023-04-16 00:50:36 +08:00
parent 1d858118d5
commit af55193591
40 changed files with 2362 additions and 1332 deletions

View File

@@ -0,0 +1,41 @@
<template>
<div>
<el-input type="textarea" v-model="modelValue" />
</div>
</template>
<script lang="ts" setup>
import { reactive, watch, toRefs, onMounted } from 'vue';
const props = defineProps({
content: {
type: String,
},
})
const state = reactive({
modelValue: '',
});
const {
modelValue,
} = toRefs(state)
watch(
() => props.content,
(val: any) => {
state.modelValue = val;
}
);
onMounted(() => {
state.modelValue = props.content as any;
})
const getContent = () => {
return state.modelValue
}
defineExpose({ getContent })
</script>
<style lang="scss"></style>