mirror of
https://gitee.com/baidu/amis.git
synced 2024-12-04 04:48:32 +08:00
fix(amis-editor): 接口适配器输入时不自动对其进行折叠隐藏
This commit is contained in:
parent
5315a355c4
commit
3f1b1117b5
@ -64,14 +64,6 @@ export default class APIAdaptorControl extends React.Component<
|
|||||||
};
|
};
|
||||||
}
|
}
|
||||||
|
|
||||||
componentDidUpdate(prevProps: Readonly<APIAdaptorControlProps>): void {
|
|
||||||
if (this.props.value !== prevProps.value) {
|
|
||||||
this.setState({
|
|
||||||
switch: !!this.props.value
|
|
||||||
});
|
|
||||||
}
|
|
||||||
}
|
|
||||||
|
|
||||||
@autobind
|
@autobind
|
||||||
onChange(value: any = '') {
|
onChange(value: any = '') {
|
||||||
this.props.onChange?.(value);
|
this.props.onChange?.(value);
|
||||||
|
Loading…
Reference in New Issue
Block a user