feat: 优化搜索框行为 进入插件自动选中搜索框全部文本 #14

This commit is contained in:
ZiuChen 2022-08-19 15:13:23 +08:00
parent 29becf4a04
commit 54d83bce88
2 changed files with 1 additions and 1 deletions

View File

@ -197,6 +197,7 @@ utools.onPluginEnter(() => {
utools.copyText('ImageOverSized')
globalOverSize = false
}
document.querySelector('.clip-search input').select() // 进入插件将搜索框内容全选
focus()
toTop()
resetNav()

View File

@ -37,7 +37,6 @@ onMounted(() => {
const { key } = e
if (key === 'Escape' && props.fullData.data) {
// 退 Overlay
// TODO: detach utools退
emit('onOverlayClick')
e.stopPropagation()
}