|
|
@ -11,14 +11,15 @@ var AntSelect = React.createClass({
|
|
|
|
};
|
|
|
|
};
|
|
|
|
},
|
|
|
|
},
|
|
|
|
render() {
|
|
|
|
render() {
|
|
|
|
var sizeClass = '';
|
|
|
|
let sizeClass = '';
|
|
|
|
if (this.props.size === 'large') {
|
|
|
|
if (this.props.size === 'large') {
|
|
|
|
sizeClass = 'ant-select-lg';
|
|
|
|
sizeClass = 'ant-select-lg';
|
|
|
|
} else if (this.props.size === 'small') {
|
|
|
|
} else if (this.props.size === 'small') {
|
|
|
|
sizeClass = 'ant-select-sm';
|
|
|
|
sizeClass = 'ant-select-sm';
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
let className = this.props.className || ' ';
|
|
|
|
return (
|
|
|
|
return (
|
|
|
|
<Select {...this.props} className={this.props.className + ' ' + sizeClass} />
|
|
|
|
<Select {...this.props} className={className + sizeClass} />
|
|
|
|
);
|
|
|
|
);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
});
|
|
|
|
});
|
|
|
|