From 83859b685a02f196aafcaffb35335e0113711f56 Mon Sep 17 00:00:00 2001 From: icssoa <615206459@qq.com> Date: Wed, 17 Aug 2022 10:48:26 +0800 Subject: [PATCH] =?UTF-8?q?=E4=BC=98=E5=8C=96=E7=BC=96=E8=BE=91=E5=99=A8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- build/cool/lib/menu/index.ts | 4 +++- build/cool/lib/menu/rules.ts | 8 +------- src/modules/base/components/editor/wang.vue | 11 ++++++++--- src/modules/demo/views/editor-quill.vue | 4 ++-- 4 files changed, 14 insertions(+), 13 deletions(-) diff --git a/build/cool/lib/menu/index.ts b/build/cool/lib/menu/index.ts index f18baf6..a2a666a 100644 --- a/build/cool/lib/menu/index.ts +++ b/build/cool/lib/menu/index.ts @@ -232,7 +232,9 @@ export async function createMenu({ router, columns, prefix, api, filePath }: any upsert.items.push(format(item)); } - if (!["cl-codemirror", "cl-editor-quill"].includes(column.component?.name)) { + if ( + !["cl-codemirror", "cl-editor-quill", "cl-editor-wang"].includes(column.component?.name) + ) { table.columns.push(format(column)); } }); diff --git a/build/cool/lib/menu/rules.ts b/build/cool/lib/menu/rules.ts index 0541686..289b4ed 100644 --- a/build/cool/lib/menu/rules.ts +++ b/build/cool/lib/menu/rules.ts @@ -177,11 +177,8 @@ export default [ }, { test: ["rich", "text", "html", "content", "introduce", "description", "desc"], - table: { - name: "cl-editor-quill" - }, form: { - name: "cl-editor-quill", + name: "cl-editor-wang", props: { height: 400 } @@ -189,9 +186,6 @@ export default [ }, { test: ["code", "codes"], - table: { - name: "cl-codemirror" - }, form: { name: "cl-codemirror", props: { diff --git a/src/modules/base/components/editor/wang.vue b/src/modules/base/components/editor/wang.vue index cd763c4..2de724d 100644 --- a/src/modules/base/components/editor/wang.vue +++ b/src/modules/base/components/editor/wang.vue @@ -37,9 +37,10 @@