From b1b1996648199b230afeb9c0cd384fa57e6493e0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=A7=8B=E4=BA=8E=E5=88=9D=E8=A7=81?= <752204717@qq.com> Date: Tue, 23 Dec 2025 14:55:16 +0800 Subject: [PATCH] =?UTF-8?q?=E6=8F=90=E4=BA=A4?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/common/js/commonJS.js | 27 +- src/components/page/OnlineProofreading.vue | 219 ++++++------ .../OnlineProofreading/catalogue.vue | 319 +++++------------- .../page/components/table/content.vue | 2 +- src/components/page/components/table/word.vue | 191 ++++++----- 5 files changed, 351 insertions(+), 407 deletions(-) diff --git a/src/common/js/commonJS.js b/src/common/js/commonJS.js index f1bc642..9a515a2 100644 --- a/src/common/js/commonJS.js +++ b/src/common/js/commonJS.js @@ -2153,7 +2153,32 @@ ed.ui.registry.addButton('myuppercasea', { ed.insertContent('–'); } }); - + ed.ui.registry.addMenuButton('MoreSymbols', { + text: '···', // 按钮显示的三个点 + tooltip: 'More Special Characters', + onAction: () => {}, // 菜单主按钮点击通常不执行操作,由子菜单执行 + fetch: (callback) => { + const items = [ + { + type: 'menuitem', + text: 'en-dash (短划线)',//短划线 + onAction: () => ed.insertContent('–') + }, + { + type: 'menuitem', + text: 'minus sign (减号)',//减号 + onAction: () => ed.insertContent('−') + }, + { + type: 'menuitem', + text: 'hyphen (连接符)', + onAction: () => ed.insertContent('-') + }, + + ]; + callback(items); + } + }); ed.ui.registry.addButton('removeBlue', { text: 'Blue', // 按钮文本 diff --git a/src/components/page/OnlineProofreading.vue b/src/components/page/OnlineProofreading.vue index 74ca213..a956f0c 100644 --- a/src/components/page/OnlineProofreading.vue +++ b/src/components/page/OnlineProofreading.vue @@ -2,14 +2,66 @@
+ + + + + +
- + + - +
-
- - - + +
-
--> +
@@ -157,7 +214,8 @@ size="80vw" > - + + - + - +
diff --git a/src/components/page/components/table/content.vue b/src/components/page/components/table/content.vue index cae86b5..810a740 100644 --- a/src/components/page/components/table/content.vue +++ b/src/components/page/components/table/content.vue @@ -16,7 +16,7 @@ :value="value" :typesettingType="typesettingType" class="paste-area text-container" - :toolbar="!isAutomaticUpdate?['bold italic |customBlue removeBlue|LateX| myuppercase myuppercasea Line|subscript superscript|clearButton|searchreplace']:['bold italic |customBlue removeBlue| myuppercase myuppercasea Line|subscript superscript|clearButton|searchreplace']" + :toolbar="!isAutomaticUpdate?['bold italic |customBlue removeBlue|LateX| myuppercase myuppercasea Line MoreSymbols|subscript superscript|clearButton|searchreplace']:['bold italic |customBlue removeBlue| myuppercase myuppercasea Line|subscript superscript|clearButton|searchreplace']" style=" /* white-space: pre-line; */ line-height: 12px; diff --git a/src/components/page/components/table/word.vue b/src/components/page/components/table/word.vue index 9345118..6c81474 100644 --- a/src/components/page/components/table/word.vue +++ b/src/components/page/components/table/word.vue @@ -1065,61 +1065,48 @@ -
- -
+
+ + + +
+ + + + +
+