@@ -19,11 +19,13 @@ export default class DatePicker extends Component {
19
19
defaultMonth : PropTypes . object ,
20
20
inputFormat : PropTypes . string ,
21
21
removable : PropTypes . bool ,
22
- timePickerComponent : PropTypes . func
22
+ timePickerComponent : PropTypes . func ,
23
+ calendarStyles : PropTypes . object
23
24
} ;
24
25
25
26
static defaultProps = {
26
- inputFormat : 'jYYYY/jM/jD'
27
+ inputFormat : 'jYYYY/jM/jD' ,
28
+ calendarStyles : require ( '../styles/basic.css' )
27
29
} ;
28
30
29
31
state = {
@@ -137,7 +139,7 @@ export default class DatePicker extends Component {
137
139
138
140
renderCalendar ( ) {
139
141
const { momentValue } = this . state ;
140
- const { timePickerComponent : TimePicker , onChange, min, max, defaultMonth } = this . props ;
142
+ const { timePickerComponent : TimePicker , onChange, min, max, defaultMonth, calendarStyles } = this . props ;
141
143
142
144
return (
143
145
< div >
@@ -149,6 +151,7 @@ export default class DatePicker extends Component {
149
151
onSelect = { this . handleSelectDay . bind ( this ) }
150
152
onClickOutside = { this . handleClickOutsideCalendar . bind ( this ) }
151
153
outsideClickIgnoreClass = { outsideClickIgnoreClass }
154
+ styles = { calendarStyles }
152
155
>
153
156
{
154
157
TimePicker ? (
0 commit comments