Skip to content

Commit 4147df5

Browse files
authored
docs: to supplement the polling description in ProTable documentation (#8808)
1 parent 9e2e9d9 commit 4147df5

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

packages/table/src/components/table.md

+1
Original file line numberDiff line numberDiff line change
@@ -69,6 +69,7 @@ ProTable 在 antd 的 Table 上进行了一层封装,支持了一些预设,
6969
| --- | --- | --- | --- |
7070
| request | 获取 `dataSource` 的方法 | `(params?: {pageSize,current},sort,filter) => {data,success,total}` | - |
7171
| params | 用于 `request` 查询的额外参数,一旦变化会触发重新加载 | `object` | - |
72+
| polling | 是否轮询,polling 表示轮询的时间间隔,0 表示关闭轮询,大于 0 表示开启轮询,最小的轮询时间为 2000ms | `number \| ((dataSource: columnType[]) => number) \| undefined` | - |
7273
| postData | 对通过 `request` 获取的数据进行处理 | `(data: T[]) => T[]` | - |
7374
| defaultData | 默认的数据 | `T[]` | - |
7475
| dataSource | Table 的数据,ProTable 推荐使用 `request` 来加载 | `T[]` | - |

0 commit comments

Comments
 (0)