feat: add control indentation option #345

This commit is contained in:
Hufe921
2023-12-07 20:37:47 +08:00
parent 6de3ad8b21
commit 5f1cf3ab37
9 changed files with 80 additions and 13 deletions
+2 -1
View File
@@ -1,4 +1,4 @@
import { ControlType } from '../dataset/enum/Control'
import { ControlType, ControlIndentation } from '../dataset/enum/Control'
import { ICheckbox } from './Checkbox'
import { IElement } from './Element'
import { IRange } from './Range'
@@ -36,6 +36,7 @@ export interface IControlBasic {
minWidth?: number
underline?: boolean
extension?: unknown
indentation?: ControlIndentation
}
export type IControl = IControlBasic &
+5
View File
@@ -43,6 +43,11 @@ export interface IPositionContext {
tableId?: string
}
export interface IComputeRowPositionPayload {
row: IRow
innerWidth: number
}
export interface IComputePageRowPositionPayload {
positionList: IElementPosition[]
rowList: IRow[]