@maxax/ui 1.1.26 → 1.1.27
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/dist/components/basic-button-import-preview/BasicButtonImportPreview.vue.d.ts.map +1 -1
- package/dist/components/basic-button-import-preview/BasicButtonImportPreviewModal.vue.d.ts.map +1 -1
- package/dist/index.cjs +8 -7
- package/dist/index.cjs.map +1 -1
- package/dist/index.mjs +8 -7
- package/dist/index.mjs.map +1 -1
- package/package.json +3 -3
package/dist/index.mjs
CHANGED
|
@@ -6501,7 +6501,6 @@ const _sfc_main$E = /* @__PURE__ */ defineComponent({
|
|
|
6501
6501
|
const data = ((_a = basicTableRef.value) == null ? void 0 : _a.getDataSource()) || [];
|
|
6502
6502
|
const records = ((_b = basicTableRef.value) == null ? void 0 : _b.getSelectRows()) || [];
|
|
6503
6503
|
emit("confirm", { data, records });
|
|
6504
|
-
hide();
|
|
6505
6504
|
}
|
|
6506
6505
|
__expose({
|
|
6507
6506
|
show,
|
|
@@ -8487,14 +8486,15 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8487
8486
|
});
|
|
8488
8487
|
}
|
|
8489
8488
|
async function onPreviewConfirm({ data, records }) {
|
|
8490
|
-
var _a, _b;
|
|
8491
|
-
if (!currentFile.value) return;
|
|
8489
|
+
var _a, _b, _c, _d;
|
|
8490
|
+
if (!currentFile.value) return false;
|
|
8492
8491
|
const canSave = await runBeforeSaveGuard({ data, records, checked: currentChecked.value, file: currentFile.value });
|
|
8493
|
-
if (!canSave) return;
|
|
8492
|
+
if (!canSave) return false;
|
|
8494
8493
|
if (!props.saveApi) {
|
|
8495
8494
|
emit("preview", { data, checked: currentChecked.value, file: currentFile.value, records });
|
|
8496
|
-
(_a =
|
|
8497
|
-
|
|
8495
|
+
(_a = previewModalRef.value) == null ? void 0 : _a.hide();
|
|
8496
|
+
(_b = uploadModalRef.value) == null ? void 0 : _b.hide();
|
|
8497
|
+
return false;
|
|
8498
8498
|
}
|
|
8499
8499
|
try {
|
|
8500
8500
|
const params = props.beforeFetchSave ? props.beforeFetchSave({ data, records }) : { dtoList: data };
|
|
@@ -8503,7 +8503,8 @@ const _sfc_main$C = /* @__PURE__ */ defineComponent({
|
|
|
8503
8503
|
} catch (error) {
|
|
8504
8504
|
console.error(error);
|
|
8505
8505
|
} finally {
|
|
8506
|
-
(
|
|
8506
|
+
(_c = previewModalRef.value) == null ? void 0 : _c.hide();
|
|
8507
|
+
(_d = uploadModalRef.value) == null ? void 0 : _d.hide();
|
|
8507
8508
|
}
|
|
8508
8509
|
}
|
|
8509
8510
|
function onClickHandler() {
|