matrix_components 2.0.329 → 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.
@@ -47606,6 +47606,11 @@ let externalApp = null;
47606
47606
  function setExternalApp(app2) {
47607
47607
  externalApp = app2;
47608
47608
  }
47609
+ function closeAllNsDialog() {
47610
+ window.__dialogInstances.forEach((instance) => {
47611
+ instance.closed();
47612
+ });
47613
+ }
47609
47614
  const NsDialog = (data, modal = true, appendTo = "#app") => {
47610
47615
  if (!(data == null ? void 0 : data.dom)) {
47611
47616
  console.log("内容缺失");
@@ -76885,7 +76890,10 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76885
76890
  async ([new1, new2]) => {
76886
76891
  var _a3, _b;
76887
76892
  const nv = new1 || new2;
76893
+ debugger;
76894
+ console.log("----1----", nv);
76888
76895
  if (nv) {
76896
+ console.log("----21----", getBaseUrl());
76889
76897
  if (nv.startsWith(getBaseUrl())) {
76890
76898
  let _tmp = nv.split("/");
76891
76899
  _tmp = _tmp[_tmp.length - 1];
@@ -76894,6 +76902,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76894
76902
  _url.value = nv;
76895
76903
  } else {
76896
76904
  const res = await getFilePathByIds(_tmp) || "";
76905
+ console.log("----3----", res);
76897
76906
  if ((res == null ? void 0 : res.length) && ((_a3 = res[0]) == null ? void 0 : _a3.filePath)) {
76898
76907
  const path = res[0].filePath;
76899
76908
  _url.value = path.startsWith(getBaseUrl()) ? path : getBaseUrl() + path;
@@ -76904,22 +76913,27 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76904
76913
  }
76905
76914
  } else if (nv.startsWith("/martrix/")) {
76906
76915
  _url.value = nv;
76916
+ console.log("----22----", nv);
76907
76917
  } else {
76908
76918
  if (isNotNull(nv)) {
76919
+ console.log("----23----", nv);
76909
76920
  if (nv.indexOf(".") !== -1) {
76910
76921
  _url.value = getBaseUrl() + nv;
76911
76922
  } else {
76912
76923
  const res = await getFilePathByIds(nv) || "";
76924
+ console.log("----4----", res);
76913
76925
  if ((res == null ? void 0 : res.length) && ((_b = res[0]) == null ? void 0 : _b.filePath)) {
76914
76926
  const path = res[0].filePath;
76915
76927
  _url.value = path.startsWith(getBaseUrl()) ? path : getBaseUrl() + path;
76916
76928
  }
76917
76929
  }
76918
76930
  } else {
76931
+ console.log("----25----", nv);
76919
76932
  _url.value = "";
76920
76933
  }
76921
76934
  }
76922
76935
  } else {
76936
+ console.log("----12----", nv);
76923
76937
  _url.value = "";
76924
76938
  }
76925
76939
  },
@@ -76978,7 +76992,7 @@ const _sfc_main = /* @__PURE__ */ defineComponent({
76978
76992
  };
76979
76993
  }
76980
76994
  });
76981
- const NsImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-50e23059"]]);
76995
+ const NsImage = /* @__PURE__ */ _export_sfc(_sfc_main, [["__scopeId", "data-v-96c15c8f"]]);
76982
76996
  NsImage.install = (app2) => {
76983
76997
  app2.component(NsImage.name, NsImage);
76984
76998
  };
@@ -91335,6 +91349,7 @@ export {
91335
91349
  NsVideo,
91336
91350
  NsWord,
91337
91351
  autoScaleInit,
91352
+ closeAllNsDialog,
91338
91353
  components,
91339
91354
  index as default,
91340
91355
  del,