docs: update schema, shortcut, option
This commit is contained in:
@@ -64,6 +64,7 @@ interface IEditorOption {
|
|||||||
interface IHeader {
|
interface IHeader {
|
||||||
top?: number; // 距离页面顶部大小。默认:30
|
top?: number; // 距离页面顶部大小。默认:30
|
||||||
maxHeightRadio?: MaxHeightRatio; // 占页面最大高度比。默认:HALF
|
maxHeightRadio?: MaxHeightRatio; // 占页面最大高度比。默认:HALF
|
||||||
|
disabled?: boolean; // 是否禁用
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -73,6 +74,7 @@ interface IHeader {
|
|||||||
interface IFooter {
|
interface IFooter {
|
||||||
bottom?: number; // 距离页面底部大小。默认:30
|
bottom?: number; // 距离页面底部大小。默认:30
|
||||||
maxHeightRadio?: MaxHeightRatio; // 占页面最大高度比。默认:HALF
|
maxHeightRadio?: MaxHeightRatio; // 占页面最大高度比。默认:HALF
|
||||||
|
disabled?: boolean; // 是否禁用
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
@@ -87,6 +89,7 @@ interface IPageNumber {
|
|||||||
rowFlex?: RowFlex; // 行对齐方式。默认:CENTER
|
rowFlex?: RowFlex; // 行对齐方式。默认:CENTER
|
||||||
format?: string; // 页码格式。默认:{pageNo}。示例:第{pageNo}页/共{pageCount}页
|
format?: string; // 页码格式。默认:{pageNo}。示例:第{pageNo}页/共{pageCount}页
|
||||||
numberType?: NumberType; // 数字类型。默认:ARABIC
|
numberType?: NumberType; // 数字类型。默认:ARABIC
|
||||||
|
disabled?: boolean; // 是否禁用
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
|
|
||||||
|
|||||||
@@ -21,6 +21,7 @@ interface IElement {
|
|||||||
BLOCK = 'block'
|
BLOCK = 'block'
|
||||||
};
|
};
|
||||||
value: string;
|
value: string;
|
||||||
|
valueList?: IElement[]; // 复合元素(超链接、标题、列表等)使用
|
||||||
// 样式
|
// 样式
|
||||||
font?: string;
|
font?: string;
|
||||||
size?: number;
|
size?: number;
|
||||||
@@ -42,11 +43,9 @@ interface IElement {
|
|||||||
letterSpacing?: number;
|
letterSpacing?: number;
|
||||||
// 表格
|
// 表格
|
||||||
colgroup?: {
|
colgroup?: {
|
||||||
id?: string;
|
|
||||||
width: number;
|
width: number;
|
||||||
}[];
|
}[];
|
||||||
trList?: {
|
trList?: {
|
||||||
id?: string;
|
|
||||||
height: number;
|
height: number;
|
||||||
tdList: {
|
tdList: {
|
||||||
colspan: number;
|
colspan: number;
|
||||||
@@ -55,14 +54,9 @@ interface IElement {
|
|||||||
value: IElement[];
|
value: IElement[];
|
||||||
}[];
|
}[];
|
||||||
}[];
|
}[];
|
||||||
tdId?: string;
|
|
||||||
trId?: string;
|
|
||||||
tableId?: string;
|
|
||||||
borderType?: TableBorder;
|
borderType?: TableBorder;
|
||||||
// 超链接
|
// 超链接
|
||||||
valueList?: IElement[];
|
|
||||||
url?: string;
|
url?: string;
|
||||||
hyperlinkId?: string;
|
|
||||||
// 上下标
|
// 上下标
|
||||||
actualSize?: number;
|
actualSize?: number;
|
||||||
// 分割线
|
// 分割线
|
||||||
@@ -92,7 +86,6 @@ interface IElement {
|
|||||||
disabled?: boolean;
|
disabled?: boolean;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
controlId?: string;
|
|
||||||
controlComponent?: {
|
controlComponent?: {
|
||||||
PREFIX = 'prefix',
|
PREFIX = 'prefix',
|
||||||
POSTFIX = 'postfix',
|
POSTFIX = 'postfix',
|
||||||
@@ -110,7 +103,6 @@ interface IElement {
|
|||||||
laTexSVG?: string;
|
laTexSVG?: string;
|
||||||
// 日期
|
// 日期
|
||||||
dateFormat?: string;
|
dateFormat?: string;
|
||||||
dateId?: string;
|
|
||||||
// 图片
|
// 图片
|
||||||
imgDisplay?: {
|
imgDisplay?: {
|
||||||
INLINE = 'inline',
|
INLINE = 'inline',
|
||||||
@@ -129,5 +121,10 @@ interface IElement {
|
|||||||
src: string;
|
src: string;
|
||||||
};
|
};
|
||||||
};
|
};
|
||||||
|
// 标题
|
||||||
|
level?: TitleLevel;
|
||||||
|
// 列表
|
||||||
|
listType?: ListType;
|
||||||
|
listStyle?: ListStyle;
|
||||||
}
|
}
|
||||||
```
|
```
|
||||||
@@ -92,3 +92,30 @@
|
|||||||
|
|
||||||
## Ctrl/Cmd + Shift + <
|
## 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
|
||||||
|
功能:有序列表
|
||||||
+2
-2
@@ -10,7 +10,7 @@
|
|||||||
|
|
||||||
## 功能点
|
## 功能点
|
||||||
|
|
||||||
- 富文本操作(撤销、重做、字体、字号、加粗、斜体、上下标、对齐方式.....)
|
- 富文本操作(撤销、重做、字体、字号、加粗、斜体、上下标、对齐方式、标题、列表.....)
|
||||||
- 插入元素(表格、图片、链接、代码块、分页符、Math公式、日期选择器、内容块......)
|
- 插入元素(表格、图片、链接、代码块、分页符、Math公式、日期选择器、内容块......)
|
||||||
- 打印(基于canvas转图片、pdf绘制)
|
- 打印(基于canvas转图片、pdf绘制)
|
||||||
- 控件(单选、文本、复选框)
|
- 控件(单选、文本、复选框)
|
||||||
@@ -24,7 +24,7 @@
|
|||||||
|
|
||||||
## 待开发
|
## 待开发
|
||||||
|
|
||||||
- 调整行首标点符号
|
- 标题、列表功能完善
|
||||||
- 计算性能
|
- 计算性能
|
||||||
- 控件规则
|
- 控件规则
|
||||||
- 表格分页
|
- 表格分页
|
||||||
|
|||||||
Reference in New Issue
Block a user