feat: add getTitleValue api #536
This commit is contained in:
@@ -231,3 +231,17 @@ Usage:
|
||||
```javascript
|
||||
const container = await instance.command.getContainer()
|
||||
```
|
||||
|
||||
## getTitleValue
|
||||
|
||||
Feature: Get title value
|
||||
|
||||
Usage:
|
||||
|
||||
```javascript
|
||||
const {
|
||||
value: string | null
|
||||
elementList: IElement[]
|
||||
zone: EditorZone
|
||||
}[] = await instance.command.getTitleValue(payload: IGetTitleValueOption)
|
||||
```
|
||||
|
||||
@@ -164,6 +164,7 @@ interface IElement {
|
||||
};
|
||||
// title
|
||||
level?: TitleLevel;
|
||||
title?: ITitle;
|
||||
// list
|
||||
listType?: ListType;
|
||||
listStyle?: ListStyle;
|
||||
|
||||
@@ -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)
|
||||
```
|
||||
|
||||
@@ -164,6 +164,7 @@ interface IElement {
|
||||
};
|
||||
// 标题
|
||||
level?: TitleLevel;
|
||||
title?: ITitle;
|
||||
// 列表
|
||||
listType?: ListType;
|
||||
listStyle?: ListStyle;
|
||||
|
||||
Reference in New Issue
Block a user