feat:get value add header data

This commit is contained in:
Hufe921
2022-10-03 16:41:48 +08:00
parent 6f375e928e
commit 360fe73b29
2 changed files with 3 additions and 1 deletions
+2 -1
View File
@@ -494,7 +494,7 @@ export class Draw {
public getValue(): IEditorResult { public getValue(): IEditorResult {
// 配置 // 配置
const { width, height, margins, watermark } = this.options const { width, height, margins, watermark, header } = this.options
// 数据 // 数据
const data = zipElementList(this.elementList) const data = zipElementList(this.elementList)
return { return {
@@ -502,6 +502,7 @@ export class Draw {
width, width,
height, height,
margins, margins,
header: header.data ? header : undefined,
watermark: watermark.data ? watermark : undefined, watermark: watermark.data ? watermark : undefined,
data data
} }
+1
View File
@@ -51,6 +51,7 @@ export interface IEditorResult {
width: number; width: number;
height: number; height: number;
margins: IMargin; margins: IMargin;
header?: IHeader;
watermark?: IWatermark; watermark?: IWatermark;
data: IElement[]; data: IElement[];
} }