feat:add continuity page mode

This commit is contained in:
黄云飞
2022-05-27 16:47:23 +08:00
parent 7c37e84497
commit 361e4394f7
14 changed files with 187 additions and 31 deletions
+3 -2
View File
@@ -1,12 +1,12 @@
import { IElement } from '..'
import { EditorMode } from '../dataset/enum/Editor'
import { EditorMode, PageMode } from '../dataset/enum/Editor'
import { ICheckboxOption } from './Checkbox'
import { IControlOption } from './Control'
import { IHeader } from './Header'
import { IWatermark } from './Watermark'
export interface IEditorOption {
defaultMode?: EditorMode;
mode?: EditorMode;
defaultType?: string;
defaultFont?: string;
defaultSize?: number;
@@ -32,6 +32,7 @@ export interface IEditorOption {
marginIndicatorSize?: number;
marginIndicatorColor?: string,
margins?: [top: number, right: number, bottom: number, left: number],
pageMode?: PageMode;
tdPadding?: number;
defaultTdHeight?: number;
defaultHyperlinkColor?: string;
+4 -2
View File
@@ -1,4 +1,4 @@
import { ElementType } from '..'
import { ElementType, PageMode } from '..'
import { RowFlex } from '../dataset/enum/Row'
import { IControl } from './Control'
import { IEditorResult } from './Editor'
@@ -34,4 +34,6 @@ export type ISaved = (payload: IEditorResult) => void
export type IContentChange = () => void
export type IControlChange = (payload: IControl | null) => void
export type IControlChange = (payload: IControl | null) => void
export type IPageModeChange = (payload: PageMode) => void