aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md23
1 files changed, 7 insertions, 16 deletions
diff --git a/README.md b/README.md
index 998fe4e..c6e8e1c 100644
--- a/README.md
+++ b/README.md
@@ -23,32 +23,23 @@ ReactDOM.render(<TimePicker />, container);
23API 23API
24--- 24---
25 25
26### TimePanel 26### TimePicker
27 27
28| Name | Type | Default | Description | 28| Name | Type | Default | Description |
29|---------------|----------------------------|-----------------------------------------------|-----------------------------------------------| 29|---------------|----------------------------|-----------------------------------------------|-----------------------------------------------|
30| prefixCls | String | | prefixCls of this component | 30| prefixCls | String | | prefixCls of this component |
31| locale | Object | import from 'rc-time-picker/lib/locale/en_US' | | 31| locale | Object | import from 'rc-time-picker/lib/locale/en_US' | |
32| defaultValue | GregorianCalendar | null | defaultValue like input's defaultValue | 32| disabled | Boolean | false | whether picker is disabled |
33| open | Boolean | false | current open state of picker. controlled prop |
34| value | GregorianCalendar | null | current value like input's value |
33| placeholder | String | '' | time input's placeholder | 35| placeholder | String | '' | time input's placeholder |
34| formatter | GregorianCalendarFormatter | HH:mm:ss or HH:mm or mm:ss | | 36| formatter | GregorianCalendarFormatter | HH:mm:ss or HH:mm or mm:ss | |
35| hourOptions | Array<String> | hour options | | 37| hourOptions | Array<String> | hour options | |
36| minuteOptions | Array<String> | minute options | | 38| minuteOptions | Array<String> | minute options | |
37| secondOptions | Array<String> | second options | | 39| secondOptions | Array<String> | second options | |
38| onChange | Function | null | called when input or select a different value | 40| onChange | Function | null | called when select a different value |
39 41| onOpen | Function | null | called when open picker |
40### TimePicker 42| onClose | Function | null | called when close picker |
41
42| Name | Type | Default | Description |
43|-----------|-------------------------|---------|-----------------------------------------------|
44| prefixCls | String | | prefixCls of this component |
45| panel | TimePanel React Element | | |
46| disabled | Boolean | false | whether picker is disabled |
47| open | Boolean | false | current open state of picker. controlled prop |
48| value | GregorianCalendar | null | current value like input's value |
49| onChange | Function | null | called when select a different value |
50| onOpen | Function | null | called when open picker |
51| onClose | Function | null | called when close picker |
52 43
53License 44License
54------- 45-------