fix(client): fix variable input style when disabled (#3071)
This commit is contained in:
parent
c81fb46071
commit
e0c7d09cab
@ -332,25 +332,24 @@ export function Input(props) {
|
|||||||
)}
|
)}
|
||||||
</div>
|
</div>
|
||||||
)}
|
)}
|
||||||
{options.length > 1 && !disabled ? (
|
<Cascader
|
||||||
<Cascader
|
options={options}
|
||||||
options={options}
|
value={variable ?? ['', ...(children || !constantOption.children?.length ? [] : [type])]}
|
||||||
value={variable ?? ['', ...(children || !constantOption.children?.length ? [] : [type])]}
|
onChange={onSwitch}
|
||||||
onChange={onSwitch}
|
loadData={loadData as any}
|
||||||
loadData={loadData as any}
|
changeOnSelect={changeOnSelect}
|
||||||
changeOnSelect={changeOnSelect}
|
fieldNames={fieldNames}
|
||||||
fieldNames={fieldNames}
|
disabled={disabled}
|
||||||
>
|
>
|
||||||
{button ?? (
|
{button ?? (
|
||||||
<XButton
|
<XButton
|
||||||
className={css(`
|
className={css(`
|
||||||
margin-left: -1px;
|
margin-left: -1px;
|
||||||
`)}
|
`)}
|
||||||
type={variable ? 'primary' : 'default'}
|
type={variable ? 'primary' : 'default'}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
</Cascader>
|
</Cascader>
|
||||||
) : null}
|
|
||||||
</Space.Compact>,
|
</Space.Compact>,
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
|
Loading…
Reference in New Issue
Block a user