in src/setter/json-setter/index.tsx [104:142]
title: intl('FailedToSaveData'),
content: e.message,
});
}
} else {
onChange(undefined);
// removeProp();
this.closeDialog();
}
};
/**
* 渲染编辑函数按钮(可直接编辑函数内容)
*/
renderEditFunctionButton = () => {
return (
<div>
<Button size="small" type="primary" onClick={this.openDialog}>
<CustomIcon type="icon-ic_edit" />
{ intl('EditData') }
</Button>
</div>
);
};
render() {
const { value } = this.state;
const { isShowDialog } = this.state;
return (
<div>
{this.renderButton(value)}
{
<Dialog
visible={isShowDialog}
closeable={'close'}
title={intl('EditData')}
onCancel={this.closeDialog}
onOk={this.onDialogOk}
onClose={() => {