From 4acbf95c7d2693d73b0c8c021ad892b6529d4c06 Mon Sep 17 00:00:00 2001 From: MG12 Date: Tue, 17 Nov 2015 22:16:15 +0800 Subject: remove TimePanel and merge it to TimePicker --- README.md | 23 +++++++---------------- 1 file changed, 7 insertions(+), 16 deletions(-) (limited to 'README.md') diff --git a/README.md b/README.md index 998fe4e..c6e8e1c 100644 --- a/README.md +++ b/README.md @@ -23,32 +23,23 @@ ReactDOM.render(, container); API --- -### TimePanel +### TimePicker | Name | Type | Default | Description | |---------------|----------------------------|-----------------------------------------------|-----------------------------------------------| | prefixCls | String | | prefixCls of this component | | locale | Object | import from 'rc-time-picker/lib/locale/en_US' | | -| defaultValue | GregorianCalendar | null | defaultValue like input's defaultValue | +| disabled | Boolean | false | whether picker is disabled | +| open | Boolean | false | current open state of picker. controlled prop | +| value | GregorianCalendar | null | current value like input's value | | placeholder | String | '' | time input's placeholder | | formatter | GregorianCalendarFormatter | HH:mm:ss or HH:mm or mm:ss | | | hourOptions | Array | hour options | | | minuteOptions | Array | minute options | | | secondOptions | Array | second options | | -| onChange | Function | null | called when input or select a different value | - -### TimePicker - -| Name | Type | Default | Description | -|-----------|-------------------------|---------|-----------------------------------------------| -| prefixCls | String | | prefixCls of this component | -| panel | TimePanel React Element | | | -| disabled | Boolean | false | whether picker is disabled | -| open | Boolean | false | current open state of picker. controlled prop | -| value | GregorianCalendar | null | current value like input's value | -| onChange | Function | null | called when select a different value | -| onOpen | Function | null | called when open picker | -| onClose | Function | null | called when close picker | +| onChange | Function | null | called when select a different value | +| onOpen | Function | null | called when open picker | +| onClose | Function | null | called when close picker | License ------- -- cgit v1.2.3