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') { 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 = ` 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); }; 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": [