datepicker prefix className

pull/16/head
afc163 10 years ago
parent 2136f910d1
commit ce6ee800d5

@ -43,16 +43,18 @@ module.exports = React.createClass({
orient={['top', 'left']}
defaultValue={defaultCalendarValue}
showTime={this.props.showTime}
prefixCls="ant-calendar"
showClear={false} />
);
return (
<Datepicker
trigger={<span className="rc-calendar-picker-icon" />}
trigger={<span className="ant-calendar-picker-icon" />}
calendar={calendar}
formatter={new DateTimeFormat(this.props.format)}
value={this.state.value}
prefixCls="ant-calendar-picker"
onChange={this.props.onSelect}>
<input placeholder={this.props.placeholder} className="rc-calendar-picker-input" />
<input placeholder={this.props.placeholder} className="ant-calendar-picker-input" />
</Datepicker>
);
}

@ -22,7 +22,7 @@
| showTime | 显示时间选择条 | boolean | false |
<style>
.code-box-demo .rc-calendar-picker-input {
.code-box-demo .ant-calendar-picker-input {
width: 200px;
}
</style>

@ -1,4 +1,4 @@
@prefixCalendarClass: rc-calendar;
@prefixCalendarClass: ant-calendar;
.@{prefixCalendarClass} {
box-sizing: border-box;

@ -3,5 +3,5 @@
.@{prefixCalendarClass}-time-input {
height: 25px;
width: 40px;
.rc-input;
.ant-input;
}

@ -1,4 +1,4 @@
.rc-input(){
.ant-input(){
position: relative;
display: inline-block;
margin: 0 0;

Loading…
Cancel
Save