Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(code-review): 对比级别默认设置为char级别; refactor(md): 优化toobar颜色更改图标; refactor(md): 优化表格插入前空行格式 #1910

Merged
merged 4 commits into from
Nov 18, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions packages/devui-vue/devui/code-review/src/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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') {
Expand Down
11 changes: 3 additions & 8 deletions packages/devui-vue/devui/editor-md/src/icons-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -54,14 +54,9 @@ export const STRIKE_ICON = `<svg width="16px" height="16px" viewBox="0 0 16 16">
</g>
</svg>`;

export const COLOR_ICON = `<svg width="16px" height="16px" viewBox="0 0 16 16">
<g id="edit-icon/background-color" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
<g fill="#293040">
<g>
<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>
</g>
</g>
</g>
export const COLOR_ICON = `<svg width="16" height="16" viewBox="0 0 16 16" fill="none">
<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"/>
<path d="M1 13H15V16H1V13Z" fill="#3B3E55"/>
</svg>`;

export const BACKGROUND_COLOR_ICON = `<svg width="16px" height="16px" viewBox="0 0 16 16">
Expand Down
2 changes: 1 addition & 1 deletion packages/devui-vue/devui/editor-md/src/toolbar-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -266,7 +266,7 @@ class ToolBarHandler {
};

static table = (editor: any) => {
const table = `| | | |\n|--|--|--|\n| | | |`;
const table = `\n| | | |\n|--|--|--|\n| | | |`;
editor.replaceSelection(table);
};

Expand Down
2 changes: 1 addition & 1 deletion packages/devui-vue/package.json
Original file line number Diff line number Diff line change
@@ -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": [
Expand Down
Loading