d代码格式化
This commit is contained in:
parent
9c7280105d
commit
92fa833be7
@ -314,8 +314,12 @@ watch(
|
||||
} else {
|
||||
hasChecked.value = false;
|
||||
}
|
||||
if(tableSelectedKeys.value != props.selectedKeys){
|
||||
console.log("初始化赋值触发修改",tableSelectedKeys.value,props.selectedKeys)
|
||||
if (tableSelectedKeys.value != props.selectedKeys) {
|
||||
console.log(
|
||||
"初始化赋值触发修改",
|
||||
tableSelectedKeys.value,
|
||||
props.selectedKeys
|
||||
);
|
||||
emit("update:selectedKeys", tableSelectedKeys.value);
|
||||
}
|
||||
},
|
||||
|
@ -101,8 +101,8 @@ function handleTitleClick(node: TreeData) {
|
||||
if (!node.isDisabled) {
|
||||
emit("node-click", node);
|
||||
}
|
||||
if(props.showCheckbox){
|
||||
node.isChecked = !node.isChecked
|
||||
if (props.showCheckbox) {
|
||||
node.isChecked = !node.isChecked;
|
||||
}
|
||||
}
|
||||
|
||||
|
@ -103,13 +103,13 @@ watch(
|
||||
watch(
|
||||
() => props.checkedKeys,
|
||||
() => {
|
||||
console.log(tree.value)
|
||||
console.log(tree.value);
|
||||
if (!unWatch.value) {
|
||||
loadNodeList();
|
||||
}
|
||||
},
|
||||
{
|
||||
deep: true
|
||||
deep: true,
|
||||
}
|
||||
);
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user