mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-25 11:40:04 +08:00
add calendarStyle
This commit is contained in:
parent
76b0f673ec
commit
8f2e8437be
@ -51,6 +51,7 @@ function createPicker(TheCalendar) {
|
||||
placeholder: '请选择日期',
|
||||
transitionName: 'slide-up',
|
||||
onSelect: null, //向前兼容
|
||||
calendarStyle: {},
|
||||
onChange() {
|
||||
} //onChange可用于Validator
|
||||
};
|
||||
@ -69,6 +70,7 @@ function createPicker(TheCalendar) {
|
||||
render() {
|
||||
let calendar = (
|
||||
<TheCalendar
|
||||
style={this.props.calendarStyle}
|
||||
disabledDate={this.props.disabledDate}
|
||||
locale={CalendarLocale}
|
||||
showTime={this.props.showTime}
|
||||
|
@ -27,6 +27,7 @@
|
||||
| onChange | 日期发生变化的回调,发生在用户选择日期时 | function | 无 |
|
||||
| showTime | 显示时间选择条 | boolean | false |
|
||||
| disabled | 禁用 | bool | false |
|
||||
| calendarStyle | 格外的弹出日历样式,例如 zIndex | object | {} |
|
||||
| size | 输入框大小,`large` 高度为 32px,`small` 为 22px,默认是 28px | string | 无 |
|
||||
|
||||
<style>
|
||||
|
Loading…
Reference in New Issue
Block a user