import { PureComponent } from 'react'; interface JsonSetterProps { value: string; type: string; defaultValue: string; placeholder: string; hasClear: boolean; onChange: (icon: string) => undefined; icons: string[]; } export default class JsonSetter extends PureComponent { static displayName: string; private datasourceCode; state: { isShowDialog: boolean; value: string; }; openDialog: () => void; componentWillReceiveProps(nextProps: any): void; closeDialog: () => void; /** * 渲染按钮 */ renderButton: (value: any) => JSX.Element; updateCode: (newCode: any) => void; onDialogOk: () => void; /** * 渲染编辑函数按钮(可直接编辑函数内容) */ renderEditFunctionButton: () => JSX.Element; render(): JSX.Element; } export {};