riophae / vue-treeselect

A multi-select component with nested options support for Vue.js
https://vue-treeselect.js.org/
MIT License
2.91k stars 509 forks source link

在显示复选框的情况下,是否可以遵循父子不互相关联的做法 #475

Open ZakiQi opened 3 years ago

ZakiQi commented 3 years ago

有业务需要多选,但是各个节点独立,勾选子节点的时候父节点或子节点不会受影响

TitanFighter commented 3 years ago

Would be better to show an example tree of what you mean

ZakiQi commented 3 years ago
WX20211022-095146@2x

Like the check-strictly property of the Element-UI tree component, selecting the parent node does not affect the child node

TitanFighter commented 3 years ago

Like this https://vue-treeselect.js.org/#flat-mode-and-sort-values ?

TinaSprunt commented 1 year ago
:flat="true" // 平面模式。即父子不关联,等价于el-tree的checkStrictly
 :multiple="true" // 多选

效果: 图片