mooho-base-admin-plus 2.0.51 → 2.0.53

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.
@@ -35421,7 +35421,8 @@ const _sfc_main$C = {
35421
35421
  return {
35422
35422
  selected: null,
35423
35423
  selectedData: null,
35424
- dialogActive: false
35424
+ dialogActive: false,
35425
+ loadDataEnable: true
35425
35426
  };
35426
35427
  },
35427
35428
  props: {
@@ -35441,7 +35442,10 @@ const _sfc_main$C = {
35441
35442
  type: String
35442
35443
  },
35443
35444
  param: {
35444
- type: Object
35445
+ type: Object,
35446
+ default: () => {
35447
+ return {};
35448
+ }
35445
35449
  },
35446
35450
  readonly: {
35447
35451
  type: Boolean,
@@ -35550,11 +35554,11 @@ const _sfc_main$C = {
35550
35554
  }
35551
35555
  }
35552
35556
  if (this.param) {
35553
- this.$refs.dialogTable.open(this.param);
35557
+ this.loadDataEnable = true;
35554
35558
  } else {
35555
- this.$refs.dialogTable.clear();
35556
- this.$refs.dialogTable.opened = true;
35559
+ this.loadDataEnable = false;
35557
35560
  }
35561
+ this.$refs.dialogTable.open(this.param);
35558
35562
  });
35559
35563
  }
35560
35564
  },
@@ -35621,7 +35625,8 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
35621
35625
  "view-code": $props.source,
35622
35626
  selectEnable: $props.multi,
35623
35627
  "check-cross-page": true,
35624
- "footer-enable": $props.multi
35628
+ "footer-enable": $props.multi,
35629
+ "load-data-enable": $data.loadDataEnable
35625
35630
  }, {
35626
35631
  command: withCtx(({ row }) => [
35627
35632
  !$props.multi ? (openBlock(), createBlock(_component_Button, {
@@ -35660,7 +35665,7 @@ function _sfc_render$C(_ctx, _cache, $props, $setup, $data, $options) {
35660
35665
  })
35661
35666
  ]),
35662
35667
  _: 1
35663
- }, 8, ["view-code", "selectEnable", "footer-enable"])) : createCommentVNode("v-if", true)
35668
+ }, 8, ["view-code", "selectEnable", "footer-enable", "load-data-enable"])) : createCommentVNode("v-if", true)
35664
35669
  ]);
35665
35670
  }
35666
35671
  var DialogSelect = /* @__PURE__ */ _export_sfc(_sfc_main$C, [["render", _sfc_render$C], ["__file", "D:/Project/Mooho/FrontEnd/mooho-base-admin-plus/src/components/input/dialog-select.vue"]]);
@@ -41912,6 +41917,10 @@ const _sfc_main$q = {
41912
41917
  },
41913
41918
  spanMethod: {
41914
41919
  type: Function
41920
+ },
41921
+ loadDataEnable: {
41922
+ type: Boolean,
41923
+ default: true
41915
41924
  }
41916
41925
  },
41917
41926
  computed: {
@@ -42085,6 +42094,11 @@ const _sfc_main$q = {
42085
42094
  });
42086
42095
  },
42087
42096
  async loadData(staticData) {
42097
+ if (!this.loadDataEnable) {
42098
+ this.total = 0;
42099
+ this.data = [];
42100
+ return;
42101
+ }
42088
42102
  if (!this.inited) {
42089
42103
  await this.init(this.viewCode);
42090
42104
  if (!this.inited) {
@@ -52473,6 +52487,10 @@ const _sfc_main$l = {
52473
52487
  },
52474
52488
  spanMethod: {
52475
52489
  type: Function
52490
+ },
52491
+ loadDataEnable: {
52492
+ type: Boolean,
52493
+ default: true
52476
52494
  }
52477
52495
  },
52478
52496
  computed: {
@@ -52654,6 +52672,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
52654
52672
  "summary-method": $props.summaryMethod,
52655
52673
  "page-size-opts": $props.pageSizeOpts,
52656
52674
  "span-method": $props.spanMethod,
52675
+ "load-data-enable": $props.loadDataEnable,
52657
52676
  onCreate: $options.create,
52658
52677
  onEdit: $options.edit,
52659
52678
  onOnReady: $options.onReady,
@@ -52713,7 +52732,7 @@ function _sfc_render$l(_ctx, _cache, $props, $setup, $data, $options) {
52713
52732
  })
52714
52733
  ]),
52715
52734
  _: 3
52716
- }, 8, ["view-code", "static", "filter", "setting-enable", "select-enable", "check-cross-page", "tree-enable", "tree-load", "has-children", "create-enable", "edit-enable", "remove-enable", "draggable", "filter-enable", "page-enable", "embedded", "before-load-data", "on-search", "summary-method", "page-size-opts", "span-method", "onCreate", "onEdit", "onOnReady", "onOnLoadData", "onAfterInit", "onOnDragDrop"])
52735
+ }, 8, ["view-code", "static", "filter", "setting-enable", "select-enable", "check-cross-page", "tree-enable", "tree-load", "has-children", "create-enable", "edit-enable", "remove-enable", "draggable", "filter-enable", "page-enable", "embedded", "before-load-data", "on-search", "summary-method", "page-size-opts", "span-method", "load-data-enable", "onCreate", "onEdit", "onOnReady", "onOnLoadData", "onAfterInit", "onOnDragDrop"])
52717
52736
  ])
52718
52737
  ]),
52719
52738
  _: 3