Skip to content

Commit

Permalink
fix: 快速提示功能去除掉判断其后为空格时不唤起下拉的限制 DevCloudFE#1886
Browse files Browse the repository at this point in the history
  • Loading branch information
aolinpk committed Jun 13, 2024
1 parent 69917a5 commit f4e8981
Showing 1 changed file with 0 additions and 5 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -195,7 +195,6 @@ export function useEditorMd(props: EditorMdProps, ctx: SetupContext) {
editorIns.focus();
hideHint();
};

handler && handler({ prefix, cursorHint, callback });
};

Expand Down Expand Up @@ -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();
Expand Down

0 comments on commit f4e8981

Please sign in to comment.