test tree

This commit is contained in:
Theluyuan 2023-05-18 08:17:29 +08:00
parent 9942139736
commit fd3eb2e065
4 changed files with 55 additions and 55 deletions

View File

@ -146,7 +146,7 @@ const _sfc_main$1 = defineComponent({
class: normalizeClass({ class: normalizeClass({
"layui-tree-txt": true, "layui-tree-txt": true,
"layui-disabled": node.isDisabled, "layui-disabled": node.isDisabled,
"layui-this": __props.selectedKey === node.id "layui-this": __props.selectedKey === node.id || node.isChecked
}), }),
onClick: withModifiers(($event) => handleTitleClick(node), ["stop"]) onClick: withModifiers(($event) => handleTitleClick(node), ["stop"])
}, [ }, [

View File

@ -17743,7 +17743,7 @@ const _sfc_main$K = defineComponent({
class: normalizeClass({ class: normalizeClass({
"layui-tree-txt": true, "layui-tree-txt": true,
"layui-disabled": node.isDisabled, "layui-disabled": node.isDisabled,
"layui-this": __props.selectedKey === node.id "layui-this": __props.selectedKey === node.id || node.isChecked
}), }),
onClick: withModifiers(($event) => handleTitleClick(node), ["stop"]) onClick: withModifiers(($event) => handleTitleClick(node), ["stop"])
}, [ }, [

View File

@ -182,7 +182,7 @@ const isChildAllSelected = computed(() => {
:class="{ :class="{
'layui-tree-txt': true, 'layui-tree-txt': true,
'layui-disabled': node.isDisabled, 'layui-disabled': node.isDisabled,
'layui-this': selectedKey === node.id, 'layui-this': selectedKey === node.id || node.isChecked,
}" }"
@click.stop="handleTitleClick(node)" @click.stop="handleTitleClick(node)"
> >

File diff suppressed because one or more lines are too long