This commit is contained in:
陈红丽 2024-07-29 15:31:44 +08:00
parent 3fce0f3bf9
commit 7ae1b7da4b
4 changed files with 3 additions and 14 deletions

View File

@ -10,7 +10,7 @@
<el-form style="display: flex" ref="formRef" :model="formData" label-width="80px">
<div style="width: 880px;flex: none" :style="{height:fwbHeight+'px'}">
<el-form-item label-width="0px" prop="content">
<Editor ref="editorRef" :height="fwbHeight"/>
<Editor ref="editorRef" :height="fwbHeight" name="content"/>
</el-form-item>
</div>
<div style="flex:1;margin-left: 10px">

View File

@ -71,7 +71,6 @@
import type {FormInstance} from "element-plus";
import { categoryAdd,categoryUpdate,getCategoryList,getCategoryDetail } from '@/api/content/category';
import {onMounted, reactive, ref, shallowRef} from "vue";
import {getModulesKey} from "@/router";
import {message,buildTree} from "@/utils/auth";
import {useLockFn} from "@/utils/useLockFn";
const props = defineProps({
@ -93,16 +92,6 @@ const props = defineProps({
const emit = defineEmits(["success","update:visible"]);
const formRef = shallowRef<FormInstance>();
const componentsOptions = ref(getModulesKey());
const querySearch = (queryString: string, cb: any) => {
const results = queryString
? componentsOptions.value.filter((item) =>
item.toLowerCase().includes(queryString.toLowerCase())
)
: componentsOptions.value;
cb(results.map((item) => ({value: item})));
};
const formData = reactive({
id: "",
//id

View File

@ -47,7 +47,7 @@
prop="content"
:rules="{ required: true, message: '请输入通知内容', trigger: 'blur' }"
>
<Editor ref="editorRef" :height="fwbHeight" class="flex-1"/>
<Editor ref="editorRef" :height="fwbHeight" class="flex-1" name="data"/>
</el-form-item>
</div>
</el-form>

View File

@ -60,7 +60,7 @@
:file-list="item.filePath" :z-index="index"/>
</template>
<template v-else-if="item.type == 'ueditor'">
<Editor ref="editorRef" :height="fwbHeight" class="flex-1"/>
<Editor ref="editorRef" :height="fwbHeight" class="flex-1" name="setting"/>
</template>
</el-form-item>
</el-form>