ant-design/components/select/index.jsx
2015-08-01 17:51:55 +08:00

24 lines
441 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;
AntSelect.OptGroup = Select.OptGroup;
export default AntSelect;