Skip to content

Commit b488e86

Browse files
authored
fix(EditorMd): 修复需要一个空格才能艾特的问题 (#1797) (#1798)
1 parent 5c72c32 commit b488e86

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

Diff for: packages/devui-vue/devui/editor-md/src/composables/use-editor-md.ts

-1
Original file line numberDiff line numberDiff line change
@@ -215,7 +215,6 @@ export function useEditorMd(props: EditorMdProps, ctx: SetupContext) {
215215
const endPos = value.indexOf(' ', cursor.ch) > -1 ? value.indexOf(' ', cursor.ch) : value.length;
216216
hint = value.slice(startPos, cursor.ch);
217217
if (
218-
(startPos > 0 && value[startPos - 1] !== ' ') ||
219218
startPos < 0 ||
220219
!hint.includes(nowPrefix) ||
221220
hint.endsWith(' ') ||

Diff for: packages/devui-vue/package.json

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "vue-devui",
3-
"version": "1.6.3-editable-select.1",
3+
"version": "1.6.3-markdown.3",
44
"license": "MIT",
55
"description": "DevUI components based on Vite and Vue3",
66
"keywords": [
@@ -124,4 +124,4 @@
124124
"vitepress-theme-demoblock": "1.3.2",
125125
"vue-tsc": "0.38.8"
126126
}
127-
}
127+
}

0 commit comments

Comments
 (0)