feat: add element group

This commit is contained in:
Hufe921
2023-08-25 20:00:02 +08:00
committed by Hufe
parent f19077b2ce
commit 3e183aefa5
27 changed files with 488 additions and 17 deletions
+1
View File
@@ -9,6 +9,7 @@ export interface IDrawOption {
isCompute?: boolean
isLazy?: boolean
isInit?: boolean
isSourceHistory?: boolean
}
export interface IDrawImagePayload {
+2
View File
@@ -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 {
+5
View File
@@ -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 &
+7
View File
@@ -0,0 +1,7 @@
export interface IGroup {
opacity?: number
backgroundColor?: string
activeOpacity?: number
activeBackgroundColor?: string
disabled?: boolean
}
+1
View File
@@ -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