Skip to content

Commit bd976f4

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

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

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

Lines changed: 0 additions & 1 deletion
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(' ') ||

packages/devui-vue/package.json

Lines changed: 2 additions & 2 deletions
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)