-
Notifications
You must be signed in to change notification settings - Fork 14.6k
Table: support tree structure data #14632
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
Conversation
DONNE
一个稍微复杂一点的例子:https://jsfiddle.net/2pca45y1/ |
Deploy preview for element ready! Built with commit c31fba6 |
good,原来的treetable都是自己扩展实现的,现在好了 |
自己扩展了一个treetable,现在官方终于支持了。nice |
终于等到这个支持了,不说了,改之前项目实现方法去。。。 |
|
还有问题呢,不过常规使用的话不影响。 |
el-table__row--level-1 在隐藏的时候,index序号显示不对,只能在展开/关闭的时候增/删数据才能显示正常 |
支持懒加载,正是需要的,如果把渲染方法抛出来就好了(可以定制图标) |
Guys, please use english, would be more readable 😄 |
Waiting for a long time😄😄 |
昨天浪费了整整一天找treegrid。。后来没有合适的,自己千辛万苦基于tree改了一个。今天居然就更新了:joy: |
可以支持3-4级吗 |
终于支持了,之前都是基于 展开行的table 修改了。 |
默认全部展开, 有bug 啊 |
是 bug 吗?提供个 demo 吧。 |
不算是这个 pr 引入的 bug。 |
@ziyoung 请问一下,目前可以设置默认展开么? |
请问下 2.7.0版本的树形表格怎么更换展开关闭的图标呢 |
更改 .el-icon-arrow-right:before |
请问怎么设置默认展开 |
目前不支持树结构数据table的展开。 |
@ziyoung 当给table设置一个height的时候,如果展开后表格超过了这个height(不展开的时候没超过),滚动异常,无法滚动。 如果不展开的时候,已经超过height,滚动一直存在就是正常的 |
@ziyoung 是不是应该给一个开关啊,有时候是给table一个树形的数据,但是不希望长成树形表格啊 |
While this is a nice feature it can unintentionally break a lot of consumers. E.g. we have production product data that has a a "children" property and since "row-id" is not implemented it will break that table very harshly. My suggestion is to add a toggle on |
支持数据属性字段配置么,就像tree组件的props属性可配置一样? @ziyoung |
如何才能默认展开。 如果能设置默认展开多少级 就好了。 |
@ziyoung 能支持默认展开 能够配置默认展开深度 最好 |
展开的功能以及配置功能完善 #15709 |
请问懒加载如何实现增删改并且维持现有的展开状态,且将数据添加进去呢? @ziyoung 大佬请指教 |
@ziyoung 您好,请问带复选框的树形表格如何默认勾选呢? |
Please make sure these boxes are checked before submitting your PR, thank you!
dev
branch.