根據element 樹形實作功能,如何清空 和單個洗掉右邊的資料,左邊選項同步變成未選中狀態。
uj5u.com熱心網友回復:
清空:this.$refs.tree.setCheckedKeys([])洗掉: delete(item) {
let index = this.getData.indexOf(item)
if (index > -1) {this.getData.splice(index, 1);}
this.$refs.tree.setChecked(item.id, false)
},
uj5u.com熱心網友回復:
很棒棒!多謝大佬轉載請註明出處,本文鏈接:https://www.uj5u.com/qita/159637.html
標籤:其他技術討論專區
下一篇:Linux pyhton錯誤
