current-node-key 是el-tree 组件的一个属性,用于指定当前高亮(或选中)的节点的 key。这个属性通常与 node-key 属性一起使用,node-key 用于为树中的每个节点指定一个唯一的标识符(key)。 当current-node-key 被设置时,el-tree 会自动找到对应 key 的节点,并将其高亮显示(如果 highlight-current 属性为 true...
<el-treeref="myTree"data={this.tagtree}props={this.defaultProps}on-node-click={this.handleNodeClick}current-node-key={this.currentNodeKey}highlight-current={true}node-key="id"></el-tree> 在js中使用 this.$nextTick(() => {}) 配合写 this.$nextTick(() =>{this.$refs['myTree'].set...
Remove is-current class after setCurrentKey(null) triggered. What is actually happening? The is-current class is still on the node after reset. Lazac92 changed the title [Bug Report] el-tree node keep is-current class after reseting with "setCurrentKey(null)" [Bug Report] el-tree node ...