docs: update schema, shortcut, option

pr675
Hufe921 3 years ago
parent c02a96cb8a
commit 2f64395cbd

@ -64,6 +64,7 @@ interface IEditorOption {
interface IHeader {
top?: number; // 距离页面顶部大小。默认30
maxHeightRadio?: MaxHeightRatio; // 占页面最大高度比。默认HALF
disabled?: boolean; // 是否禁用
}
```
@ -73,6 +74,7 @@ interface IHeader {
interface IFooter {
bottom?: number; // 距离页面底部大小。默认30
maxHeightRadio?: MaxHeightRatio; // 占页面最大高度比。默认HALF
disabled?: boolean; // 是否禁用
}
```
@ -87,6 +89,7 @@ interface IPageNumber {
rowFlex?: RowFlex; // 行对齐方式。默认CENTER
format?: string; // 页码格式。默认:{pageNo}。示例:第{pageNo}页/共{pageCount}页
numberType?: NumberType; // 数字类型。默认ARABIC
disabled?: boolean; // 是否禁用
}
```

@ -21,6 +21,7 @@ interface IElement {
BLOCK = 'block'
};
value: string;
valueList?: IElement[]; // 复合元素(超链接、标题、列表等)使用
// 样式
font?: string;
size?: number;
@ -42,11 +43,9 @@ interface IElement {
letterSpacing?: number;
// 表格
colgroup?: {
id?: string;
width: number;
}[];
trList?: {
id?: string;
height: number;
tdList: {
colspan: number;
@ -55,14 +54,9 @@ interface IElement {
value: IElement[];
}[];
}[];
tdId?: string;
trId?: string;
tableId?: string;
borderType?: TableBorder;
// 超链接
valueList?: IElement[];
url?: string;
hyperlinkId?: string;
// 上下标
actualSize?: number;
// 分割线
@ -92,7 +86,6 @@ interface IElement {
disabled?: boolean;
};
};
controlId?: string;
controlComponent?: {
PREFIX = 'prefix',
POSTFIX = 'postfix',
@ -110,7 +103,6 @@ interface IElement {
laTexSVG?: string;
// 日期
dateFormat?: string;
dateId?: string;
// 图片
imgDisplay?: {
INLINE = 'inline',
@ -129,5 +121,10 @@ interface IElement {
src: string;
};
};
// 标题
level?: TitleLevel;
// 列表
listType?: ListType;
listStyle?: ListStyle;
}
```

@ -92,3 +92,30 @@
## Ctrl/Cmd + Shift + <
功能:下标
## Ctrl + Alt/Option + 0
功能:正文
## Ctrl + Alt/Option + 1
功能:标题一
## Ctrl + Alt/Option + 2
功能:标题二
## Ctrl + Alt/Option + 3
功能:标题三
## Ctrl + Alt/Option + 4
功能:标题四
## Ctrl + Alt/Option + 5
功能:标题五
## Ctrl + Alt/Option + 6
功能:标题六
## Ctrl/Cmd + Shift + I
功能:无序列表
## Ctrl/Cmd + Shift + U
功能:有序列表

@ -10,7 +10,7 @@
## 功能点
- 富文本操作(撤销、重做、字体、字号、加粗、斜体、上下标、对齐方式.....
- 富文本操作(撤销、重做、字体、字号、加粗、斜体、上下标、对齐方式、标题、列表.....
- 插入元素表格、图片、链接、代码块、分页符、Math公式、日期选择器、内容块......
- 打印基于canvas转图片、pdf绘制
- 控件(单选、文本、复选框)
@ -24,7 +24,7 @@
## 待开发
- 调整行首标点符号
- 标题、列表功能完善
- 计算性能
- 控件规则
- 表格分页

Loading…
Cancel
Save