UNPKG

@qn-pandora/pandora-visualization

Version:

Pandora 通用可视化库

20 lines (19 loc) 640 B
import React from 'react'; import { EditorState } from 'braft-editor'; import 'braft-editor/dist/index.css'; interface IBraftEditorProps { value?: string; onChange?: (value: string) => void; } interface IBraftEditorState { editorState: EditorState; } export default class BraftEditor extends React.Component<IBraftEditorProps, IBraftEditorState> { state: IBraftEditorState; static getDerivedStateFromProps(nextProps: IBraftEditorProps, prevState: IBraftEditorState): { editorState: any; } | null; handleEditorStateChange: (editorState: EditorState) => void; render(): React.JSX.Element; } export {};