Sfoglia il codice sorgente

table-tree-column 删除子节点时要需要把_expanded 设置为false #67

daxiongYang 6 anni fa
parent
commit
63bf7355bd
1 ha cambiato i file con 1 aggiunte e 0 eliminazioni
  1. 1 0
      src/components/table-tree-column/index.vue

+ 1 - 0
src/components/table-tree-column/index.vue

@ -72,6 +72,7 @@
72 72
        var ids = []
73 73
        for (var i = 0; i < data.length; i++) {
74 74
          if (parentIds.indexOf(data[i][this.parentKey]) !== -1 && parentIds.indexOf(data[i][this.treeKey]) === -1) {
75
            data[i]._expanded = false
75 76
            ids.push(data.splice(i, 1)[0][this.treeKey])
76 77
            i--
77 78
          }