mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 19:19:57 +08:00
docs: Add table render cache faq (#23833)
This commit is contained in:
parent
e4a1a45b09
commit
74645b7baf
@ -289,3 +289,7 @@ You may need to keep current page after filtering when fetch data from remote se
|
||||
### Why Table pagination show size changer?
|
||||
|
||||
In order to improve user experience, Pagination show size changer by default when `total >= 50` since `4.1.0`. You can set `showSizeChanger=false` to disable this feature.
|
||||
|
||||
### Why Table fully render when state change?
|
||||
|
||||
Table can not tell what state used in `columns.render`, so it always need fully render to avoid sync issue. But you can use `components` to customize component for conditional render. ref [#23763](https://github.com/ant-design/ant-design/issues/23763).
|
||||
|
@ -293,3 +293,7 @@ Table 移除了在 v3 中废弃的 `onRowClick`、`onRowDoubleClick`、`onRowMou
|
||||
### 表格分页为何会出现 size 切换器?
|
||||
|
||||
自 `4.1.0` 起,Pagination 在 `total` 大于 50 条时会默认显示 size 切换器以提升用户交互体验。如果你不需要该功能,可以通过设置 `showSizeChanger` 为 `false` 来关闭。
|
||||
|
||||
### 为什么 更新 state 会导致全表渲染?
|
||||
|
||||
由于 `columns` 支持 `render` 方法,因而 Table 无法知道哪些单元会受到影响。你可以通过 `components` 属性来精确控制子元素的渲染,请参考 [#23763](https://github.com/ant-design/ant-design/issues/23763)。
|
||||
|
Loading…
Reference in New Issue
Block a user