mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
docs(NDataTable): update n-data-table docs
This commit is contained in:
parent
1cf249cbe7
commit
f07530a7cd
@ -97,7 +97,7 @@ flex-height
|
||||
| filterOptionValues | `Array<string \| number> \| null` | `undefined` | The active filter option values in controlled manner. If not set, the filter of the column works in an uncontrolled manner. (works when there are multiple filters). |
|
||||
| filterOptions | `Array<{ label: string, value: string \| number}>` | `undefined` | Filter options. |
|
||||
| fixed | `'left \| 'right' \| false` | `false` | Whether the column needs to be fixed. |
|
||||
| key | `string \| number` | `undefined` | Unique key of this column, **required** when table's row-key is not set. |
|
||||
| key | `string \| number` | `undefined` | Unique key of this column, this is not repeatable. |
|
||||
| options | `Array<'all' \| 'none' \| { label: string, key: string \| number, onSelect: (pageData: RowData) => void }>` | `undefined` | Options of custom selection. Only work with `type='selection'`. |
|
||||
| render | `(rowData: object, rowIndex: number) => VNodeChild` | `undefined` | Render function of column row cell. |
|
||||
| renderExpand | `(rowData: object, rowIndex: number) => VNodeChild` | `undefined` | Render function of the expand area. Only works when `type` is `'expand'`. |
|
||||
|
@ -98,7 +98,7 @@ scroll-debug
|
||||
| filterOptionValues | `Array<string \| number> \| null` | `undefined` | 受控状态下,当前激活的过滤器选项值数组。如果不做设定,这一列的过滤行为将是非受控的(过滤器多选时生效) |
|
||||
| filterOptions | `Array<{ label: string, value: string \| number}>` | `undefined` | filter 的 options 数据 |
|
||||
| fixed | `'left \| 'right' \| false` | `false` | 该列是否需要 fixed |
|
||||
| key | `string \| number` | `undefined` | 这一列的 key,在表格未设定 row-key 的时候是**必须**的。 |
|
||||
| key | `string \| number` | `undefined` | 这一列的 key,不可重复。 |
|
||||
| options | `Array<'all' \| 'none' \| { label: string, key: string \| number, onSelect: (pageData: RowData) => void }>` | `undefined` | 自定义选择项的选项,只对 `type='selection'` 生效 |
|
||||
| render | `(rowData: object, rowIndex: number) => VNodeChild` | `undefined` | 渲染函数,渲染这一列的每一行的单元格 |
|
||||
| renderExpand | `(rowData: object, rowIndex: number) => VNodeChild` | `undefined` | 展开区域的渲染函数,仅在 `type` 为 `'expand'` 的时候生效 |
|
||||
|
Loading…
Reference in New Issue
Block a user