Browse Source

update code style

pull/3483/head
afc163 8 years ago
parent
commit
6f8f7de69e
  1. 10
      components/cascader/index.tsx

10
components/cascader/index.tsx

@ -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…
Cancel
Save