feat: add word break option #212

This commit is contained in:
Hufe921
2023-07-12 20:40:58 +08:00
parent 0c4d53ccc9
commit d471165430
7 changed files with 53 additions and 7 deletions
+1
View File
@@ -51,6 +51,7 @@ interface IEditorOption {
paperDirection?: PaperDirection; // 纸张方向:纵向、横向
inactiveAlpha?: number; // 正文内容失焦时透明度。默认值:0.6
historyMaxRecordCount: number; // 历史(撤销重做)最大记录次数。默认:100次
wordBreak: WordBreak; // 单词与标点断行:BREAK_WORD首行不出现标点&单词不拆分、BREAK_ALL按字符宽度撑满后折行。默认:BREAK_WORD
watermark?: IWatermark; // 水印信息。{data:string; color?:string; opacity?:number; size?:number; font?: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;}