-
-
Notifications
You must be signed in to change notification settings - Fork 46.9k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
date-picker extend options #1415
Conversation
Extend the <DatePicker showTime={{ format: ..., disabledHours: ... }}> |
@afc163 your suggest is better. and I have modified, please review ~ |
const timePicker = props.showTime ? ( | ||
<TimePicker | ||
prefixCls="ant-time-picker" | ||
placeholder={locale.timePickerLocale.placeholder} | ||
locale={locale.timePickerLocale} | ||
transitionName="slide-up" /> | ||
transitionName="slide-up" | ||
{...props.showTime} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Will be better.
<TimePicker
{...props.showTime}
{...rcTimePickerProps}
prefixCls="ant-time-picker"
placeholder={locale.timePickerLocale.placeholder}
locale={locale.timePickerLocale}
transitionName="slide-up"
/>
| onOk | 点击确定按钮的回调 | function(Date value) | 无 | | ||
| getCalendarContainer | 定义浮层的容器,默认为 body 上新建 div | function(trigger) | 无 | | ||
| showTime | 增加时间选择功能 | object | [TimePicker Options](http://ant.design/components/time-picker/#api) | |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
object or bool
还有 RangePicker 的 showTime 也同样支持下?麻烦了~ |
In my business scene I need to format the
time-picker
ofdate-picker
when optionshowTime
is setted.And I found the scene is a general demand, eg #771.
So, I send this PR, please think about it.