mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-28 21:19:37 +08:00
update code style
This commit is contained in:
parent
2fe4590887
commit
6f8f7de69e
@ -307,7 +307,8 @@ export default class Cascader extends React.Component<CascaderProps, any> {
|
||||
dropdownMenuColumnStyle.width = this.refs.input.refs.input.offsetWidth;
|
||||
}
|
||||
return (
|
||||
<RcCascader {...props}
|
||||
<RcCascader
|
||||
{...props}
|
||||
options={options}
|
||||
value={value}
|
||||
popupVisible={state.popupVisible}
|
||||
@ -320,7 +321,8 @@ export default class Cascader extends React.Component<CascaderProps, any> {
|
||||
style={style}
|
||||
className={pickerCls}
|
||||
>
|
||||
<Input {...inputProps}
|
||||
<Input
|
||||
{...inputProps}
|
||||
ref="input"
|
||||
placeholder={value && value.length > 0 ? null : placeholder}
|
||||
className={`${prefixCls}-input ${sizeCls}`}
|
||||
@ -332,7 +334,9 @@ export default class Cascader extends React.Component<CascaderProps, any> {
|
||||
onBlur={showSearch ? this.handleInputBlur : null}
|
||||
onChange={showSearch ? this.handleInputChange : null}
|
||||
/>
|
||||
<span className={`${prefixCls}-picker-label`}>{this.getLabel()}</span>
|
||||
<span className={`${prefixCls}-picker-label`}>
|
||||
{this.getLabel()}
|
||||
</span>
|
||||
{clearIcon}
|
||||
<Icon type="down" className={arrowCls} />
|
||||
</span>
|
||||
|
Loading…
Reference in New Issue
Block a user