Replies: 2 comments
-
做到 ConfigProvider 上,Table 本身不做额外支持。现在 Table empty 已经有了,再加就杂了。 |
Beta Was this translation helpful? Give feedback.
0 replies
-
Fixed in #49613 |
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
-
动机
现目前针对 Table 设置空状态有两种方式:
locale.emptyText
<ConfigProvider rednerEmpty={name=> name=== 'Table' ? Xxx : null} />
方式 1 在文档中没找到明显说明地方。所以盲猜第二种方式也有不少人在用(我自己就是)
实施方案
新增一个
empty
(命名待定) 属性。React.ReactNode
允许开发者自定义显示空状态(source?: 'table' | 'table.filter')=> React.ReactNode
详细说明
第一条类型没啥好说的,就是一个 React.ReactNode , 也可以满足 #49599 的需求
第二条renderFunction 方式主要是为了解决 #49542 问题 ,具体解释说明移步:#49548 (comment)
缺点
没有,不影响之前使用
策略
Feature, minor version
Beta Was this translation helpful? Give feedback.
All reactions