add calendarStyle

This commit is contained in:
yiminghe 2015-10-20 16:50:42 +08:00
parent 76b0f673ec
commit 8f2e8437be
2 changed files with 3 additions and 0 deletions

View File

@ -51,6 +51,7 @@ function createPicker(TheCalendar) {
placeholder: '请选择日期',
transitionName: 'slide-up',
onSelect: null, //
calendarStyle: {},
onChange() {
} //onChangeValidator
};
@ -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}

View File

@ -27,6 +27,7 @@
| onChange | 日期发生变化的回调,发生在用户选择日期时 | function | 无 |
| showTime | 显示时间选择条 | boolean | false |
| disabled | 禁用 | bool | false |
| calendarStyle | 格外的弹出日历样式,例如 zIndex | object | {} |
| size | 输入框大小,`large` 高度为 32px`small` 为 22px默认是 28px | string | 无 |
<style>