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
+2
View File
@@ -10,6 +10,7 @@ import { ICheckbox } from './Checkbox'
import { IControl } from './Control'
import { IRadio } from './Radio'
import { ITextDecoration } from './Text'
import { ITitle } from './Title'
import { IColgroup } from './table/Colgroup'
import { ITr } from './table/Tr'
@@ -45,6 +46,7 @@ export interface ITitleElement {
valueList?: IElement[]
level?: TitleLevel
titleId?: string
title?: ITitle
}
export interface IListElement {
+17
View File
@@ -1,3 +1,6 @@
import { EditorZone } from '../dataset/enum/Editor'
import { IElement } from './Element'
export interface ITitleSizeOption {
defaultFirstSize?: number
defaultSecondSize?: number
@@ -8,3 +11,17 @@ export interface ITitleSizeOption {
}
export type ITitleOption = ITitleSizeOption & {}
export interface ITitle {
conceptId?: string
}
export interface IGetTitleValueOption {
conceptId: string
}
export type IGetTitleValueResult = (ITitle & {
value: string | null
elementList: IElement[]
zone: EditorZone
})[]