@goplusvn/core 0.1.69 → 0.1.70
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.
- package/CHANGELOG.md +9 -0
- package/package.json +1 -1
- package/src/print/print-styles.tsx +4 -1
package/CHANGELOG.md
CHANGED
|
@@ -1,5 +1,14 @@
|
|
|
1
1
|
# Changelog
|
|
2
2
|
|
|
3
|
+
## 0.1.70 — In A5 ngang: khai kích thước tường minh thay từ khóa `landscape`
|
|
4
|
+
|
|
5
|
+
`PrintStyles` khổ `A5-Landscape` đổi `@page size: A5 landscape` →
|
|
6
|
+
`size: 210mm 148.5mm`. Một số driver máy in (PC cửa hàng Vinh Hoa) bỏ qua từ
|
|
7
|
+
khóa `landscape`, in trang dọc rồi scale fill theo chiều cao (×1,414) — bản in
|
|
8
|
+
giấy chỉ còn đúng nửa TRÁI của phiếu (mất cột Nhân viên/CCCD, nửa tiêu đề, cột
|
|
9
|
+
tiền và khối ký Khách hàng). Kích thước tường minh được driver tôn trọng ổn
|
|
10
|
+
định hơn; Chrome/preview không đổi hành vi.
|
|
11
|
+
|
|
3
12
|
## 0.1.69 — Hàng rào kiến trúc thành thư viện: `@goerp/core/guardrails`
|
|
4
13
|
|
|
5
14
|
Mỗi app dựng từ bộ init trước đây tự chép một file `architecture.test.ts`. Chép
|
package/package.json
CHANGED
|
@@ -20,7 +20,10 @@ export function PrintStyles({ pageSize = "A4" }: PrintStylesProps) {
|
|
|
20
20
|
}
|
|
21
21
|
case "A5-Landscape":
|
|
22
22
|
return {
|
|
23
|
-
|
|
23
|
+
// Kích thước tường minh thay cho "A5 landscape": một số driver máy in
|
|
24
|
+
// (PC cửa hàng) bỏ qua từ khóa landscape rồi in dọc + scale fill,
|
|
25
|
+
// cắt mất nửa phải trang.
|
|
26
|
+
size: "210mm 148.5mm",
|
|
24
27
|
maxWidth: "210mm", // width
|
|
25
28
|
padding: "12mm 12mm", // increased top padding from 8mm
|
|
26
29
|
fontSize: "10pt",
|