naive-ui/demo/documentation/components/time/zhCN/index.demo-entry.md
07akioni 487001d697 build: add changelog to site, refactor loader based on suffix
.demo.md for component demo
.demo-entry.md for demo entry
.md for common docs
2020-08-19 23:30:04 +08:00

18 lines
348 B
Markdown

# 时间 Time
Time 提供一些基本的时间格式化功能。
## 演示
```demo
basic
type
format
relative
unix
```
## Props
|名称|类型|默认值|说明|
|-|-|-|-|
|time|`number \| Date`|`null`||
|type|`'relative' \| 'date' \| 'datetime'`|`'relative'`||
|to|`number \| Date`|`new Date()`||
|unix|`boolean`|`false`||
|format|`string`|`null`||