feat: add control minimum width option

This commit is contained in:
Hufe921
2023-09-03 17:54:35 +08:00
committed by Hufe
parent 0def5e22f1
commit 4b2bbfbe9a
11 changed files with 79 additions and 8 deletions
+2
View File
@@ -27,6 +27,8 @@ export interface IControlBasic {
conceptId?: string
prefix?: string
postfix?: string
minWidth?: number
underline?: boolean
}
export type IControl = IControlBasic &
+1
View File
@@ -136,6 +136,7 @@ export interface IElementPosition {
rowNo: number
ascent: number
lineHeight: number
left: number
metrics: IElementMetrics
isFirstLetter: boolean
isLastLetter: boolean
+1
View File
@@ -4,6 +4,7 @@ import { IElement, IElementMetrics } from './Element'
export type IRowElement = IElement & {
metrics: IElementMetrics
style: string
left?: number
}
export interface IRow {