網上查了半天,一大堆都說要改源碼的,最後發現有方法不用改源碼的this
獲取方法以下blog
this.$refs.tree.getCheckedKeys().concat(this.$refs.tree.getHalfCheckedKeys())get
將getCheckedKeys()和getHalfCheckedKeys()兩個方法獲取的數據合併就是咱們想要的數據了源碼