diff options
author | MG12 <wuzhao.mail@gmail.com> | 2015-11-17 22:16:15 +0800 |
---|---|---|
committer | MG12 <wuzhao.mail@gmail.com> | 2015-11-17 22:16:15 +0800 |
commit | 4acbf95c7d2693d73b0c8c021ad892b6529d4c06 (patch) | |
tree | 1e1780ba90895d8f5901472a7c67a77186741a4f /README.md | |
parent | 78637ac02ce6a469d2021736d3cb12e98c5edbe7 (diff) | |
download | time-picker-4acbf95c7d2693d73b0c8c021ad892b6529d4c06.tar.gz time-picker-4acbf95c7d2693d73b0c8c021ad892b6529d4c06.tar.zst time-picker-4acbf95c7d2693d73b0c8c021ad892b6529d4c06.zip |
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 23 |
1 files changed, 7 insertions, 16 deletions
@@ -23,32 +23,23 @@ ReactDOM.render(<TimePicker />, container); | |||
23 | API | 23 | API |
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 | ||
53 | License | 44 | License |
54 | ------- | 45 | ------- |