meemup-library 1.9.3 → 1.9.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
|
@@ -270,17 +270,19 @@ class SimplePreviewController {
|
|
|
270
270
|
printCustomerRemark(template, detail) {
|
|
271
271
|
if (!detail.order.remarks || detail.order.remarks.trim().length === 0)
|
|
272
272
|
return "";
|
|
273
|
+
const fontSize = template.layout === EnumPrintLayout.LARGE ? (template.printer === 5 ? 22 : template.fontSize + 10) : template.fontSize;
|
|
273
274
|
return `${this.createDivContainer(template)}
|
|
274
275
|
${this.printSimpleDashLine()}
|
|
275
|
-
<p style="text-align: left; font-size: ${
|
|
276
|
+
<p style="text-align: left; font-size: ${fontSize}px; padding-top: 4px; padding-bottom: 4px;">${detail.order.remarks}</p>
|
|
276
277
|
</div>`;
|
|
277
278
|
}
|
|
278
279
|
printDeliveryInstructionsRemarks(template, detail) {
|
|
279
280
|
if (detail.order.orderType !== EnumOrderType.delivery || !detail.order.deliveryInstructionsRemarks || detail.order.deliveryInstructionsRemarks.trim().length === 0)
|
|
280
281
|
return "";
|
|
282
|
+
const fontSize = template.layout === EnumPrintLayout.LARGE ? (template.printer === 5 ? 22 : template.fontSize + 10) : template.fontSize;
|
|
281
283
|
return `${this.createDivContainer(template)}
|
|
282
284
|
${this.printSimpleDashLine()}
|
|
283
|
-
<p style="text-align: left; font-size: ${
|
|
285
|
+
<p style="text-align: left; font-size: ${fontSize}px; padding-top: 4px; padding-bottom: 4px;">${detail.order.deliveryInstructionsRemarks}</p>
|
|
284
286
|
</div>`;
|
|
285
287
|
}
|
|
286
288
|
printCustomerSignature(template, detail) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "meemup-library",
|
|
3
|
-
"version": "1.9.
|
|
3
|
+
"version": "1.9.4",
|
|
4
4
|
"description": "",
|
|
5
5
|
"main": "dist/index.js",
|
|
6
6
|
"types": "dist/index.d.ts",
|
|
@@ -11,7 +11,7 @@
|
|
|
11
11
|
"remove:one": "rimraf dist",
|
|
12
12
|
"remove:two": "rimraf ./src/dist",
|
|
13
13
|
"test": "echo \"Error: no test specified\" && exit 1",
|
|
14
|
-
"commit": "git add . && git commit -m \"version.1.9.
|
|
14
|
+
"commit": "git add . && git commit -m \"version.1.9.4\" && git push origin "
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
17
|
"/dist"
|