clickTree(v, e) {
console.log(v.id);
console.log(e.parent.data.id);
}
data() {
return {
filterText: '',
treeData: [
{
"id": "0",
"label": "人员",
"children": [
{
"id":"1",
"label":"省调用户(2)"
},
{
"id":"2",
"label":"地调用户(2)"
}
]
}
],
defaultProps: {
"children": 'children',
"label": 'label'
}
}
打印结果: