fix(client): fix variable input style when disabled (#3071)

This commit is contained in:
Junyi 2023-11-22 10:42:05 +08:00 committed by GitHub
parent c81fb46071
commit e0c7d09cab
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -332,7 +332,6 @@ 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])]}
@ -340,6 +339,7 @@ export function Input(props) {
loadData={loadData as any} loadData={loadData as any}
changeOnSelect={changeOnSelect} changeOnSelect={changeOnSelect}
fieldNames={fieldNames} fieldNames={fieldNames}
disabled={disabled}
> >
{button ?? ( {button ?? (
<XButton <XButton
@ -350,7 +350,6 @@ export function Input(props) {
/> />
)} )}
</Cascader> </Cascader>
) : null}
</Space.Compact>, </Space.Compact>,
); );
} }