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 {
// 配置
const { width, height, margins, watermark } = this.options
const { width, height, margins, watermark, header } = this.options
// 数据
const data = zipElementList(this.elementList)
return {
@@ -502,6 +502,7 @@ export class Draw {
width,
height,
margins,
header: header.data ? header : undefined,
watermark: watermark.data ? watermark : undefined,
data
}
+1
View File
@@ -51,6 +51,7 @@ export interface IEditorResult {
width: number;
height: number;
margins: IMargin;
header?: IHeader;
watermark?: IWatermark;
data: IElement[];
}