Fix undefined SelectPropTypes

This commit is contained in:
afc163 2017-08-07 11:35:22 +08:00
parent a22a011c49
commit 3570458c31

View File

@ -1,6 +1,6 @@
import React from 'react'; import React from 'react';
import PropTypes from 'prop-types'; import PropTypes from 'prop-types';
import RcSelect, { Option, OptGroup, SelectPropTypes as RcSelectPropTypes } from 'rc-select'; import RcSelect, { Option, OptGroup } from 'rc-select';
import classNames from 'classnames'; import classNames from 'classnames';
import warning from '../_util/warning'; import warning from '../_util/warning';
@ -68,7 +68,7 @@ export interface SelectContext {
} }
export const SelectPropTypes = { export const SelectPropTypes = {
...RcSelectPropTypes, ...RcSelect.propTypes,
prefixCls: PropTypes.string, prefixCls: PropTypes.string,
className: PropTypes.string, className: PropTypes.string,
size: PropTypes.oneOf(['default', 'large', 'small']), size: PropTypes.oneOf(['default', 'large', 'small']),