refactor: update tdPadding option format

This commit is contained in:
Hufe921
2023-09-02 16:24:32 +08:00
parent d8876b1095
commit 752ca43077
7 changed files with 32 additions and 20 deletions
+7
View File
@@ -34,3 +34,10 @@ export type DeepRequired<T> = T extends Error
export type DeepPartial<T> = {
[P in keyof T]?: DeepPartial<T[P]>
}
export type IPadding = [
top: number,
right: number,
bottom: number,
left: number
]
+2 -1
View File
@@ -6,6 +6,7 @@ import {
WordBreak
} from '../dataset/enum/Editor'
import { ICheckboxOption } from './Checkbox'
import { IPadding } from './Common'
import { IControlOption } from './Control'
import { ICursorOption } from './Cursor'
import { IFooter } from './Footer'
@@ -53,7 +54,7 @@ export interface IEditorOption {
marginIndicatorColor?: string
margins?: IMargin
pageMode?: PageMode
tdPadding?: number
tdPadding?: IPadding
defaultTrMinHeight?: number
defaultColMinWidth?: number
defaultHyperlinkColor?: string