Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

多选选中最后一级节点,且父子节点不关联的模式下,全选仍然能选中父节点,且期望点击父节点能选中所有子节点 #115

Open
r-qx opened this issue Dec 6, 2024 · 0 comments

Comments

@r-qx
Copy link

r-qx commented Dec 6, 2024

Bug 描述
多选选中最后一级节点,且父子节点不关联的模式下,全选仍然能选中父节点,且期望点击父节点能选中所有子节点

复现步骤
前提:多选、只可选最后一级节点、父子节点不关联
现象:点击父节点-子节点不被选中 期望:点击父节点选中所有子节点
现象:点击全选 - 选中所有节点 期望: 选中所有子节点

<CTreeSearch
ref="treeRef"
v-model="checkedNodes"
:titleField="props.label"
:keyField="props.id"
:checkable="multiple"
:selectable="!multiple"
:cascade="false"
:enableLeafOnly="true"
:defaultExpandAll="true"
@input="change"
@checked-change="change"
@selected-change="change"
/>

组件版本
"vue": "2.6.10",
"@wsfe/ctree": "^2.3.1",

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant