mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-06 12:17:13 +08:00
docs(icon): api table (#595)
This commit is contained in:
parent
8edc84e8b4
commit
e3a80ae139
@ -60,7 +60,7 @@ tree
|
||||
| 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. |
|
||||
| scroll-x | `number \| string` | `undefined` | If columns are horizontal fixed, scroll-x need to be set. |
|
||||
| single-column | `boolean` | `false` | Whether to display as a column (when true, each column has border-bottom). |
|
||||
| single-column | `boolean` | `false` | Whether to display as a column (when true, each column has border-right). |
|
||||
| single-line | `boolean` | `true` | Whether to display as a line (when true, each row has border-bottom). |
|
||||
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | Table size. |
|
||||
| summary | `CreateSummary` | `undefined` | Data of table summary row. For types, see <n-a href="#CreateSummary-Type">CreateSummary Type</n-a>. |
|
||||
|
@ -60,7 +60,7 @@ tree
|
||||
| row-key | `(rowData: object) => (number \| string)` | `undefined` | 通过行数据创建行的 key(如果你不想给每一行加上 key) |
|
||||
| row-props | `(rowData: object, rowIndex : number) => object` | `undefined` | 自定义行属性 |
|
||||
| scroll-x | `number \| string` | `undefined` | 表格内容的横向宽度,如果列被水平固定了,则需要设定它 |
|
||||
| single-column | `boolean` | `false` | 是否展示为一列(true 时每一列都有 border-bottom) |
|
||||
| single-column | `boolean` | `false` | 是否展示为一列(true 时每一列都有 border-right) |
|
||||
| single-line | `boolean` | `true` | 是否展示为一行(true 时每一行都有 border-bottom) |
|
||||
| size | `'small' \| 'medium' \| 'large'` | `'medium'` | 表格的尺寸 |
|
||||
| summary | `CreateSummary` | `undefined` | 表格总结栏的数据,类型见 <n-a href="#CreateSummary-Type">CreateSummary Type</n-a> |
|
||||
|
@ -20,6 +20,6 @@ depth
|
||||
|
||||
## Slots
|
||||
|
||||
| Name | Parameters | Description |
|
||||
| ------- | ---------- | ----------- |
|
||||
| default | `()` | |
|
||||
| Name | Parameters | Description |
|
||||
| ------- | ---------- | ------------------------ |
|
||||
| default | `()` | The content of the icon. |
|
||||
|
@ -20,8 +20,8 @@ depth
|
||||
|
||||
## Slots
|
||||
|
||||
| 名称 | 参数 | 说明 |
|
||||
| ------- | ---- | ---- |
|
||||
| default | `()` | |
|
||||
| 名称 | 参数 | 说明 |
|
||||
| ------- | ---- | ---------- |
|
||||
| default | `()` | 图标的内容 |
|
||||
|
||||
<!-- icons -->
|
||||
|
Loading…
Reference in New Issue
Block a user