aboutsummaryrefslogtreecommitdiffhomepage
path: root/README.md
diff options
context:
space:
mode:
Diffstat (limited to 'README.md')
-rw-r--r--README.md40
1 files changed, 20 insertions, 20 deletions
diff --git a/README.md b/README.md
index 60e5ab0..98f913a 100644
--- a/README.md
+++ b/README.md
@@ -39,7 +39,6 @@ Usage
39 39
40``` 40```
41import TimePicker from 'rc-time-picker'; 41import TimePicker from 'rc-time-picker';
42import React from 'react';
43import ReactDOM from 'react-dom'; 42import ReactDOM from 'react-dom';
44ReactDOM.render(<TimePicker />, container); 43ReactDOM.render(<TimePicker />, container);
45``` 44```
@@ -49,25 +48,26 @@ API
49 48
50### TimePicker 49### TimePicker
51 50
52| Name | Type | Default | Description | 51| Name | Type | Default | Description |
53|----------------|----------------------------|-----------------------------------------------|--------------------------------------------------------------------------------------------| 52|-------------------------|-----------------------------------|-----------------------------------------------|--------------------------------------------------------------------------------------------|
54| prefixCls | String | | prefixCls of this component | 53| prefixCls | String | | prefixCls of this component |
55| locale | Object | import from 'rc-time-picker/lib/locale/en_US' | | 54| locale | Object | import from 'rc-time-picker/lib/locale/en_US' | |
56| disabled | Boolean | false | whether picker is disabled | 55| disabled | Boolean | false | whether picker is disabled |
57| open | Boolean | false | current open state of picker. controlled prop | 56| open | Boolean | false | current open state of picker. controlled prop |
58| defaultValue | GregorianCalendar | null | default initial value | 57| defaultValue | GregorianCalendar | null | default initial value |
59| value | GregorianCalendar | null | current value | 58| value | GregorianCalendar | null | current value |
60| gregorianCalendarLocale | GregorianCalendar locale object | null | if value and defaultValue not set, you should set this to your locale | 59| gregorianCalendarLocale | GregorianCalendar locale object | null | if value and defaultValue not set, you should set this to your locale |
61| placeholder | String | '' | time input's placeholder | 60| placeholder | String | '' | time input's placeholder |
62| showHour | Boolean | whether show hour | | 61| showHour | Boolean | whether show hour | |
63| showSecond | Boolean | whether show second | | 62| showSecond | Boolean | whether show second | |
64| formatter | String|GregorianCalendarFormatter | | | 63| formatter | String|GregorianCalendarFormatter | | |
65| hourOptions | Array<Number> | hour options | | 64| disabledHours | Array<Number> | disabled hour options | |
66| minuteOptions | Array<Number> | minute options | | 65| disabledMinutes | Array<Number> | disabled minute options | |
67| secondOptions | Array<Number> | second options | | 66| disabledSeconds | Array<Number> | disabled second options | |
68| onChange | Function | null | called when select a different value | 67| hideDisabledOptions | Boolean | whether hide disabled options | |
69| placement | String | bottomLeft | one of ['left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'] | 68| onChange | Function | null | called when select a different value |
70| transitionName | String | '' | | 69| placement | String | bottomLeft | one of ['left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'] |
70| transitionName | String | '' | |
71 71
72License 72License
73------- 73-------