doc(time)

This commit is contained in:
07akioni 2020-01-29 17:13:55 +08:00
parent 916f846928
commit 127b68bfa8

View File

@ -1,4 +1,6 @@
# Time
Time provide some basic formation for time.
## Demos
```demo
basic
type
@ -6,3 +8,12 @@ format
relative
unix
```
## Props
|Name|Type|Default|Description|
|-|-|-|-|
|time|`number \| Date`|`null`||
|type|`'relative' \| 'date' \| 'datetime'`|`'relative'`||
|to|`number \| Date`|`new Date()`||
|unix|`boolean`|`false`||
|format|`string`|`null`||
|transparent|`boolean`|`false`||