feat: add element group
This commit is contained in:
@@ -9,6 +9,7 @@ export interface IDrawOption {
|
||||
isCompute?: boolean
|
||||
isLazy?: boolean
|
||||
isInit?: boolean
|
||||
isSourceHistory?: boolean
|
||||
}
|
||||
|
||||
export interface IDrawImagePayload {
|
||||
|
||||
@@ -9,6 +9,7 @@ import { ICheckboxOption } from './Checkbox'
|
||||
import { IControlOption } from './Control'
|
||||
import { ICursorOption } from './Cursor'
|
||||
import { IFooter } from './Footer'
|
||||
import { IGroup } from './Group'
|
||||
import { IHeader } from './Header'
|
||||
import { IMargin } from './Margin'
|
||||
import { IPageNumber } from './PageNumber'
|
||||
@@ -70,6 +71,7 @@ export interface IEditorOption {
|
||||
cursor?: ICursorOption
|
||||
title?: ITitleOption
|
||||
placeholder?: IPlaceholder
|
||||
group?: IGroup
|
||||
}
|
||||
|
||||
export interface IEditorResult {
|
||||
|
||||
@@ -32,6 +32,10 @@ export interface IElementStyle {
|
||||
letterSpacing?: number
|
||||
}
|
||||
|
||||
export interface IElementGroup {
|
||||
groupIds?: string[]
|
||||
}
|
||||
|
||||
export interface ITitleElement {
|
||||
valueList?: IElement[]
|
||||
level?: TitleLevel
|
||||
@@ -103,6 +107,7 @@ export interface IBlockElement {
|
||||
|
||||
export type IElement = IElementBasic &
|
||||
IElementStyle &
|
||||
IElementGroup &
|
||||
ITable &
|
||||
IHyperlinkElement &
|
||||
ISuperscriptSubscript &
|
||||
|
||||
@@ -0,0 +1,7 @@
|
||||
export interface IGroup {
|
||||
opacity?: number
|
||||
backgroundColor?: string
|
||||
activeOpacity?: number
|
||||
activeBackgroundColor?: string
|
||||
disabled?: boolean
|
||||
}
|
||||
@@ -29,6 +29,7 @@ export interface IRangeStyle {
|
||||
level: TitleLevel | null
|
||||
listType: ListType | null
|
||||
listStyle: ListStyle | null
|
||||
groupIds: string[] | null
|
||||
}
|
||||
|
||||
export type IRangeStyleChange = (payload: IRangeStyle) => void
|
||||
|
||||
Reference in New Issue
Block a user