doc(input): reorder api

This commit is contained in:
07akioni 2020-05-31 12:34:03 +08:00
parent 097425deab
commit 23aa383c77
2 changed files with 13 additions and 10 deletions

View File

@ -15,17 +15,19 @@ format
## Props
|Name|Type|Default|Description|
|-|-|-|-|
|theme|`'light' \| 'dark' \| null`|`null`||
|placeholder|`string`|`'Select Time'`||
|value|`number`|`null`||
|clearable|`boolean`|`false`||
|format|`string`|`'HH:mm:ss'`||
|is-hour-disabled|`(hour: number) => boolean`|`() => false`||
|is-minute-disabled|`(minute: number, hour: number) => boolean`|`() => false`||
|is-second-disabled|`(second: number, minute: number, hour: number) => boolean`|`() => false`||
|placeholder|`string`|`'Select Time'`||
|size|`'small' \| 'medium' \| 'large'`|`'medium'`||
|theme|`'light' \| 'dark' \| null`|`null`||
|value|`number`|`null`||
## Events
|Name|Parameters|Description|
|-|-|-|
|change|`(value: number \| null)`||
|blur|`(value: number \| null)`||
|blur|`(value: number \| null)`||
|change|`(value: number \| null)`||

View File

@ -16,17 +16,18 @@ format
## Props
|名称|类型|默认值|说明|
|-|-|-|-|
|theme|`'light' \| 'dark' \| null`|`null`||
|placeholder|`string`|`'请选择时间'`||
|value|`number`|`null`||
|clearable|`boolean`|`false`||
|format|`string`|`'HH:mm:ss'`||
|is-hour-disabled|`(hour: number) => boolean`|`() => false`||
|is-minute-disabled|`(minute: number, hour: number) => boolean`|`() => false`||
|is-second-disabled|`(second: number, minute: number, hour: number) => boolean`|`() => false`||
|placeholder|`string`|`'Select Time'`||
|size|`'small' \| 'medium' \| 'large'`|`'medium'`||
|theme|`'light' \| 'dark' \| null`|`null`||
|value|`number`|`null`||
## Events
|名称|参数|说明|
|-|-|-|
|change|`(value: number \| null)`||
|blur|`(value: number \| null)`||
|blur|`(value: number \| null)`||
|change|`(value: number \| null)`||