naive-ui/demo/documentation/components/timeline/zhCN/index.md

35 lines
677 B
Markdown
Raw Normal View History

2020-01-30 20:09:55 +08:00
# Timeline 时间线
这个世界有两个纬度:时间、事件。
## 例子
```demo
basic
size
item-placement
```
## Props
### Timeline Props
2020-02-07 23:40:07 +08:00
|名称|类型|默认值|说明|
2020-01-30 20:09:55 +08:00
|-|-|-|-|
|item-placement|`'left' \| 'right'`|`'left'`||
|size|`'medium' \| 'large'`|`'medium'`||
### Timeline Item Props
2020-02-07 23:40:07 +08:00
|名称|类型|默认值|说明|
2020-01-30 20:09:55 +08:00
|-|-|-|-|
|title|`string`|`null`||
|content|`string`|`null`||
|time|`string`|`null`||
|type|`'default' \| 'success' \| 'info' \| 'warning' \| 'error'`|`'default'`||
## Slots
### Timeline Slots
2020-02-07 23:40:07 +08:00
|名称|参数|说明|
2020-01-30 20:09:55 +08:00
|-|-|-|
|default|`()`||
2020-01-31 22:36:22 +08:00
### Timeline Item Slots
2020-02-07 23:40:07 +08:00
|名称|参数|说明|
2020-01-30 20:09:55 +08:00
|-|-|-|
|default|`()`||
|header|`()`||
|footer|`()`||