element-plus / element-plus

🎉 A Vue.js 3 UI Library made by Element team
https://element-plus.org
MIT License
24.28k stars 16.13k forks source link

[Bug Report] [Component] [table] [el-table] 树形表格 多选 时,无法级联选中子树 #7013

Open L1yp opened 2 years ago

L1yp commented 2 years ago

Bug Type: Component

Environment

Reproduction

Related Component

Reproduction Link

Element Plus Playground

Steps to reproduce

点击第三行的checkbox

What is Expected?

第四第五行也被选中

What is actually happening?

第四第五没有被选中

Additional comments

(empty)

L1yp commented 2 years ago

类似naiveUI的 TableProps.cascade

https://www.naiveui.com/zh-CN/os-theme/components/data-table#tree

RadiumAg commented 2 years ago

https://codesandbox.io/s/tree-table-luhv24?file=/src/components/table-tree.vue自己动手套了一层,总体还是解决了这个问题

L1yp commented 2 years ago

厉害,不过第一列没有对齐

发自我的iPhone

在 2022年8月31日,20:19,RadiumAg @.***> 写道:

 https://codesandbox.io/s/tree-table-luhv24?file=/src/components/table-tree.vue ,自己动手套了一层,总体还是解决了这个问题

— Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

RadiumAg commented 2 years ago

厉害,不过第一列没有对齐 发自我的iPhone 在 2022年8月31日,20:19,RadiumAg @.***> 写道:  https://codesandbox.io/s/tree-table-luhv24?file=/src/components/table-tree.vue ,自己动手套了一层,总体还是解决了这个问题 — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you authored the thread.

image