Skip to content

Commit

Permalink
update: 兼容size
Browse files Browse the repository at this point in the history
  • Loading branch information
常鸣 committed Apr 27, 2020
1 parent b5bdea7 commit 9ea329f
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion src/CascadeMultiSelect.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -319,10 +319,12 @@ class CascadeMultiSelect extends React.Component {

renderContent() {
const {
className, prefixCls, size, allowClear, disabled
className, prefixCls, size: theSize, jsxsize, allowClear, disabled
} = this.props;
const { displayValue, showSubMenu } = this.state;

const size = jsxsize || theSize;

return (
<div
className={classnames({
Expand Down Expand Up @@ -434,6 +436,7 @@ CascadeMultiSelect.defaultProps = {
onItemClick: () => { },

size: 'large',
jsxsize: '',
placeholder: '',
disabled: false,
defaultValue: [],
Expand Down Expand Up @@ -463,6 +466,7 @@ CascadeMultiSelect.propTypes = {
onItemClick: PropTypes.func,

size: PropTypes.oneOf(['large', 'middle', 'small']),
jsxsize: PropTypes.oneOf(['large', 'middle', 'small']),
placeholder: PropTypes.string,
disabled: PropTypes.bool,
defaultValue: PropTypes.array,
Expand Down

0 comments on commit 9ea329f

Please sign in to comment.