Skip to content

Commit

Permalink
docs: to supplement the polling description in ProTable documentation (
Browse files Browse the repository at this point in the history
  • Loading branch information
kelisiWu123 authored Oct 22, 2024
1 parent 9e2e9d9 commit 4147df5
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions packages/table/src/components/table.md
Original file line number Diff line number Diff line change
Expand Up @@ -69,6 +69,7 @@ ProTable 在 antd 的 Table 上进行了一层封装,支持了一些预设,
| --- | --- | --- | --- |
| request | 获取 `dataSource` 的方法 | `(params?: {pageSize,current},sort,filter) => {data,success,total}` | - |
| params | 用于 `request` 查询的额外参数,一旦变化会触发重新加载 | `object` | - |
| polling | 是否轮询,polling 表示轮询的时间间隔,0 表示关闭轮询,大于 0 表示开启轮询,最小的轮询时间为 2000ms | `number \| ((dataSource: columnType[]) => number) \| undefined` | - |
| postData | 对通过 `request` 获取的数据进行处理 | `(data: T[]) => T[]` | - |
| defaultData | 默认的数据 | `T[]` | - |
| dataSource | Table 的数据,ProTable 推荐使用 `request` 来加载 | `T[]` | - |
Expand Down

0 comments on commit 4147df5

Please sign in to comment.