docs(data-table): fix remote prop, remove paging prop

This commit is contained in:
07akioni 2021-07-08 00:18:21 +08:00
parent 38dbca847c
commit ed269a064c
4 changed files with 2 additions and 4 deletions

View File

@ -8,7 +8,6 @@
:data="data"
:loading="loading"
:pagination="pagination"
:paging="false"
:row-key="rowKey"
@update:sorter="handleSorterChange"
@update:filters="handleFiltersChange"

View File

@ -55,7 +55,7 @@ tree
| max-height | `number \| string` | `undefined` | The max-height of the table content. Can be a CSS value. |
| min-height | `number \| string` | `undefined` | The min-height of the table content. Can be a CSS value. |
| pagination | `false \| object` | `false` | See [Pagination props](pagination#Props) |
| paging | `boolean` | `true` | If data-table do automatic paging. You may set it to `false` in async usage. |
| remote | `boolean` | `false` | If data-table do automatic paging. You may set it to `false` in async usage. |
| row-class-name | `string \| (rowData: object, rowIndex : number) => string \| object` | `undefined` | Class name of each row. |
| row-key | `(rowData: object) => (number \| string)` | `undefined` | Generate the key of the row by row data (if you don't want to set the key). |
| row-props | `(rowData: object, rowIndex : number) => object` | `undefined` | Customize row attributes. |

View File

@ -8,7 +8,6 @@
:data="data"
:loading="loading"
:pagination="pagination"
:paging="false"
:row-key="rowKey"
@update:sorter="handleSorterChange"
@update:filters="handleFiltersChange"

View File

@ -55,7 +55,7 @@ tree
| max-height | `number \| string` | `undefined` | 表格内容的最大高度,可以是 CSS 属性值 |
| min-height | `number \| string` | `undefined` | 表格内容的最低高度,可以是 CSS 属性值 |
| pagination | `false \| object` | `false` | 属性参考 [Pagination props](pagination#Props) |
| paging | `boolean` | `true` | 表格是否自动分页数据,在异步的状况下你可能需要把它设为 `false` |
| remote | `boolean` | `false` | 表格是否自动分页数据,在异步的状况下你可能需要把它设为 `true` |
| row-class-name | `string \| (rowData: object, index : number) => string \| object` | `undefined` | 每一行上的类名 |
| row-key | `(rowData: object) => (number \| string)` | `undefined` | 通过行数据创建行的 key如果你不想给每一行加上 key |
| row-props | `(rowData: object, rowIndex : number) => object` | `undefined` | 自定义行属性 |