feat: add element group
This commit is contained in:
@@ -763,3 +763,33 @@ instance.command.executeWordTool()
|
||||
```javascript
|
||||
instance.command.executeSetHTML(payload: Partial<IEditorHTML)
|
||||
```
|
||||
|
||||
## executeSetGroup
|
||||
|
||||
功能:设置成组
|
||||
|
||||
用法:
|
||||
|
||||
```javascript
|
||||
instance.command.executeSetGroup()
|
||||
```
|
||||
|
||||
## executeDeleteGroup
|
||||
|
||||
功能:删除成组
|
||||
|
||||
用法:
|
||||
|
||||
```javascript
|
||||
instance.command.executeDeleteGroup(groupId: string)
|
||||
```
|
||||
|
||||
## executeLocationGroup
|
||||
|
||||
功能:定位成组位置
|
||||
|
||||
用法:
|
||||
|
||||
```javascript
|
||||
instance.command.executeLocationGroup(groupId: string)
|
||||
```
|
||||
|
||||
@@ -158,3 +158,13 @@ const {
|
||||
```javascript
|
||||
const locale = await instance.command.getLocale()
|
||||
```
|
||||
|
||||
## getGroupIds
|
||||
|
||||
功能:获取所有成组 id
|
||||
|
||||
用法:
|
||||
|
||||
```javascript
|
||||
const groupIds = await instance.command.getGroupIds()
|
||||
```
|
||||
|
||||
@@ -61,6 +61,7 @@ interface IEditorOption {
|
||||
cursor?: ICursorOption // 光标样式。{width?: number; color?: string; dragWidth?: number; dragColor?: string;}
|
||||
title?: ITitleOption // 标题配置。{ defaultFirstSize?: number; defaultSecondSize?: number; defaultThirdSize?: number defaultFourthSize?: number; defaultFifthSize?: number; defaultSixthSize?: number;}
|
||||
placeholder?: IPlaceholder // 编辑器空白占位文本
|
||||
group?: IGroup // 成组配置。{opacity?:number; backgroundColor?:string; activeOpacity?:number; activeBackgroundColor?:string; disabled?:boolean}
|
||||
}
|
||||
```
|
||||
|
||||
|
||||
@@ -41,6 +41,8 @@ interface IElement {
|
||||
};
|
||||
rowMargin?: number;
|
||||
letterSpacing?: number;
|
||||
// 组信息-可用于批注等其他成组使用场景
|
||||
groupIds?: string[];
|
||||
// 表格
|
||||
colgroup?: {
|
||||
width: number;
|
||||
|
||||
Reference in New Issue
Block a user