feat:增加行布局

This commit is contained in:
黄云飞
2021-11-19 11:18:30 +08:00
parent 45c2abe18f
commit e614cc5b56
15 changed files with 132 additions and 6 deletions
+3
View File
@@ -1,3 +1,5 @@
import { RowFlex } from "../dataset/enum/Row"
export interface IElementStyle {
font?: string;
size?: number;
@@ -9,6 +11,7 @@ export interface IElementStyle {
italic?: boolean;
underline?: boolean;
strikeout?: boolean;
rowFlex?: RowFlex;
}
export interface IElementBasic {
+3
View File
@@ -1,3 +1,5 @@
import { RowFlex } from "../dataset/enum/Row"
export interface IRangeStype {
undo: boolean;
redo: boolean;
@@ -9,6 +11,7 @@ export interface IRangeStype {
strikeout: boolean;
color: string | null;
highlight: string | null;
rowFlex: RowFlex | null;
}
export type IRangeStyleChange = (payload: IRangeStype) => void;
+2
View File
@@ -1,3 +1,4 @@
import { RowFlex } from "../dataset/enum/Row"
import { IElement } from "./Element"
export type IRowElement = IElement & {
@@ -8,5 +9,6 @@ export interface IRow {
width: number;
height: number;
ascent: number;
rowFlex?: RowFlex
elementList: IRowElement[];
}