matrix_components 2.0.333 → 2.0.335
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.
|
@@ -76891,13 +76891,18 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76891
76891
|
var _a3, _b;
|
|
76892
76892
|
const nv = new1 || new2;
|
|
76893
76893
|
if (nv) {
|
|
76894
|
+
console.log("***1-1***", nv);
|
|
76894
76895
|
if (nv.startsWith(getBaseUrl())) {
|
|
76896
|
+
console.log("***2-1***", nv);
|
|
76895
76897
|
let _tmp = nv.split("/");
|
|
76896
76898
|
_tmp = _tmp[_tmp.length - 1];
|
|
76897
76899
|
if (isNotNull(_tmp)) {
|
|
76900
|
+
console.log("***3-1***", _tmp);
|
|
76898
76901
|
if (_tmp.indexOf(".") !== -1) {
|
|
76902
|
+
console.log("***4-1***", _tmp);
|
|
76899
76903
|
_url.value = nv;
|
|
76900
76904
|
} else {
|
|
76905
|
+
console.log("***4-2***", _tmp);
|
|
76901
76906
|
const res = await getFilePathByIds(_tmp) || "";
|
|
76902
76907
|
if ((res == null ? void 0 : res.length) && ((_a3 = res[0]) == null ? void 0 : _a3.filePath)) {
|
|
76903
76908
|
const path = res[0].filePath;
|
|
@@ -76908,23 +76913,32 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76908
76913
|
_url.value = "";
|
|
76909
76914
|
}
|
|
76910
76915
|
} else if (nv.startsWith("/martrix/")) {
|
|
76916
|
+
console.log("***2-2***", nv);
|
|
76911
76917
|
_url.value = nv;
|
|
76912
76918
|
} else {
|
|
76913
|
-
|
|
76914
|
-
|
|
76915
|
-
|
|
76919
|
+
let _tmp = nv.split("/");
|
|
76920
|
+
_tmp = _tmp[_tmp.length - 1];
|
|
76921
|
+
console.log("***2-3***", _tmp);
|
|
76922
|
+
if (isNotNull(_tmp)) {
|
|
76923
|
+
console.log("***3-2***", _tmp);
|
|
76924
|
+
if (_tmp.indexOf(".") !== -1) {
|
|
76925
|
+
console.log("***4-1***", _tmp);
|
|
76926
|
+
_url.value = getBaseUrl() + _tmp;
|
|
76916
76927
|
} else {
|
|
76917
|
-
|
|
76928
|
+
console.log("***4-2***", _tmp);
|
|
76929
|
+
const res = await getFilePathByIds(_tmp) || "";
|
|
76918
76930
|
if ((res == null ? void 0 : res.length) && ((_b = res[0]) == null ? void 0 : _b.filePath)) {
|
|
76919
76931
|
const path = res[0].filePath;
|
|
76920
76932
|
_url.value = path.startsWith(getBaseUrl()) ? path : getBaseUrl() + path;
|
|
76921
76933
|
}
|
|
76922
76934
|
}
|
|
76923
76935
|
} else {
|
|
76936
|
+
console.log("***3-3***", _tmp);
|
|
76924
76937
|
_url.value = "";
|
|
76925
76938
|
}
|
|
76926
76939
|
}
|
|
76927
76940
|
} else {
|
|
76941
|
+
console.log("***1-2***", nv);
|
|
76928
76942
|
_url.value = "";
|
|
76929
76943
|
}
|
|
76930
76944
|
},
|
|
@@ -76986,7 +77000,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76986
77000
|
};
|
|
76987
77001
|
}
|
|
76988
77002
|
});
|
|
76989
|
-
const NsImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
77003
|
+
const NsImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-c43f7e38"]]);
|
|
76990
77004
|
NsImage.install = (app2) => {
|
|
76991
77005
|
app2.component(NsImage.name, NsImage);
|
|
76992
77006
|
};
|