feat: add getTitleValue api #536

This commit is contained in:
Hufe921
2024-05-02 22:26:00 +08:00
parent 0ae67ec602
commit 15f52c5e43
10 changed files with 136 additions and 3 deletions
+16 -1
View File
@@ -209,7 +209,8 @@ const groupIds = await instance.command.getGroupIds()
const {
value: string | null
innerText: string | null
} = await instance.command.getControlValue(payload: IGetControlValueOption)
zone: EditorZone
}[] = await instance.command.getControlValue(payload: IGetControlValueOption)
```
## getControlList
@@ -231,3 +232,17 @@ const controlList = await instance.command.getControlList()
```javascript
const container = await instance.command.getContainer()
```
## getTitleValue
功能:获取标题值
用法:
```javascript
const {
value: string | null
elementList: IElement[]
zone: EditorZone
}[] = await instance.command.getTitleValue(payload: IGetTitleValueOption)
```
+1
View File
@@ -164,6 +164,7 @@ interface IElement {
};
// 标题
level?: TitleLevel;
title?: ITitle;
// 列表
listType?: ListType;
listStyle?: ListStyle;