@zhubangyun/lowcode-core 6.3.20 → 6.4.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.
- package/es/index.d.ts +1 -1
- package/es/index.js +5 -5
- package/es/index.less +0 -1
- package/es/utils/api/form-api/form-api.assemble-entity.js +9 -3
- package/es/utils/api/form-api/form-api.utils.js +13 -19
- package/es/utils/api/form-api.d.ts +0 -1
- package/es/utils/api/form-api.js +4 -37
- package/es/utils/api/index.d.ts +6 -1
- package/es/utils/api/rest-api.d.ts +2 -0
- package/es/utils/api/rest-api.js +125 -108
- package/es/utils/api/script-api.d.ts +1 -1
- package/es/utils/cache/cache.load-data.d.ts +1 -0
- package/es/utils/cache/cache.load-data.js +41 -0
- package/es/utils/cache/cache.page-permission.d.ts +1 -0
- package/es/utils/cache/cache.page-permission.js +28 -0
- package/es/utils/cache/cache.page-print.d.ts +1 -0
- package/es/utils/cache/cache.page-print.js +25 -0
- package/es/utils/cache/cache.page-schema.d.ts +1 -0
- package/es/utils/cache/cache.page-schema.js +96 -0
- package/es/utils/cache/cache.print.js +0 -0
- package/es/utils/cache/index.d.ts +5 -6
- package/es/utils/cache/index.js +19 -32
- package/es/utils/cache/index_db_cache.d.ts +11 -6
- package/es/utils/cache/index_db_cache.js +57 -5
- package/es/utils/page/index.js +1 -1
- package/es/utils/page/page-form-data-manager.d.ts +2 -1
- package/es/utils/page/page-form-group.js +10 -4
- package/es/utils/page/page-layout.d.ts +1 -1
- package/es/utils/page/page-load-schema.js +33 -15
- package/es/utils/page/page-render.js +5 -1
- package/es/utils/page/page-schema-utils.js +18 -2
- package/es/utils/page/print-form.js +2 -4
- package/lib/index.d.ts +1 -1
- package/lib/index.js +6 -6
- package/lib/index.less +0 -1
- package/lib/utils/api/form-api/form-api.assemble-entity.js +9 -3
- package/lib/utils/api/form-api/form-api.utils.js +13 -19
- package/lib/utils/api/form-api.d.ts +0 -1
- package/lib/utils/api/form-api.js +4 -37
- package/lib/utils/api/index.d.ts +6 -1
- package/lib/utils/api/rest-api.d.ts +2 -0
- package/lib/utils/api/rest-api.js +125 -108
- package/lib/utils/api/script-api.d.ts +1 -1
- package/lib/utils/cache/cache.load-data.d.ts +1 -0
- package/lib/utils/cache/cache.load-data.js +44 -0
- package/lib/utils/cache/cache.page-permission.d.ts +1 -0
- package/lib/utils/cache/cache.page-permission.js +33 -0
- package/lib/utils/cache/cache.page-print.d.ts +1 -0
- package/lib/utils/cache/cache.page-print.js +30 -0
- package/lib/utils/cache/cache.page-schema.d.ts +1 -0
- package/lib/utils/cache/cache.page-schema.js +101 -0
- package/lib/utils/cache/cache.print.js +1 -0
- package/lib/utils/cache/index.d.ts +5 -6
- package/lib/utils/cache/index.js +23 -35
- package/lib/utils/cache/index_db_cache.d.ts +11 -6
- package/lib/utils/cache/index_db_cache.js +61 -6
- package/lib/utils/page/index.js +1 -1
- package/lib/utils/page/page-form-data-manager.d.ts +2 -1
- package/lib/utils/page/page-form-group.js +10 -4
- package/lib/utils/page/page-layout.d.ts +1 -1
- package/lib/utils/page/page-load-schema.js +32 -14
- package/lib/utils/page/page-render.js +5 -1
- package/lib/utils/page/page-schema-utils.js +18 -2
- package/lib/utils/page/print-form.js +2 -4
- package/package.json +1 -1
|
@@ -133,6 +133,8 @@ function _openPrint() {
|
|
|
133
133
|
iframe.src = url;
|
|
134
134
|
iframe.className = "print-iframe";
|
|
135
135
|
iframe.onload = function () {
|
|
136
|
+
// @ts-ignore
|
|
137
|
+
iframe.contentWindow.__mock = window.__mock;
|
|
136
138
|
// @ts-ignore
|
|
137
139
|
iframe.contentWindow.printOptions = options;
|
|
138
140
|
};
|
|
@@ -147,10 +149,6 @@ function _openPrint() {
|
|
|
147
149
|
case 1:
|
|
148
150
|
// @ts-ignore
|
|
149
151
|
window.printWindow = printWindow;
|
|
150
|
-
printWindow.onload = function () {
|
|
151
|
-
// @ts-ignore
|
|
152
|
-
printWindow.printOptions = options;
|
|
153
|
-
};
|
|
154
152
|
printWindow.addEventListener("beforeprint", function () {});
|
|
155
153
|
printWindow.addEventListener("afterprint", /*#__PURE__*/(0, _asyncToGenerator2["default"])(/*#__PURE__*/_regenerator["default"].mark(function _callee4() {
|
|
156
154
|
var _printWindow, printer, _printWindow2, doc, html;
|