tiny-vue icon indicating copy to clipboard operation
tiny-vue copied to clipboard

🐛 [Bug]: TinyTree组件在节点编辑状态未正常聚焦输入框

Open banger0319 opened this issue 1 year ago • 1 comments

Version

3.11.1

Vue Version

3.3.7

Link to minimal reproduction

 <tiny-tree
    ref="treeRef"
    lazy
    node-key="_id"
    :load="loadNode"
    @edit-node="editNodeCB"
  >
    <template #default="{ data }">
        {{ data.label }}
    </template>
  </tiny-tree>

//省略右键菜单步骤,row为选中编辑的节点data,_id为节点唯一标识
const treeRef = ref(null)
const node = treeRef.value.getNode(row._id);
treeRef.value.editNode(node);

Step to reproduce

动画

What is expected

进入节点编辑模式时input框正常自动聚焦

What is actually happening

在第一次进入编辑时正常自动聚焦input框,但是往后就不行了

What is your project name

TinyPro二开的后台管理系统

Any additional comments (optional)

No response

banger0319 avatar Jul 24 '24 06:07 banger0319