refactor: ♻️ 使用 wangeditor-next 替换 wangeditor ,重构简化富文本编辑器组件的封装

This commit is contained in:
ray
2025-01-22 12:48:12 +08:00
parent f4380d56a3
commit b375352c22
4 changed files with 61 additions and 50 deletions

View File

@@ -177,9 +177,7 @@
<el-input v-model="formData.title" placeholder="通知标题" clearable />
</el-form-item>
<el-form-item label="通知内容" prop="content">
<div style="border: 1px solid #dcdfe6; border-radius: 4px">
<WangEditor v-model="formData.content" style="min-height: 480px" />
</div>
<WangEditor v-model="formData.content" />
</el-form-item>
<el-form-item label="通知类型" prop="type">
<Dict v-model="formData.type" code="notice_type" />
@@ -411,8 +409,3 @@ onMounted(() => {
handleQuery();
});
</script>
<style>
.editor-wrapper {
border: 1px solid #dcdfe6;
}
</style>