matrix_components 2.0.330 → 2.0.331
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/README.md +14 -8
- package/dist/ComponentDemo/ImageDemo.vue +21 -137
- package/dist/matrix_components.css +1 -1
- package/dist/matrix_components.js +10 -16
- package/dist/matrix_components.umd.cjs +1 -1
- package/package.json +1 -1
|
@@ -47605,11 +47605,6 @@ window.__dialogInstances = [];
|
|
|
47605
47605
|
let externalApp = null;
|
|
47606
47606
|
function setExternalApp(app2) {
|
|
47607
47607
|
externalApp = app2;
|
|
47608
|
-
try {
|
|
47609
|
-
app2.config.globalProperties.$closeAllNsDialog = closeAllNsDialog;
|
|
47610
|
-
} catch (error) {
|
|
47611
|
-
console.log(error);
|
|
47612
|
-
}
|
|
47613
47608
|
}
|
|
47614
47609
|
function closeAllNsDialog() {
|
|
47615
47610
|
window.__dialogInstances.forEach((instance) => {
|
|
@@ -76701,16 +76696,6 @@ let app = null;
|
|
|
76701
76696
|
function setHttpApp(_app) {
|
|
76702
76697
|
app = _app;
|
|
76703
76698
|
setAxiosApp(_app);
|
|
76704
|
-
try {
|
|
76705
|
-
app.config.globalProperties.$post = post;
|
|
76706
|
-
app.config.globalProperties.$get = get;
|
|
76707
|
-
app.config.globalProperties.$put = put;
|
|
76708
|
-
app.config.globalProperties.$del = del;
|
|
76709
|
-
app.config.globalProperties.$download = download;
|
|
76710
|
-
app.config.globalProperties.$downLoadLocalFile = downLoadLocalFile;
|
|
76711
|
-
} catch (error) {
|
|
76712
|
-
console.log(error);
|
|
76713
|
-
}
|
|
76714
76699
|
}
|
|
76715
76700
|
function getBaseUrl() {
|
|
76716
76701
|
var _a3, _b;
|
|
@@ -76905,7 +76890,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76905
76890
|
async ([new1, new2]) => {
|
|
76906
76891
|
var _a3, _b;
|
|
76907
76892
|
const nv = new1 || new2;
|
|
76893
|
+
debugger;
|
|
76894
|
+
console.log("----1----", nv);
|
|
76908
76895
|
if (nv) {
|
|
76896
|
+
console.log("----21----", getBaseUrl());
|
|
76909
76897
|
if (nv.startsWith(getBaseUrl())) {
|
|
76910
76898
|
let _tmp = nv.split("/");
|
|
76911
76899
|
_tmp = _tmp[_tmp.length - 1];
|
|
@@ -76914,6 +76902,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76914
76902
|
_url.value = nv;
|
|
76915
76903
|
} else {
|
|
76916
76904
|
const res = await getFilePathByIds(_tmp) || "";
|
|
76905
|
+
console.log("----3----", res);
|
|
76917
76906
|
if ((res == null ? void 0 : res.length) && ((_a3 = res[0]) == null ? void 0 : _a3.filePath)) {
|
|
76918
76907
|
const path = res[0].filePath;
|
|
76919
76908
|
_url.value = path.startsWith(getBaseUrl()) ? path : getBaseUrl() + path;
|
|
@@ -76924,22 +76913,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76924
76913
|
}
|
|
76925
76914
|
} else if (nv.startsWith("/martrix/")) {
|
|
76926
76915
|
_url.value = nv;
|
|
76916
|
+
console.log("----22----", nv);
|
|
76927
76917
|
} else {
|
|
76928
76918
|
if (isNotNull(nv)) {
|
|
76919
|
+
console.log("----23----", nv);
|
|
76929
76920
|
if (nv.indexOf(".") !== -1) {
|
|
76930
76921
|
_url.value = getBaseUrl() + nv;
|
|
76931
76922
|
} else {
|
|
76932
76923
|
const res = await getFilePathByIds(nv) || "";
|
|
76924
|
+
console.log("----4----", res);
|
|
76933
76925
|
if ((res == null ? void 0 : res.length) && ((_b = res[0]) == null ? void 0 : _b.filePath)) {
|
|
76934
76926
|
const path = res[0].filePath;
|
|
76935
76927
|
_url.value = path.startsWith(getBaseUrl()) ? path : getBaseUrl() + path;
|
|
76936
76928
|
}
|
|
76937
76929
|
}
|
|
76938
76930
|
} else {
|
|
76931
|
+
console.log("----25----", nv);
|
|
76939
76932
|
_url.value = "";
|
|
76940
76933
|
}
|
|
76941
76934
|
}
|
|
76942
76935
|
} else {
|
|
76936
|
+
console.log("----12----", nv);
|
|
76943
76937
|
_url.value = "";
|
|
76944
76938
|
}
|
|
76945
76939
|
},
|
|
@@ -76998,7 +76992,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
|
|
|
76998
76992
|
};
|
|
76999
76993
|
}
|
|
77000
76994
|
});
|
|
77001
|
-
const NsImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-
|
|
76995
|
+
const NsImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-96c15c8f"]]);
|
|
77002
76996
|
NsImage.install = (app2) => {
|
|
77003
76997
|
app2.component(NsImage.name, NsImage);
|
|
77004
76998
|
};
|