优化Editor组件类型
parent
6a9e377f0a
commit
b934bbffda
|
|
@ -3,9 +3,9 @@ import type { ForwardRefExoticComponent, RefAttributes } from "react";
|
|||
|
||||
export interface EditorProps {
|
||||
/** 编辑器内容值 */
|
||||
value?: string;
|
||||
value: string;
|
||||
/** 内容改变回调 */
|
||||
onChange?: (html: string) => void;
|
||||
onChange: (html: string) => void;
|
||||
/** 是否禁用 */
|
||||
disabled?: boolean;
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in New Issue