|
|
@@ -55,9 +55,9 @@ export default { |
|
|
|
// 宽度与高度的比例必须约等于纸张宽度与纸张高度的比例,否则拖拽组件将错位 |
|
|
|
shapeChanged(element) { |
|
|
|
if (element === "pageWidth") { |
|
|
|
this.pageInfo.width = this.pageInfo.pageWidth * 2.5 |
|
|
|
this.pageInfo.width = this.pageInfo.pageWidth / 0.28 |
|
|
|
} else if (element === "pageHeight") { |
|
|
|
this.pageInfo.height = this.pageInfo.pageHeight * 2.5 |
|
|
|
this.pageInfo.height = this.pageInfo.pageHeight / 0.28 |
|
|
|
} |
|
|
|
}, |
|
|
|
|
|
|
@@ -68,8 +68,8 @@ export default { |
|
|
|
this.shapeChanged("pageWidth") |
|
|
|
this.shapeChanged("pageHeight") |
|
|
|
} else if (num == 2) { |
|
|
|
this.pageInfo.pageWidth = 210 |
|
|
|
this.pageInfo.pageHeight = 105 |
|
|
|
this.pageInfo.pageWidth = 215 |
|
|
|
this.pageInfo.pageHeight = 140 |
|
|
|
this.shapeChanged("pageWidth") |
|
|
|
this.shapeChanged("pageHeight") |
|
|
|
} |
|
|
|