matrix_components 2.0.329 → 2.0.330

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 CHANGED
@@ -2,10 +2,11 @@
2
2
  组件使用示例参考dist/ComponentDemo
3
3
 
4
4
  ```
5
- version:2.0.322
6
- 2025-11-24 09:20:37
5
+ version:2.0.330
6
+ 2025-11-24
7
7
  更新日志:
8
- 1.添加e post, get, put, del, download, downLoadLocalFile 等axios请求方法
8
+ 1.NsDialog增加全部弹窗关闭方法closeAllNsDialog, 注册app全局$closeAllNsDialog
9
+ 2.添加post, get, put, del, download, downLoadLocalFile 等axios请求方法, 注册app全局$post, $get, $put, $del, $download, $downLoadLocalFile
9
10
  ```
10
11
 
11
12
  ```
@@ -47605,6 +47605,16 @@ 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
+ }
47614
+ function closeAllNsDialog() {
47615
+ window.__dialogInstances.forEach((instance) => {
47616
+ instance.closed();
47617
+ });
47608
47618
  }
47609
47619
  const NsDialog = (data, modal = true, appendTo = "#app") => {
47610
47620
  if (!(data == null ? void 0 : data.dom)) {
@@ -76691,6 +76701,16 @@ let app = null;
76691
76701
  function setHttpApp(_app) {
76692
76702
  app = _app;
76693
76703
  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
+ }
76694
76714
  }
76695
76715
  function getBaseUrl() {
76696
76716
  var _a3, _b;
@@ -91335,6 +91355,7 @@ export {
91335
91355
  NsVideo,
91336
91356
  NsWord,
91337
91357
  autoScaleInit,
91358
+ closeAllNsDialog,
91338
91359
  components,
91339
91360
  index as default,
91340
91361
  del,