From f4e89812aa4d693951fa483525c053440444f993 Mon Sep 17 00:00:00 2001 From: aolinpk <2755561608@qq.com> Date: Thu, 13 Jun 2024 17:32:34 +0800 Subject: [PATCH] =?UTF-8?q?fix:=20=E5=BF=AB=E9=80=9F=E6=8F=90=E7=A4=BA?= =?UTF-8?q?=E5=8A=9F=E8=83=BD=E5=8E=BB=E9=99=A4=E6=8E=89=E5=88=A4=E6=96=AD?= =?UTF-8?q?=E5=85=B6=E5=90=8E=E4=B8=BA=E7=A9=BA=E6=A0=BC=E6=97=B6=E4=B8=8D?= =?UTF-8?q?=E5=94=A4=E8=B5=B7=E4=B8=8B=E6=8B=89=E7=9A=84=E9=99=90=E5=88=B6?= =?UTF-8?q?=20#1886?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../devui/editor-md/src/composables/use-editor-md.ts | 5 ----- 1 file changed, 5 deletions(-) diff --git a/packages/devui-vue/devui/editor-md/src/composables/use-editor-md.ts b/packages/devui-vue/devui/editor-md/src/composables/use-editor-md.ts index 65d0c0a00e..fc89cd6ab7 100644 --- a/packages/devui-vue/devui/editor-md/src/composables/use-editor-md.ts +++ b/packages/devui-vue/devui/editor-md/src/composables/use-editor-md.ts @@ -195,7 +195,6 @@ export function useEditorMd(props: EditorMdProps, ctx: SetupContext) { editorIns.focus(); hideHint(); }; - handler && handler({ prefix, cursorHint, callback }); }; @@ -236,10 +235,6 @@ export function useEditorMd(props: EditorMdProps, ctx: SetupContext) { } } if (cursorHintStart > -1 && hint[0]) { - const spacePosition = value.lastIndexOf(' ', cursor.ch); - if (spacePosition > cursorHintStart) { - return; - } /* cursor元素将动态变更,设置settimeout保持其可以获取到值 */ setTimeout(() => { showHint();