///
///
import * as React from "react";
import { AtomicBlock } from "./AtomicBlock";
import { EditorProps, EditorState, ContentBlock, RawDraftContentState } from "draft-js";
import "draft-js/dist/Draft.css";
export interface QTextViewProps {
readOnly?: boolean;
onChange?: (editorState: EditorState) => void;
value?: RawDraftContentState;
className?: string;
editorProps?: EditorProps;
}
export interface QTextViewState {
editorState: EditorState;
}
/**
* 如果有editorstate传入 就以editorState 的数据为准,其次是value
* 如果支持render data可以通过value
*/
export declare class QTextView extends React.Component {
static defaultProps: QTextViewProps;
constructor(props: QTextViewProps);
getBlockRender: (block: ContentBlock) => {
component: typeof AtomicBlock;
editable: boolean;
props: {
editorState: EditorState;
};
} | null;
onChange: (editorState: EditorState) => void;
render(): JSX.Element;
componentWillReceiveProps(nextProps: QTextViewProps): void;
getEditorState(): EditorState;
getData(): RawDraftContentState;
setData(rowData: RawDraftContentState): void;
}
declare const _default: {
QTextView: typeof QTextView;
};
export default _default;