Merge pull request #1063 from Leopoldthecoder/doc-misc

Docs: misc updates
pull/1076/head
baiyaaaaa 2016-11-15 09:55:31 +08:00 committed by GitHub
commit 0013043ad7
5 changed files with 11 additions and 9 deletions

View File

@ -252,9 +252,9 @@ Picking a date range is supported.
### Attributes ### Attributes
| Attribute | Description | Type | Accepted Values | Default | | Attribute | Description | Type | Accepted Values | Default |
|---------- |-------------- |---------- |-------------------------------- |-------- | |---------- |-------------- |---------- |-------------------------------- |-------- |
| readonly | read only | boolean | — | false | | readonly | whether DatePicker is read only | boolean | — | false |
| disabled | disabled | boolean | - | false | | disabled | whether DatePicker is disabled | boolean | - | false |
| editable | editable | boolean | - | true | | editable | whether the input is editable | boolean | - | true |
| placeholder | placeholder | string | — | — | | placeholder | placeholder | string | — | — |
| type | type of the picker | string | year/month/date/datetime/week/datetimerange/daterange | date | | type | type of the picker | string | year/month/date/datetime/week/datetimerange/daterange | date |
| format | format of the picker | string | year `yyyy` month `MM` day `dd`, <br>hour `HH`, minute `mm`, second `ss` | yyyy-MM-dd | | format | format of the picker | string | year `yyyy` month `MM` day `dd`, <br>hour `HH`, minute `mm`, second `ss` | yyyy-MM-dd |

View File

@ -207,9 +207,9 @@ Select date and time in one picker.
### Attributes ### Attributes
| Attribute | Description | Type | Accepted Values | Default | | Attribute | Description | Type | Accepted Values | Default |
|---------- |-------------- |---------- |-------------------------------- |-------- | |---------- |-------------- |---------- |-------------------------------- |-------- |
| readonly | read only | boolean | — | false | | readonly | whether DatePicker is read only | boolean | — | false |
| disabled | disabled | boolean | - | false | | disabled | whether DatePicker is disabled | boolean | - | false |
| editable | editable | boolean | - | true | | editable | whether the input is editable | boolean | - | true |
| placeholder | placeholder | string | — | — | | placeholder | placeholder | string | — | — |
| type | type of the picker | string | year/month/date/datetime/week/datetimerange/daterange | date | | type | type of the picker | string | year/month/date/datetime/week/datetimerange/daterange | date |
| format | format of the picker | string | year `yyyy` month `MM` day `dd`, <br>hour `HH`, minute `mm`, second `ss` | yyyy-MM-dd | | format | format of the picker | string | year `yyyy` month `MM` day `dd`, <br>hour `HH`, minute `mm`, second `ss` | yyyy-MM-dd |

View File

@ -168,6 +168,7 @@ The content of Dialog can be anything, even a table or a form. This example show
| custom-class | custom class names for Dialog | string | — | — | | custom-class | custom class names for Dialog | string | — | — |
| close-on-click-modal | whether the Dialog can be closed by clicking the mask | boolean | — | true | | close-on-click-modal | whether the Dialog can be closed by clicking the mask | boolean | — | true |
| close-on-press-escape | whether the Dialog can be closed by pressing ESC | boolean | — | true | | close-on-press-escape | whether the Dialog can be closed by pressing ESC | boolean | — | true |
| show-close | whether to show a close button | boolean | — | true |
### Slot ### Slot

View File

@ -143,9 +143,9 @@ Can pick an arbitrary time range.
### Attributes ### Attributes
| Attribute | Description | Type | Accepted Values | Default | | Attribute | Description | Type | Accepted Values | Default |
|---------- |-------------- |---------- |-------------------------------- |-------- | |---------- |-------------- |---------- |-------------------------------- |-------- |
| readonly | read only | boolean | — | false | | readonly | whether DatePicker is read only | boolean | — | false |
| disabled | disabled | boolean | - | false | | disabled | whether DatePicker is disabled | boolean | - | false |
| editable | editable | boolean | - | true | | editable | whether the input is editable | boolean | - | true |
| placeholder | placeholder | string | — | — | | placeholder | placeholder | string | — | — |
| format | format of the picker | string | hour `HH`, minute `mm`, second `ss` | HH:mm:ss | | format | format of the picker | string | hour `HH`, minute `mm`, second `ss` | HH:mm:ss |
| value | value of the picker | date for Time Picker, and string for Time Select | hour `HH`, minute `mm`, second `ss` | HH:mm:ss | | value | value of the picker | date for Time Picker, and string for Time Select | hour `HH`, minute `mm`, second `ss` | HH:mm:ss |

View File

@ -187,6 +187,7 @@ Dialog 组件的内容可以是任意的,甚至可以是表格或表单,下
| custom-class | Dialog 的自定义类名 | string | — | — | | custom-class | Dialog 的自定义类名 | string | — | — |
| close-on-click-modal | 是否可以通过点击 modal 关闭 Dialog | boolean | — | true | | close-on-click-modal | 是否可以通过点击 modal 关闭 Dialog | boolean | — | true |
| close-on-press-escape | 是否可以通过按下 ESC 关闭 Dialog | boolean | — | true | | close-on-press-escape | 是否可以通过按下 ESC 关闭 Dialog | boolean | — | true |
| show-close | 是否显示关闭按钮 | boolean | — | true |
### Slot ### Slot
| name | 说明 | | name | 说明 |