feat:add table component

This commit is contained in:
黄云飞
2021-12-11 10:34:00 +08:00
parent 5869d1b3e9
commit 1a9bcfe3d0
21 changed files with 983 additions and 96 deletions
+25 -10
View File
@@ -1,11 +1,12 @@
import { ElementType } from "../dataset/enum/Element"
import { RowFlex } from "../dataset/enum/Row"
import { IColgroup } from "./table/Colgroup"
import { ITr } from "./table/Tr"
export interface IElementMetrics {
width: number;
height: number;
boundingBoxAscent: number;
boundingBoxDescent: number;
export interface IElementBasic {
id?: string;
type?: ElementType;
value: string;
}
export interface IElementStyle {
@@ -23,13 +24,27 @@ export interface IElementStyle {
rowMargin?: number;
}
export interface IElementBasic {
id?: string;
type?: ElementType;
value: string;
export interface ITableAttr {
colgroup?: IColgroup[];
trList?: ITr[];
}
export type IElement = IElementBasic & IElementStyle
export interface ITableElement {
tdId?: string;
trId?: string;
tableId?: string;
}
export type ITable = ITableAttr & ITableElement
export type IElement = IElementBasic & IElementStyle & ITable
export interface IElementMetrics {
width: number;
height: number;
boundingBoxAscent: number;
boundingBoxDescent: number;
}
export interface IElementPosition {
pageNo: number;