matrix_components 2.0.332 → 2.0.334
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.
|
@@ -76890,19 +76890,20 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76890
76890
|
async ([new1, new2]) => {
|
|
76891
76891
|
var _a3, _b;
|
|
76892
76892
|
const nv = new1 || new2;
|
|
76893
|
-
debugger;
|
|
76894
|
-
console.log("----1----", nv);
|
|
76895
76893
|
if (nv) {
|
|
76896
|
-
console.log("
|
|
76894
|
+
console.log("***1-1***", nv);
|
|
76897
76895
|
if (nv.startsWith(getBaseUrl())) {
|
|
76896
|
+
console.log("***2-1***", nv);
|
|
76898
76897
|
let _tmp = nv.split("/");
|
|
76899
76898
|
_tmp = _tmp[_tmp.length - 1];
|
|
76900
76899
|
if (isNotNull(_tmp)) {
|
|
76900
|
+
console.log("***3-1***", _tmp);
|
|
76901
76901
|
if (_tmp.indexOf(".") !== -1) {
|
|
76902
|
+
console.log("***4-1***", _tmp);
|
|
76902
76903
|
_url.value = nv;
|
|
76903
76904
|
} else {
|
|
76905
|
+
console.log("***4-2***", _tmp);
|
|
76904
76906
|
const res = await getFilePathByIds(_tmp) || "";
|
|
76905
|
-
console.log("----3----", res);
|
|
76906
76907
|
if ((res == null ? void 0 : res.length) && ((_a3 = res[0]) == null ? void 0 : _a3.filePath)) {
|
|
76907
76908
|
const path = res[0].filePath;
|
|
76908
76909
|
_url.value = path.startsWith(getBaseUrl()) ? path : getBaseUrl() + path;
|
|
@@ -76912,28 +76913,30 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76912
76913
|
_url.value = "";
|
|
76913
76914
|
}
|
|
76914
76915
|
} else if (nv.startsWith("/martrix/")) {
|
|
76916
|
+
console.log("***2-2***", nv);
|
|
76915
76917
|
_url.value = nv;
|
|
76916
|
-
console.log("----22----", nv);
|
|
76917
76918
|
} else {
|
|
76919
|
+
console.log("***2-3***", nv);
|
|
76918
76920
|
if (isNotNull(nv)) {
|
|
76919
|
-
console.log("
|
|
76921
|
+
console.log("***3-2***", nv);
|
|
76920
76922
|
if (nv.indexOf(".") !== -1) {
|
|
76923
|
+
console.log("***4-1***", nv);
|
|
76921
76924
|
_url.value = getBaseUrl() + nv;
|
|
76922
76925
|
} else {
|
|
76926
|
+
console.log("***4-2***", nv);
|
|
76923
76927
|
const res = await getFilePathByIds(nv) || "";
|
|
76924
|
-
console.log("----4----", res);
|
|
76925
76928
|
if ((res == null ? void 0 : res.length) && ((_b = res[0]) == null ? void 0 : _b.filePath)) {
|
|
76926
76929
|
const path = res[0].filePath;
|
|
76927
76930
|
_url.value = path.startsWith(getBaseUrl()) ? path : getBaseUrl() + path;
|
|
76928
76931
|
}
|
|
76929
76932
|
}
|
|
76930
76933
|
} else {
|
|
76931
|
-
console.log("
|
|
76934
|
+
console.log("***3-3***", nv);
|
|
76932
76935
|
_url.value = "";
|
|
76933
76936
|
}
|
|
76934
76937
|
}
|
|
76935
76938
|
} else {
|
|
76936
|
-
console.log("
|
|
76939
|
+
console.log("***1-2***", nv);
|
|
76937
76940
|
_url.value = "";
|
|
76938
76941
|
}
|
|
76939
76942
|
},
|
|
@@ -76995,7 +76998,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76995
76998
|
};
|
|
76996
76999
|
}
|
|
76997
77000
|
});
|
|
76998
|
-
const NsImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
77001
|
+
const NsImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-e86e1cf6"]]);
|
|
76999
77002
|
NsImage.install = (app2) => {
|
|
77000
77003
|
app2.component(NsImage.name, NsImage);
|
|
77001
77004
|
};
|