diff --git a/components/Editor/index.d.ts b/components/Editor/index.d.ts index d940681..03017ab 100644 --- a/components/Editor/index.d.ts +++ b/components/Editor/index.d.ts @@ -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; }