mirror of
https://gitee.com/ant-design/ant-design.git
synced 2024-12-01 11:39:28 +08:00
23 lines
403 B
JavaScript
23 lines
403 B
JavaScript
import React from 'react';
|
|
import Select from 'rc-select';
|
|
|
|
var AntSelect = React.createClass({
|
|
getDefaultProps() {
|
|
return {
|
|
prefixCls: 'ant-select',
|
|
transitionName: 'slide-up',
|
|
optionLabelProp: 'children',
|
|
showSearch: false
|
|
};
|
|
},
|
|
render() {
|
|
return (
|
|
<Select {...this.props} />
|
|
);
|
|
}
|
|
});
|
|
|
|
AntSelect.Option = Select.Option;
|
|
|
|
export default AntSelect;
|