当前位置: 首页 > 工具软件 > SimpleEL > 使用案例 >

el-tree设置禁止选中和禁止选中框为选中状态

欧阳俊逸
2023-12-01
    const arr = res.data.data.menuidList;
        arr.forEach((item, index) => {
          const node = this.$refs.tree.getNode(item);
          if (node.isLeaf) {
            this.$refs.tree.setChecked(node, true);
          }
        });

 类似资料: