mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-21 04:50:14 +08:00
docs(space): api table (#633)
* docs(space): 完善间距组件的说明文档 * docs(space): 更新一部分间距组件的说明文档
This commit is contained in:
parent
a8f0a3b38e
commit
505abd3e56
@ -17,16 +17,16 @@ center
|
||||
|
||||
| Name | Type | Default | Description |
|
||||
| --- | --- | --- | --- |
|
||||
| align | `'start' \| 'end' \| 'center' \| 'baseline' \| 'stretch'` | `undefined` | |
|
||||
| inline | `boolean` | `false` | |
|
||||
| item-style | `string \| object` | `undefined` | |
|
||||
| justify | `'start' \| 'end' \| 'center' \| 'space-around' \| 'space-between'` | `'start'` | |
|
||||
| size | `'small' \| 'medium' \| 'large' \| number \| [number, number]` | `'medium'` | |
|
||||
| vertical | `boolean` | `false` | |
|
||||
| wrap | `boolean` | `true` | |
|
||||
| align | `'start' \| 'end' \| 'center' \| 'baseline' \| 'stretch'` | `undefined` | Vertical arrangement. |
|
||||
| inline | `boolean` | `false` | Is it an inline element. |
|
||||
| item-style | `string \| object` | `undefined` | Node style. |
|
||||
| justify | `'start' \| 'end' \| 'center' \| 'space-around' \| 'space-between'` | `'start'` | Horizontal arrangement. |
|
||||
| size | `'small' \| 'medium' \| 'large' \| number \| [number, number]` | `'medium'` | Size. |
|
||||
| vertical | `boolean` | `false` | Whether to lay out vertically. |
|
||||
| wrap | `boolean` | `true` | Whether to exceed the line break. |
|
||||
|
||||
## Slots
|
||||
|
||||
| Name | Parameters | Description |
|
||||
| ------- | ---------- | ----------- |
|
||||
| default | `()` | |
|
||||
| Name | Parameters | Description |
|
||||
| ------- | ---------- | ---------------- |
|
||||
| default | `()` | Spacing content. |
|
||||
|
@ -18,16 +18,16 @@ grid-debug
|
||||
|
||||
| 名称 | 类型 | 默认值 | 说明 |
|
||||
| --- | --- | --- | --- |
|
||||
| align | `'start' \| 'end' \| 'center' \| 'baseline' \| 'stretch'` | `undefined` | |
|
||||
| inline | `boolean` | `false` | |
|
||||
| item-style | `string \| object` | `undefined` | |
|
||||
| justify | `'start' \| 'end' \| 'center' \| 'space-around' \| 'space-between'` | `'start'` | |
|
||||
| size | `'small' \| 'medium' \| 'large' \| number \| [number, number]` | `'medium'` | |
|
||||
| vertical | `boolean` | `false` | |
|
||||
| wrap | `boolean` | `true` | |
|
||||
| align | `'start' \| 'end' \| 'center' \| 'baseline' \| 'stretch'` | `undefined` | 垂直排列方式 |
|
||||
| inline | `boolean` | `false` | 是否为行内元素 |
|
||||
| item-style | `string \| object` | `undefined` | 节点样式 |
|
||||
| justify | `'start' \| 'end' \| 'center' \| 'space-around' \| 'space-between'` | `'start'` | 水平排列方式 |
|
||||
| size | `'small' \| 'medium' \| 'large' \| number \| [number, number]` | `'medium'` | 大小 |
|
||||
| vertical | `boolean` | `false` | 是否垂直布局 |
|
||||
| wrap | `boolean` | `true` | 是否超出换行 |
|
||||
|
||||
## Slots
|
||||
|
||||
| 名称 | 参数 | 说明 |
|
||||
| ------- | ---- | ---- |
|
||||
| default | `()` | |
|
||||
| 名称 | 参数 | 说明 |
|
||||
| ------- | ---- | -------- |
|
||||
| default | `()` | 间距内容 |
|
||||
|
Loading…
Reference in New Issue
Block a user