matrix_components 2.0.436 → 2.0.439
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.
|
@@ -54783,13 +54783,13 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
54783
54783
|
},
|
|
54784
54784
|
setup(__props, { expose: __expose }) {
|
|
54785
54785
|
useCssVars((_ctx) => ({
|
|
54786
|
-
"
|
|
54787
|
-
"
|
|
54788
|
-
"
|
|
54789
|
-
"
|
|
54790
|
-
"
|
|
54791
|
-
"
|
|
54792
|
-
"
|
|
54786
|
+
"v26656650": customBackgroundColor.value,
|
|
54787
|
+
"v36a2ab94": gapV.value,
|
|
54788
|
+
"v7d2fe939": superLabelWidth.value,
|
|
54789
|
+
"v0f8560be": subLabelWidth.value,
|
|
54790
|
+
"v1a906b7b": height.value,
|
|
54791
|
+
"fc98f0f4": labelWidth.value,
|
|
54792
|
+
"v39572d46": _ctx.$props.labelColor
|
|
54793
54793
|
}));
|
|
54794
54794
|
const props = __props;
|
|
54795
54795
|
const initialValues = ref$1(/* @__PURE__ */ new Map());
|
|
@@ -55289,7 +55289,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55289
55289
|
const getComponentValue = computed(() => {
|
|
55290
55290
|
return (rowInfo) => {
|
|
55291
55291
|
const value = getReadOnlyDisplayValue(rowInfo);
|
|
55292
|
-
return isNotNull(value) ? value : (rowInfo == null ? void 0 : rowInfo.valueEmptyTag)
|
|
55292
|
+
return isNotNull(value) ? value : (rowInfo == null ? void 0 : rowInfo.valueEmptyTag) ?? props.valueEmptyTag ?? "--";
|
|
55293
55293
|
};
|
|
55294
55294
|
});
|
|
55295
55295
|
function getCascaderDisplayValue(rowInfo) {
|
|
@@ -55773,7 +55773,7 @@ const _sfc_main$4 = /* @__PURE__ */ defineComponent({
|
|
|
55773
55773
|
};
|
|
55774
55774
|
}
|
|
55775
55775
|
});
|
|
55776
|
-
const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-
|
|
55776
|
+
const NsForm = /* @__PURE__ */ _export_sfc(_sfc_main$4, [["__scopeId", "data-v-060885b5"]]);
|
|
55777
55777
|
const _hoisted_1$1 = { class: "title-image-view" };
|
|
55778
55778
|
const _hoisted_2 = { class: "content-model-title" };
|
|
55779
55779
|
const _hoisted_3 = { class: "title-text" };
|
|
@@ -58307,11 +58307,12 @@ function safeExecuteCallback(callback, error, message) {
|
|
|
58307
58307
|
if (typeof callback === "function") {
|
|
58308
58308
|
try {
|
|
58309
58309
|
console.log("执行错误回调函数:", { error, message });
|
|
58310
|
-
callback(error, message);
|
|
58310
|
+
return callback(error, message);
|
|
58311
58311
|
} catch (callbackError) {
|
|
58312
58312
|
console.error("错误回调函数执行失败:", callbackError);
|
|
58313
58313
|
}
|
|
58314
58314
|
}
|
|
58315
|
+
return false;
|
|
58315
58316
|
}
|
|
58316
58317
|
function createAxiosInstance(customConfig = {}, errorCallback) {
|
|
58317
58318
|
if (axiosInstance) {
|
|
@@ -58430,12 +58431,18 @@ function createAxiosInstance(customConfig = {}, errorCallback) {
|
|
|
58430
58431
|
if (status !== ResultEnum.SUCCESS) {
|
|
58431
58432
|
const formatMsg = await errorStatus(status);
|
|
58432
58433
|
console.error(formatMsg || "接口解析错误");
|
|
58433
|
-
safeExecuteCallback(axiosInstance.errorCallback, { status, response }, formatMsg);
|
|
58434
|
+
const isResolve = safeExecuteCallback(axiosInstance.errorCallback, { status, response }, formatMsg);
|
|
58435
|
+
if (isResolve) {
|
|
58436
|
+
return Promise.resolve(null);
|
|
58437
|
+
}
|
|
58434
58438
|
return Promise.reject(null);
|
|
58435
58439
|
} else if (data.code !== ResultEnum.SUCCESS) {
|
|
58436
58440
|
const formatMsg = await errorStatus(data == null ? void 0 : data.code, data == null ? void 0 : data.msg);
|
|
58437
58441
|
console.error(formatMsg || "接口解析错误");
|
|
58438
|
-
safeExecuteCallback(axiosInstance.errorCallback, { code: data == null ? void 0 : data.code, data, response }, formatMsg);
|
|
58442
|
+
const isResolve = safeExecuteCallback(axiosInstance.errorCallback, { code: data == null ? void 0 : data.code, data, response }, formatMsg);
|
|
58443
|
+
if (isResolve) {
|
|
58444
|
+
return Promise.resolve(null);
|
|
58445
|
+
}
|
|
58439
58446
|
return Promise.reject(null);
|
|
58440
58447
|
}
|
|
58441
58448
|
return data == null ? void 0 : data.data;
|
|
@@ -58456,8 +58463,11 @@ function createAxiosInstance(customConfig = {}, errorCallback) {
|
|
|
58456
58463
|
}
|
|
58457
58464
|
const formatMsg = await errorFn(error);
|
|
58458
58465
|
console.error(formatMsg || "接口解析错误");
|
|
58459
|
-
safeExecuteCallback(axiosInstance.errorCallback, error, formatMsg);
|
|
58460
|
-
|
|
58466
|
+
const isResolve = safeExecuteCallback(axiosInstance.errorCallback, error, formatMsg);
|
|
58467
|
+
if (isResolve) {
|
|
58468
|
+
return Promise.resolve(null);
|
|
58469
|
+
}
|
|
58470
|
+
return Promise.reject(null);
|
|
58461
58471
|
}
|
|
58462
58472
|
);
|
|
58463
58473
|
return axiosInstance;
|