Skip to content

Commit 76c27dd

Browse files
authored
Merge pull request #1911 from DevCloudFE/dev
update main from dev
2 parents 20101fe + 515490a commit 76c27dd

File tree

4 files changed

+6
-10
lines changed

4 files changed

+6
-10
lines changed

packages/devui-vue/devui/code-review/src/utils.ts

+1
Original file line numberDiff line numberDiff line change
@@ -165,6 +165,7 @@ export function parseDiffCode(container: HTMLElement, code: string, outputFormat
165165
matching: 'lines',
166166
outputFormat: outputFormat,
167167
highlight: true,
168+
diffStyle: 'char',
168169
rawTemplates: TemplateMap[outputFormat],
169170
});
170171
if (outputFormat === 'side-by-side') {

packages/devui-vue/devui/editor-md/src/icons-config.ts

+3-8
Original file line numberDiff line numberDiff line change
@@ -54,14 +54,9 @@ export const STRIKE_ICON = `<svg width="16px" height="16px" viewBox="0 0 16 16">
5454
</g>
5555
</svg>`;
5656

57-
export const COLOR_ICON = `<svg width="16px" height="16px" viewBox="0 0 16 16">
58-
<g id="edit-icon/background-color" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
59-
<g fill="#293040">
60-
<g>
61-
<path d="M10.4761905,8 L5.52380952,8 L4,12 L3,12 L7.5,-3.84581256e-13 L8.5,-3.84581256e-13 L13,12 L12,12 L10.4761905,8 L10.4761905,8 Z M10.0952381,7 L8,1.5 L5.9047619,7 L10.0952381,7 Z M2,14 L14,14 L14,16 L2,16 L2,14 Z" id="形状"></path>
62-
</g>
63-
</g>
64-
</g>
57+
export const COLOR_ICON = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
58+
<path fill-rule="evenodd" clip-rule="evenodd" d="M5.05597 9.5L4.05895 12H2.94092L7.55273 0.776367H8.44716L13.059 12H11.9409L10.9439 9.5H5.05597ZM5.45477 8.5H10.5451L7.99995 2.11801L5.45477 8.5Z" fill="#3B3E55"/>
59+
<path d="M1 13H15V16H1V13Z" fill="#3B3E55"/>
6560
</svg>`;
6661

6762
export const BACKGROUND_COLOR_ICON = `<svg width="16px" height="16px" viewBox="0 0 16 16">

packages/devui-vue/devui/editor-md/src/toolbar-config.ts

+1-1
Original file line numberDiff line numberDiff line change
@@ -266,7 +266,7 @@ class ToolBarHandler {
266266
};
267267

268268
static table = (editor: any) => {
269-
const table = `| | | |\n|--|--|--|\n| | | |`;
269+
const table = `\n| | | |\n|--|--|--|\n| | | |`;
270270
editor.replaceSelection(table);
271271
};
272272

packages/devui-vue/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-devui",
3-
"version": "1.6.21",
3+
"version": "1.6.22",
44
"license": "MIT",
55
"description": "DevUI components based on Vite and Vue3",
66
"keywords": [

0 commit comments

Comments
 (0)