d代码格式化

This commit is contained in:
Theluyuan 2023-05-18 14:36:04 +08:00
parent 9c7280105d
commit 92fa833be7
3 changed files with 10 additions and 6 deletions

View File

@ -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);
}
},

View File

@ -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;
}
}

View File

@ -103,13 +103,13 @@ watch(
watch(
() => props.checkedKeys,
() => {
console.log(tree.value)
console.log(tree.value);
if (!unWatch.value) {
loadNodeList();
}
},
{
deep: true
deep: true,
}
);