提交 58a32455 编写于 作者: Y yiminghe

fix cascader

上级 4b096871
......@@ -51,7 +51,7 @@ class AntCascader extends React.Component {
this.setState({ popupVisible: false });
}
render() {
const { prefixCls, children, placeholder, size, disabled, className, allowClear } = this.props;
const { prefixCls, children, placeholder, size, disabled, className, style, allowClear } = this.props;
const sizeCls = classNames({
'ant-input-lg': size === 'large',
'ant-input-sm': size === 'small',
......@@ -77,7 +77,7 @@ class AntCascader extends React.Component {
onChange={this.handleChange}>
{children ||
<span
{...this.props}
style={style}
className={pickerCls}>
<Input placeholder={placeholder}
className={`${prefixCls}-input ant-input ${sizeCls}`}
......
Markdown is supported
0% .
You are about to add 0 people to the discussion. Proceed with caution.
先完成此消息的编辑!
想要评论请 注册