diff options
author | MG12 <wuzhao.mail@gmail.com> | 2015-11-16 14:44:26 +0800 |
---|---|---|
committer | MG12 <wuzhao.mail@gmail.com> | 2015-11-16 14:44:26 +0800 |
commit | 78637ac02ce6a469d2021736d3cb12e98c5edbe7 (patch) | |
tree | 68de02afaa15b90be1fcc1dd191edb6f48ebb293 /README.md | |
parent | 02de449a0474765a4796fa607e7e3922252f574f (diff) | |
download | time-picker-78637ac02ce6a469d2021736d3cb12e98c5edbe7.tar.gz time-picker-78637ac02ce6a469d2021736d3cb12e98c5edbe7.tar.zst time-picker-78637ac02ce6a469d2021736d3cb12e98c5edbe7.zip |
remove toggle feature because rc-trigger included; update example and document0.2.0
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 58 |
1 files changed, 56 insertions, 2 deletions
@@ -1,2 +1,56 @@ | |||
1 | # timepicker | 1 | TimePicker |
2 | Timepicker | 2 | ========== |
3 | |||
4 | React TimePicker | ||
5 | |||
6 | install | ||
7 | ------- | ||
8 | |||
9 | ``` | ||
10 | npm install rc-time-picker | ||
11 | ``` | ||
12 | |||
13 | Usage | ||
14 | ----- | ||
15 | |||
16 | ``` | ||
17 | import TimePicker from 'rc-time-picker'; | ||
18 | import React from 'react'; | ||
19 | import ReactDOM from 'react-dom'; | ||
20 | ReactDOM.render(<TimePicker />, container); | ||
21 | ``` | ||
22 | |||
23 | API | ||
24 | --- | ||
25 | |||
26 | ### TimePanel | ||
27 | |||
28 | | Name | Type | Default | Description | | ||
29 | |---------------|----------------------------|-----------------------------------------------|-----------------------------------------------| | ||
30 | | prefixCls | String | | prefixCls of this component | | ||
31 | | locale | Object | import from 'rc-time-picker/lib/locale/en_US' | | | ||
32 | | defaultValue | GregorianCalendar | null | defaultValue like input's defaultValue | | ||
33 | | placeholder | String | '' | time input's placeholder | | ||
34 | | formatter | GregorianCalendarFormatter | HH:mm:ss or HH:mm or mm:ss | | | ||
35 | | hourOptions | Array<String> | hour options | | | ||
36 | | minuteOptions | Array<String> | minute options | | | ||
37 | | secondOptions | Array<String> | second options | | | ||
38 | | onChange | Function | null | called when input or select a different value | | ||
39 | |||
40 | ### TimePicker | ||
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 | |||
53 | License | ||
54 | ------- | ||
55 | |||
56 | rc-time-picker is released under the MIT license. | ||