mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
fix select components
This commit is contained in:
parent
a4b26a8ea8
commit
ba21f3531b
@ -2,7 +2,7 @@ import React from 'react';
|
||||
import Select from 'rc-select';
|
||||
|
||||
export default React.createClass({
|
||||
getDefaultProps: function () {
|
||||
getDefaultProps() {
|
||||
return {
|
||||
prefixCls: 'ant-select',
|
||||
transitionName: 'slide-up',
|
||||
@ -10,11 +10,9 @@ export default React.createClass({
|
||||
showSearch: false
|
||||
};
|
||||
},
|
||||
render: function () {
|
||||
render() {
|
||||
return (
|
||||
<Select {...this.props} />
|
||||
);
|
||||
}
|
||||
});
|
||||
|
||||
export const Option = Select.Option;
|
||||
|
Loading…
Reference in New Issue
Block a user