From a9b44387bd174cbd1bab8c308bb732f68800ef34 Mon Sep 17 00:00:00 2001 From: Hufe921 Date: Thu, 6 Apr 2023 20:47:18 +0800 Subject: [PATCH] docs: add title api and option --- docs/guide/command-execute.md | 7 +++++++ docs/guide/option.md | 1 + 2 files changed, 8 insertions(+) diff --git a/docs/guide/command-execute.md b/docs/guide/command-execute.md index caac4e8..ffbecb7 100644 --- a/docs/guide/command-execute.md +++ b/docs/guide/command-execute.md @@ -200,6 +200,13 @@ instance.command.executeColor() ```javascript instance.command.executeHighlight() ``` +## executeTitle +功能:标题设置 + +用法: +```javascript +instance.command.executeTitle(TitleLevel | null) +``` ## executeLeft 功能:行居左 diff --git a/docs/guide/option.md b/docs/guide/option.md index ea94b6c..5b82ad5 100644 --- a/docs/guide/option.md +++ b/docs/guide/option.md @@ -54,6 +54,7 @@ interface IEditorOption { control?: IControlOption; // 控件信息。 {placeholderColor?:string; bracketColor?:string; prefix?:string; postfix?:string;} checkbox?: ICheckboxOption; // 复选框信息。{width?:number; height?:number; gap?:number; lineWidth?:number; fillStyle?:string; fontStyle?: string;} cursor?: ICursorOption; // 光标样式。{width?: number; color?: string; dragWidth?: number; dragColor?: string;} + title?: ITitleOption; // 标题配置。{ defaultFirstSize?: number; defaultSecondSize?: number; defaultThirdSize?: number defaultFourthSize?: number; defaultFifthSize?: number; defaultSixthSize?: number;} } ```