优化Editor组件类型

master
LiuJiaNan 2025-12-06 15:45:33 +08:00
parent 6a9e377f0a
commit b934bbffda
1 changed files with 2 additions and 2 deletions

View File

@ -3,9 +3,9 @@ import type { ForwardRefExoticComponent, RefAttributes } from "react";
export interface EditorProps { export interface EditorProps {
/** 编辑器内容值 */ /** 编辑器内容值 */
value?: string; value: string;
/** 内容改变回调 */ /** 内容改变回调 */
onChange?: (html: string) => void; onChange: (html: string) => void;
/** 是否禁用 */ /** 是否禁用 */
disabled?: boolean; disabled?: boolean;
} }