wip: 🚧 通知公告开发临时提交
通知公告开发临时提交
This commit is contained in:
@@ -30,6 +30,10 @@ const props = defineProps({
|
||||
type: [String],
|
||||
default: "",
|
||||
},
|
||||
excludeKeys: {
|
||||
type: Array<string>,
|
||||
default: [],
|
||||
},
|
||||
});
|
||||
|
||||
const emit = defineEmits(["update:modelValue"]);
|
||||
@@ -37,8 +41,10 @@ const emit = defineEmits(["update:modelValue"]);
|
||||
const modelValue = useVModel(props, "modelValue", emit);
|
||||
|
||||
const editorRef = shallowRef(); // 编辑器实例,必须用 shallowRef
|
||||
const mode = ref("default"); // 编辑器模式
|
||||
const toolbarConfig = ref({}); // 工具条配置
|
||||
const mode = ref("simple"); // 编辑器模式
|
||||
const toolbarConfig = ref({
|
||||
excludeKeys: props.excludeKeys,
|
||||
}); // 工具条配置
|
||||
// 编辑器配置
|
||||
const editorConfig = ref({
|
||||
placeholder: "请输入内容...",
|
||||
|
||||
Reference in New Issue
Block a user