docs: add title api and option

pr675
Hufe921 3 years ago committed by Hufe
parent 9701b2153e
commit a9b44387bd

@ -200,6 +200,13 @@ instance.command.executeColor()
```javascript ```javascript
instance.command.executeHighlight() instance.command.executeHighlight()
``` ```
## executeTitle
功能:标题设置
用法:
```javascript
instance.command.executeTitle(TitleLevel | null)
```
## executeLeft ## executeLeft
功能:行居左 功能:行居左

@ -54,6 +54,7 @@ interface IEditorOption {
control?: IControlOption; // 控件信息。 {placeholderColor?:string; bracketColor?:string; prefix?:string; postfix?:string;} control?: IControlOption; // 控件信息。 {placeholderColor?:string; bracketColor?:string; prefix?:string; postfix?:string;}
checkbox?: ICheckboxOption; // 复选框信息。{width?:number; height?:number; gap?:number; lineWidth?:number; fillStyle?:string; fontStyle?: 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;} cursor?: ICursorOption; // 光标样式。{width?: number; color?: string; dragWidth?: number; dragColor?: string;}
title?: ITitleOption; // 标题配置。{ defaultFirstSize?: number; defaultSecondSize?: number; defaultThirdSize?: number defaultFourthSize?: number; defaultFifthSize?: number; defaultSixthSize?: number;}
} }
``` ```

Loading…
Cancel
Save