diff options
author | yiminghe <yiminghe@gmail.com> | 2016-08-04 19:53:55 +0800 |
---|---|---|
committer | yiminghe <yiminghe@gmail.com> | 2016-08-04 19:53:55 +0800 |
commit | 4984ed85e54f442998a335db70618d6184fa397e (patch) | |
tree | 6ae348b2cac5f48f3afb6f7b8dd0c2fd02f044fc /README.md | |
parent | deaa6062ea2e274d50d58c70251c1237c0c03c67 (diff) | |
download | time-picker-4984ed85e54f442998a335db70618d6184fa397e.tar.gz time-picker-4984ed85e54f442998a335db70618d6184fa397e.tar.zst time-picker-4984ed85e54f442998a335db70618d6184fa397e.zip |
2.x :boom:2.0.0
Diffstat (limited to 'README.md')
-rw-r--r-- | README.md | 26 |
1 files changed, 22 insertions, 4 deletions
@@ -51,15 +51,17 @@ 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 | | |
@@ -68,6 +70,22 @@ API | |||
68 | | placement | String | bottomLeft | one of ['left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'] | | 70 | | placement | String | bottomLeft | one of ['left','right','top','bottom', 'topLeft', 'topRight', 'bottomLeft', 'bottomRight'] | |
69 | | transitionName | String | '' | | | 71 | | transitionName | String | '' | | |
70 | 72 | ||
73 | |||
74 | ## Test Case | ||
75 | |||
76 | ``` | ||
77 | npm test | ||
78 | npm run chrome-test | ||
79 | ``` | ||
80 | |||
81 | ## Coverage | ||
82 | |||
83 | ``` | ||
84 | npm run coverage | ||
85 | ``` | ||
86 | |||
87 | open coverage/ dir | ||
88 | |||
71 | License | 89 | License |
72 | ------- | 90 | ------- |
73 | 91 | ||