Skip to content

Commit

Permalink
tree增加getHlafCheckedNodes方法
Browse files Browse the repository at this point in the history
  • Loading branch information
yuri authored and yuri committed Mar 15, 2017
1 parent 7ec1363 commit 891cf1e
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
6 changes: 6 additions & 0 deletions src/views/tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,12 @@
'无',
'节点数组'
],
[
'getHalfCheckedNodes',
'获取被半选的节点',
'无',
'节点数组'
],
[
'getSelectedNodes',
'获取被选中的节点',
Expand Down
3 changes: 3 additions & 0 deletions vb/components/tree/tree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -190,6 +190,9 @@
getCheckedNodes(){
return this.getNodes(this.dataSource,{checked: true,childrenCheckedStatus:2});
},
getHalfCheckedNodes(){
return this.getNodes(this.dataSource,{checked: true,childrenCheckedStatus:1});
},
getChildrenCheckedStatus(children){
let checkNum = 0,child_childrenAllChecked = true;
for(let child of children){
Expand Down

0 comments on commit 891cf1e

Please sign in to comment.