]> git.immae.eu Git - github/fretlink/time-picker.git/commitdiff
update README
authorafc163 <afc163@gmail.com>
Wed, 8 Mar 2017 07:03:49 +0000 (15:03 +0800)
committerafc163 <afc163@gmail.com>
Wed, 8 Mar 2017 07:05:21 +0000 (15:05 +0800)
README.md

index d8a35b9c3a004440b4dbbe3c9192e51efad6e67b..3c82d2ab6a1cb5ebc3dd4d0773c9b10656cacd1d 100644 (file)
--- a/README.md
+++ b/README.md
@@ -50,7 +50,7 @@ API
 
 | Name                    | Type                              | Default                                       | Description                                                                                |
 |-------------------------|-----------------------------------|-----------------------------------------------|--------------------------------------------------------------------------------------------|
-| prefixCls               | String                            |                                               | prefixCls of this component                                                                |
+| prefixCls               | String                            | 'rc-time-picker' | prefixCls of this component |
 | clearText               | String                            | 'clear'                                       |                                                                                            |
 | disabled                | Boolean                           | false                                         | whether picker is disabled                                                                 |
 | clearText               | String                            | clear                                         | clear text                                                                                 |
@@ -59,19 +59,19 @@ API
 | defaultOpenValue        | moment                            | moment()                                      | default open panel value, used to set utcOffset,locale if value/defaultValue absent        |
 | value                   | moment                            | null                                          | current value                                                                              |
 | placeholder             | String                            | ''                                            | time input's placeholder                                                                   |
-| showHour                | Boolean                           | whether show hour                             |                                                                                            |
-| showMinute              | Boolean                           | whether show minute                             |                                                                                            |
-| showSecond              | Boolean                           | whether show second                           |                                                                                            |
-| format                  | String                            |                                               |                                                                                            |
-| disabledHours           | Function                          | disabled hour options                         |                                                                                            |
-| disabledMinutes         | Function                          | disabled minute options                       |                                                                                            |
-| disabledSeconds         | Function                          | disabled second options                       |                                                                                            |
-| use12Hours              | Boolean                           | 12 hours display mode                         |                                                                                            |
-| hideDisabledOptions     | Boolean                           | whether hide disabled options                 |                                                                                            |
-| onChange                | Function                          | null                                          | called when select a different value                                                       |
-| addon                   | Function                          | nothing                                       | called from timepicker panel to render some addon to its bottom, like an OK button. Receives panel instance as parameter, to be able to close it like `panel.close()`.|
-| placement               | String                            | bottomLeft                                    | one of ['left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'] |
-| transitionName          | String                            | ''                                            |                                                                                            |
+| showHour                | Boolean                           | true | whether show hour                             |                                                                                            |
+| showMinute              | Boolean                           | true | whether show minute                             |                                                                                            |
+| showSecond              | Boolean                           | true | whether show second                           |                                                                                            |
+| format                  | String                            | - |                                               |                                                                                            |
+| disabledHours           | Function                          | - | disabled hour options                         |                                                                                            |
+| disabledMinutes         | Function                          | - | disabled minute options                       |                                                                                            |
+| disabledSeconds         | Function                          | - | disabled second options                       |                                                                                            |
+| use12Hours              | Boolean                           | false | 12 hours display mode |
+| hideDisabledOptions     | Boolean                           | false | whether hide disabled options                 |                                                                                            |
+| onChange                | Function                          | null | called when select a different value   |
+| addon                   | Function                          | - | called from timepicker panel to render some addon to its bottom, like an OK button. Receives panel instance as parameter, to be able to close it like `panel.close()`.|
+| placement               | String                            | bottomLeft | one of ['left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'] |
+| transitionName          | String                            | ''  |  |
 | name                    | String                            | - | sets the name of the generated input |
 | onOpen                  | Function({ open })                |   | when TimePicker panel is opened      |
 | onClose                 | Function({ open })                |   | when TimePicker panel is opened      |