mirror of
https://github.com/ZiuChen/ClipboardManager.git
synced 2025-06-07 13:54:05 +08:00
feat: 重新进入插件 清空输入框
This commit is contained in:
parent
bcaa2e29d5
commit
e22733530a
@ -45,6 +45,14 @@ const clear = () => {
|
||||
emit('update:modelValue', '')
|
||||
nextTick(() => window.focus())
|
||||
}
|
||||
|
||||
utools.onPluginEnter(() => {
|
||||
// 如果输入框有内容 则清空 并且移除焦点
|
||||
if (filterText.value) {
|
||||
clear()
|
||||
nextTick(() => document.activeElement.blur())
|
||||
}
|
||||
})
|
||||
</script>
|
||||
|
||||
<style lang="less" scoped>
|
||||
|
Loading…
x
Reference in New Issue
Block a user