mirror of
https://github.com/viarotel-org/escrcpy.git
synced 2024-11-12 01:40:52 +01:00
修改设备重命名展示方式为click,避免为hover时输入中文焦点消失
This commit is contained in:
parent
5365622ca3
commit
dcfc76ebda
1
.gitignore
vendored
1
.gitignore
vendored
@ -21,6 +21,7 @@ lerna-debug.log*
|
||||
# User
|
||||
node_modules
|
||||
pnpm-lock.yaml
|
||||
yarn.lock
|
||||
*.local
|
||||
dist
|
||||
dist-ssr
|
||||
|
@ -1,9 +1,17 @@
|
||||
<!--
|
||||
* @Author: 抠脚本人
|
||||
* @QQ: 742374184
|
||||
* @Date: 2024-03-11 19:53:05
|
||||
* @LastEditTime: 2024-03-11 21:18:46
|
||||
* @Description:
|
||||
* 灵感来之不易,积累创造奇迹
|
||||
-->
|
||||
<template>
|
||||
<el-popover
|
||||
placement="bottom-start"
|
||||
:width="250"
|
||||
trigger="hover"
|
||||
@show="handleFocus"
|
||||
trigger="click"
|
||||
@show="handleClick"
|
||||
>
|
||||
<template #reference>
|
||||
<el-tag effect="light" class="cursor-pointer">
|
||||
@ -44,7 +52,7 @@ export default {
|
||||
// console.log('onChange', value)
|
||||
this.$store.device.setRemark(this.device.id, value)
|
||||
},
|
||||
async handleFocus() {
|
||||
async handleClick() {
|
||||
this.$refs.elInput.focus()
|
||||
},
|
||||
},
|
||||
|
Loading…
Reference in New Issue
Block a user