vue-treeselect icon indicating copy to clipboard operation
vue-treeselect copied to clipboard

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

Open ZakiQi opened this issue 3 years ago • 4 comments

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

ZakiQi avatar Oct 21 '21 09:10 ZakiQi

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

TitanFighter avatar Oct 21 '21 15:10 TitanFighter

WX20211022-095146@2x

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

ZakiQi avatar Oct 22 '21 02:10 ZakiQi

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

TitanFighter avatar Oct 22 '21 23:10 TitanFighter

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

效果: 图片

TinaSprunt avatar Aug 01 '23 09:08 TinaSprunt