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
+4
View File
@@ -0,0 +1,4 @@
export interface IColgroup {
id?: string;
width: number;
}
+20
View File
@@ -0,0 +1,20 @@
import { IElement, IElementPosition } from "../Element"
import { IRow } from "../Row"
export interface ITd {
id?: string;
x?: number;
y?: number;
width?: number;
height?: number;
colspan: number;
rowspan: number;
value: IElement[];
isLastRowTd?: boolean;
isLastColTd?: boolean;
isLastTd?: boolean;
rowIndex?: number;
colIndex?: number;
rowList?: IRow[];
positionList?: IElementPosition[];
}
+7
View File
@@ -0,0 +1,7 @@
import { ITd } from "./Td"
export interface ITr {
id?: string;
height: number;
tdList: ITd[];
}