无论是点击勾选框还是点击树中的title名称 选中逻辑同步
<a-treecheckableselectablev-model:tree-data="treeData"v-model:selectedKeys="selectedKeys"v-model:checkedKeys="checkedKeys"@select="handleTreeSelect"></a-tree>const handleTreeSelect = (selectedKeys, e) => {const {node: {dataRef: {key}}} = eif(isEmpty(key)) returnif(e.selected) {checkedKeys.value = [...checkedKeys.value,key]} else {checkedKeys.value = checkedKeys.value.filter(checkKey => checkKey !== key)}
}