@qn-pandora/pandora-visualization
Version:
Pandora 通用可视化库
28 lines (27 loc) • 960 B
TypeScript
/// <reference types="hoist-non-react-statics" />
import * as React from 'react';
import MobxReactForm from '../../../../stores/MobxReactForm';
interface IEditorProps {
value: {
title: string;
description: string;
};
onChange: (value: {
title: string;
description: string;
}) => void;
onClose: () => void;
}
interface IEditorState {
title: string;
description: string;
}
export declare class Editor extends React.PureComponent<IEditorProps, IEditorState> {
form: MobxReactForm;
validTitle({ field }: any): (string | boolean)[];
handleSubmit(): Promise<void>;
componentDidMount(): void;
render(): React.JSX.Element;
}
declare const _default: React.ComponentClass<IEditorProps, any> & import("hoist-non-react-statics").NonReactStatics<(React.ComponentClass<IEditorProps, any> & typeof Editor) | (React.FunctionComponent<IEditorProps> & typeof Editor), {}>;
export default _default;