feat:content block core

This commit is contained in:
Hufe921
2022-11-27 20:11:29 +08:00
parent 4118fd4be3
commit 8f7eb3e67f
15 changed files with 189 additions and 5 deletions
+10
View File
@@ -0,0 +1,10 @@
import { BlockType } from '../dataset/enum/Block'
export interface IIFrameBlock {
src: string;
}
export interface IBlock {
type: BlockType;
iframeBlock?: IIFrameBlock;
}
+6
View File
@@ -1,6 +1,7 @@
import { ControlComponent, ImageDisplay } from '../dataset/enum/Control'
import { ElementType } from '../dataset/enum/Element'
import { RowFlex } from '../dataset/enum/Row'
import { IBlock } from './Block'
import { ICheckbox } from './Checkbox'
import { IControl } from './Control'
import { IColgroup } from './table/Colgroup'
@@ -78,6 +79,10 @@ export interface IImageElement {
imgDisplay?: ImageDisplay
}
export interface IBlockElement {
block?: IBlock;
}
export type IElement = IElementBasic
& IElementStyle
& ITable
@@ -89,6 +94,7 @@ export type IElement = IElementBasic
& ILaTexElement
& IDateElement
& IImageElement
& IBlockElement
export interface IElementMetrics {
width: number;