未验证 提交 833c1819 编写于 作者: A afc163

🆙 upgrade rc-time-picker

- add `popupStyle`
- add `onAmPmChange`
上级 41aa37bd
......@@ -43,6 +43,7 @@ import moment from 'moment';
| open | whether to popup panel | boolean | false |
| placeholder | display when there's no value | string | "Select a time" |
| popupClassName | className of panel | string | '' |
| popupStyle | style of panel | object | - |
| secondStep | interval between seconds in picker | number | 1 |
| suffixIcon | The custom suffix icon | ReactNode | - |
| use12Hours | display as 12 hours format, with default format `h:mm:ss a` | boolean | false |
......
......@@ -27,6 +27,7 @@ export interface TimePickerProps {
format?: string;
onChange?: (time: moment.Moment, timeString: string) => void;
onOpenChange?: (open: boolean) => void;
onAmPmChange?: (ampm: 'AM' | 'PM') => void;
disabled?: boolean;
placeholder?: string;
prefixCls?: string;
......@@ -47,6 +48,7 @@ export interface TimePickerProps {
clearText?: string;
defaultOpenValue?: moment.Moment;
popupClassName?: string;
popupStyle?: React.CSSProperties;
suffixIcon?: React.ReactNode;
}
......
......@@ -44,6 +44,7 @@ import moment from 'moment';
| open | 面板是否打开 | boolean | false |
| placeholder | 没有值的时候显示的内容 | string | "请选择时间" |
| popupClassName | 弹出层类名 | string | '' |
| popupStyle | 弹出层样式对象 | object | - |
| secondStep | 秒选项间隔 | number | 1 |
| suffixIcon | 自定义的选择框后缀图标 | ReactNode | - |
| use12Hours | 使用 12 小时制,为 true 时 `format` 默认为 `h:mm:ss a` | boolean | false |
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册