diff options
author | afc163 <afc163@gmail.com> | 2016-11-11 12:10:26 +0800 |
---|---|---|
committer | afc163 <afc163@gmail.com> | 2016-11-11 12:10:26 +0800 |
commit | 614f6c90232d890984d0f4f2f13ff41fdb144b27 (patch) | |
tree | ce1a9be06b3264fd9fc09b3c2b028646db03a322 /README.md | |
parent | cb5a445c75c7117c7c705d615099086274c2b254 (diff) | |
parent | f429b4a79df25c9eadc3901e2483716835cc7de7 (diff) | |
download | time-picker-614f6c90232d890984d0f4f2f13ff41fdb144b27.tar.gz time-picker-614f6c90232d890984d0f4f2f13ff41fdb144b27.tar.zst time-picker-614f6c90232d890984d0f4f2f13ff41fdb144b27.zip |
Merge branch 'master' of github.com:react-component/time-picker
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 27 |
1 files changed, 23 insertions, 4 deletions
@@ -51,23 +51,42 @@ API | |||
51 | | Name | Type | Default | Description | | 51 | | Name | Type | Default | Description | |
52 | |-------------------------|-----------------------------------|-----------------------------------------------|--------------------------------------------------------------------------------------------| | 52 | |-------------------------|-----------------------------------|-----------------------------------------------|--------------------------------------------------------------------------------------------| |
53 | | prefixCls | String | | prefixCls of this component | | 53 | | prefixCls | String | | prefixCls of this component | |
54 | | locale | Object | import from 'rc-time-picker/lib/locale/en_US' | | | 54 | | clearText | String | 'clear' | | |
55 | | disabled | Boolean | false | whether picker is disabled | | 55 | | disabled | Boolean | false | whether picker is disabled | |
56 | | clearText | String | clear | clear text | | ||
56 | | open | Boolean | false | current open state of picker. controlled prop | | 57 | | open | Boolean | false | current open state of picker. controlled prop | |
57 | | defaultValue | GregorianCalendar | null | default initial value | | 58 | | defaultValue | moment | null | default initial value | |
58 | | value | GregorianCalendar | null | current value | | 59 | | defaultOpenValue | moment | moment() | default open panel value, used to set utcOffset,locale if value/defaultValue absent | |
60 | | value | moment | null | current value | | ||
59 | | placeholder | String | '' | time input's placeholder | | 61 | | placeholder | String | '' | time input's placeholder | |
60 | | showHour | Boolean | whether show hour | | | 62 | | showHour | Boolean | whether show hour | | |
61 | | showSecond | Boolean | whether show second | | | 63 | | showSecond | Boolean | whether show second | | |
62 | | formatter | String|GregorianCalendarFormatter | | | | 64 | | format | String | | | |
63 | | disabledHours | Function | disabled hour options | | | 65 | | disabledHours | Function | disabled hour options | | |
64 | | disabledMinutes | Function | disabled minute options | | | 66 | | disabledMinutes | Function | disabled minute options | | |
65 | | disabledSeconds | Function | disabled second options | | | 67 | | disabledSeconds | Function | disabled second options | | |
66 | | hideDisabledOptions | Boolean | whether hide disabled options | | | 68 | | hideDisabledOptions | Boolean | whether hide disabled options | | |
67 | | onChange | Function | null | called when select a different value | | 69 | | onChange | Function | null | called when select a different value | |
70 | | 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()`.| | ||
68 | | placement | String | bottomLeft | one of ['left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'] | | 71 | | placement | String | bottomLeft | one of ['left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'] | |
69 | | transitionName | String | '' | | | 72 | | transitionName | String | '' | | |
70 | 73 | ||
74 | |||
75 | ## Test Case | ||
76 | |||
77 | ``` | ||
78 | npm test | ||
79 | npm run chrome-test | ||
80 | ``` | ||
81 | |||
82 | ## Coverage | ||
83 | |||
84 | ``` | ||
85 | npm run coverage | ||
86 | ``` | ||
87 | |||
88 | open coverage/ dir | ||
89 | |||
71 | License | 90 | License |
72 | ------- | 91 | ------- |
73 | 92 | ||