wip: 🚧 通知公告开发临时提交

通知公告开发临时提交
This commit is contained in:
Theo
2024-09-02 00:01:47 +08:00
parent 0850359002
commit 099ed1454a
3 changed files with 112 additions and 42 deletions

View File

@@ -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: "请输入内容...",