树形表格能像Tree那样做展开才加载吗? #3044
Replies: 1 comment
-
搞定了 |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
Table里的树能在展开时异步加载吗,没看到实例
找到了例子,但是没搞明白:
/**
* 如果是懒加载,请确认自己完成了以下几个步骤
* 1. 提前设置 children 值为 true;
* 2. 在 onTreeExpandChange 事件中处理异步数据;
* 3. 自定义展开图标渲染 lazyLoadingTreeIconRender
*/
在onTreeExpandChange (onExpandedTreeNodesChange)中通过api取出数据后,怎么处理?直接返回肯定不对。
是需要直接重新set树形数据还是像Tree那样resolve?
Beta Was this translation helpful? Give feedback.
All reactions