From 9ca1012957fcd1742bf712830d5660b7234f2db6 Mon Sep 17 00:00:00 2001 From: GreatZP Date: Mon, 18 Nov 2024 15:13:48 +0800 Subject: [PATCH 1/4] =?UTF-8?q?feat(code-review):=20=E5=AF=B9=E6=AF=94?= =?UTF-8?q?=E7=BA=A7=E5=88=AB=E9=BB=98=E8=AE=A4=E8=AE=BE=E7=BD=AE=E4=B8=BA?= =?UTF-8?q?char=E7=BA=A7=E5=88=AB?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/devui-vue/devui/code-review/src/utils.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/packages/devui-vue/devui/code-review/src/utils.ts b/packages/devui-vue/devui/code-review/src/utils.ts index 30ca771710..8f5a58a3e1 100644 --- a/packages/devui-vue/devui/code-review/src/utils.ts +++ b/packages/devui-vue/devui/code-review/src/utils.ts @@ -165,6 +165,7 @@ export function parseDiffCode(container: HTMLElement, code: string, outputFormat matching: 'lines', outputFormat: outputFormat, highlight: true, + diffStyle: 'char', rawTemplates: TemplateMap[outputFormat], }); if (outputFormat === 'side-by-side') { From 779ce82ec806bc630c5db93b1b7b495d5ca48c98 Mon Sep 17 00:00:00 2001 From: GreatZP Date: Mon, 18 Nov 2024 15:21:13 +0800 Subject: [PATCH 2/4] =?UTF-8?q?refactor(md):=20=E4=BC=98=E5=8C=96toobar?= =?UTF-8?q?=E9=A2=9C=E8=89=B2=E6=9B=B4=E6=94=B9=E5=9B=BE=E6=A0=87?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../devui-vue/devui/editor-md/src/icons-config.ts | 11 +++-------- 1 file changed, 3 insertions(+), 8 deletions(-) diff --git a/packages/devui-vue/devui/editor-md/src/icons-config.ts b/packages/devui-vue/devui/editor-md/src/icons-config.ts index 752fdad005..472b4c73a8 100644 --- a/packages/devui-vue/devui/editor-md/src/icons-config.ts +++ b/packages/devui-vue/devui/editor-md/src/icons-config.ts @@ -54,14 +54,9 @@ export const STRIKE_ICON = ` `; -export const COLOR_ICON = ` - - - - - - - +export const COLOR_ICON = ` + + `; export const BACKGROUND_COLOR_ICON = ` From 786d702480e3c5996352b31efe17df07f5ed4da6 Mon Sep 17 00:00:00 2001 From: GreatZP Date: Mon, 18 Nov 2024 15:21:54 +0800 Subject: [PATCH 3/4] =?UTF-8?q?refactor(md):=20=E4=BC=98=E5=8C=96=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E6=8F=92=E5=85=A5=E5=89=8D=E7=A9=BA=E8=A1=8C=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/devui-vue/devui/editor-md/src/toolbar-config.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/devui-vue/devui/editor-md/src/toolbar-config.ts b/packages/devui-vue/devui/editor-md/src/toolbar-config.ts index 588bd41619..d3711660ed 100644 --- a/packages/devui-vue/devui/editor-md/src/toolbar-config.ts +++ b/packages/devui-vue/devui/editor-md/src/toolbar-config.ts @@ -266,7 +266,7 @@ class ToolBarHandler { }; static table = (editor: any) => { - const table = `| | | |\n|--|--|--|\n| | | |`; + const table = `\n| | | |\n|--|--|--|\n| | | |`; editor.replaceSelection(table); }; From 78ba0d00c65c37ac5bfbb7cebd0cf4052f214a29 Mon Sep 17 00:00:00 2001 From: GreatZP Date: Mon, 18 Nov 2024 15:23:18 +0800 Subject: [PATCH 4/4] chore: update version --- packages/devui-vue/package.json | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/devui-vue/package.json b/packages/devui-vue/package.json index 95f03ed01c..b665bfd698 100644 --- a/packages/devui-vue/package.json +++ b/packages/devui-vue/package.json @@ -1,6 +1,6 @@ { "name": "vue-devui", - "version": "1.6.21", + "version": "1.6.22", "license": "MIT", "description": "DevUI components based on Vite and Vue3", "keywords": [