docs: add title api and option

This commit is contained in:
Hufe921
2023-04-06 21:13:07 +08:00
committed by Hufe
parent 9701b2153e
commit a9b44387bd
2 changed files with 8 additions and 0 deletions
+7
View File
@@ -200,6 +200,13 @@ instance.command.executeColor()
```javascript
instance.command.executeHighlight()
```
## executeTitle
功能:标题设置
用法:
```javascript
instance.command.executeTitle(TitleLevel | null)
```
## executeLeft
功能:行居左
+1
View File
@@ -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;}
}
```