标签:子节点 expand nbu 状态 check sig model exp nod
onBusinessSelectChange(selectedKeys, info) { // console.log(‘selectedKeys changed: ‘, selectedKeys); // console.log(‘info changed: ‘, info); // 已勾选子节点以及半勾选状态的父节点 this.allSelectedNodes = selectedKeys.concat(info.halfCheckedKeys); this.businessSelectedRowKeys = selectedKeys; },
<a-tree showLine checkable v-model=‘businessSelectedRowKeys‘ @check="onBusinessSelectChange" :treeData=‘businessData‘ :checkedKeys="businessSelectedRowKeys" :autoExpandParent="true" > </a-tree>
data(){ return{ test: [], businessData: [], businessSelectedRowKeys: [], allSelectedNodes: [], } }
ant design of vue a-tree组件子节点不完全勾选获取父节点的值
标签:子节点 expand nbu 状态 check sig model exp nod
原文地址:https://www.cnblogs.com/xiadongqing/p/14941953.html