mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 03:29:39 +08:00
Fix select className
This commit is contained in:
parent
94a0440f42
commit
583d885b40
@ -11,14 +11,15 @@ var AntSelect = React.createClass({
|
||||
};
|
||||
},
|
||||
render() {
|
||||
var sizeClass = '';
|
||||
let sizeClass = '';
|
||||
if (this.props.size === 'large') {
|
||||
sizeClass = 'ant-select-lg';
|
||||
} else if (this.props.size === 'small') {
|
||||
sizeClass = 'ant-select-sm';
|
||||
}
|
||||
let className = this.props.className || ' ';
|
||||
return (
|
||||
<Select {...this.props} className={this.props.className + ' ' + sizeClass} />
|
||||
<Select {...this.props} className={className + sizeClass} />
|
||||
);
|
||||
}
|
||||
});
|
||||
|
Loading…
Reference in New Issue
Block a user