perf: 新文本框聚焦自动选中内容

This commit is contained in:
pipipi-pikachu 2022-04-15 18:04:19 +08:00
parent bc8e5a97c9
commit b71ca3e144

View File

@ -66,7 +66,7 @@ export default defineComponent({
if (props.value === '请输入内容') {
setTimeout(() => {
selectAll(editorView.state, editorView.dispatch)
}, 0)
}, 100)
}
mainStore.setDisableHotkeysState(true)
emit('focus')