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

[Bug Report] [Component] [table] el-table树形数据内使用type="selection"不能全选 #7920

Open
PeyFon opened this issue May 27, 2022 · 12 comments
Labels

Comments

@PeyFon
Copy link

PeyFon commented May 27, 2022

Bug Type: Component

Environment

  • Vue Version: 3.2.36
  • Element Plus Version: 2.2.2
  • Browser / OS: 版本 99.0.4844.84(正式版本)
  • Build Tool: Vue CLI

Reproduction

Related Component

  • el-table

Reproduction Link

Element Plus Playground

Steps to reproduce

点击左上角的选中全部,children内数据没有被选中

What is Expected?

children内数据应该被选中

What is actually happening?

children内数据未选中

Additional comments

(empty)

@PeyFon
Copy link
Author

PeyFon commented May 27, 2022

image

@L1yp
Copy link

L1yp commented May 27, 2022

提了几个月都没人修复 作者研究TableV2去了 结果V2的demo还好难跑┭┮﹏┭┮

@L1yp
Copy link

L1yp commented May 27, 2022

还有就是树型数据的时候 首列总是会出现一些问题 自从上次有个PR把缩进改动之后 估计并未考虑到首列的类型问题

还是更喜欢VXE那种 通过tree-node属性配置 哪一列是折叠展开的

@satrong
Copy link
Contributor

satrong commented May 27, 2022

我是根据 select 事件 和 toggleRowSelection 方法 做了二次包装

@tall-talker
Copy link

直接使用插槽,在里面包一个checkbox,自定义change事件,我是这么解决了,不知道有没有什么优雅的办法

@L1yp
Copy link

L1yp commented Jun 8, 2022

这么

哈哈 我的radio选项是这么做的,checkbox没实现 有点工作量, eltable的细节问题挺多的

@lanmin521
Copy link

请问有解决的小伙伴吗,可以分享下吗?

@L1yp
Copy link

L1yp commented Jun 21, 2022

请问有解决的小伙伴吗,可以分享下吗?

radio倒是简单,checkbox要自己计算状态 半选/全选/不选 还有首列缩进问题 最好官方能处理

@L1yp
Copy link

L1yp commented Jun 25, 2022

这个问题还没大佬修复麻 我知道改哪里的代码 但是提PR太麻烦了

@L1yp
Copy link

L1yp commented Jun 25, 2022

这个问题还没大佬修复麻 我知道改哪里的代码 但是提PR太麻烦了

我本地已经解决了问题

@WindBearr
Copy link
Contributor

马乐亚, 本地用table的方法手动去调。要考虑父子节点所有情况,有点折磨

@loosheng
Copy link
Contributor

loosheng commented Feb 5, 2023

fixed in v2.2.20 #10221

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

No branches or pull requests

7 participants