diff options
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 | ||