mooho-base-admin-plus 0.4.47 → 0.4.48

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.
@@ -30364,7 +30364,7 @@ const _sfc_main$J = {
30364
30364
  return {
30365
30365
  uid: "chart_" + ((1 + Math.random()) * 65536 | 0).toString(16),
30366
30366
  data: null,
30367
- setting: {},
30367
+ setting: null,
30368
30368
  tableView: null,
30369
30369
  chart: null
30370
30370
  };
@@ -30399,8 +30399,10 @@ const _sfc_main$J = {
30399
30399
  } else {
30400
30400
  this.setting = {};
30401
30401
  }
30402
- this.chart = this.$echarts.init(document.getElementById(this.uid));
30403
- this.loadData();
30402
+ setTimeout(() => {
30403
+ this.chart = this.$echarts.init(document.getElementById(this.uid));
30404
+ this.loadData();
30405
+ });
30404
30406
  },
30405
30407
  async initWithTable(tableView2) {
30406
30408
  this.tableView = tableView2;
@@ -30409,7 +30411,9 @@ const _sfc_main$J = {
30409
30411
  } else {
30410
30412
  this.setting = {};
30411
30413
  }
30412
- this.chart = this.$echarts.init(document.getElementById(this.uid));
30414
+ setTimeout(() => {
30415
+ this.chart = this.$echarts.init(document.getElementById(this.uid));
30416
+ });
30413
30417
  },
30414
30418
  async loadData(staticData) {
30415
30419
  if (this.static) {
@@ -30661,10 +30665,11 @@ function _sfc_render$J(_ctx, _cache, $props, $setup, $data, $options) {
30661
30665
  const _component_modal_form = resolveComponent("modal-form");
30662
30666
  const _component_column_check = resolveComponent("column-check");
30663
30667
  return openBlock(), createElementBlock("div", null, [
30664
- createElementVNode("div", {
30668
+ $data.setting ? (openBlock(), createElementBlock("div", {
30669
+ key: 0,
30665
30670
  id: $data.uid,
30666
30671
  style: normalizeStyle$1([{ "margin": "auto" }, { height: $data.setting.chartHeight ? $data.setting.chartHeight + "px" : "400px", width: $data.setting.chartWidth ? $data.setting.chartWidth + "px" : "95%" }])
30667
- }, null, 12, _hoisted_1$u),
30672
+ }, null, 12, _hoisted_1$u)) : createCommentVNode("", true),
30668
30673
  createElementVNode("div", null, [
30669
30674
  _ctx.allow("permission/tableView") ? (openBlock(), createBlock(_component_Button, {
30670
30675
  key: 0,
@@ -33366,7 +33371,6 @@ function _sfc_render$w(_ctx, _cache, $props, $setup, $data, $options) {
33366
33371
  static: true,
33367
33372
  "view-code": column.source,
33368
33373
  readonly: true,
33369
- pageEnable: false,
33370
33374
  embedded: true
33371
33375
  }, null, 8, ["view-code"])
33372
33376
  ])) : createCommentVNode("", true),
@@ -46636,7 +46640,6 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
46636
46640
  static: true,
46637
46641
  "view-code": column.source,
46638
46642
  readonly: column.isReadonly,
46639
- pageEnable: false,
46640
46643
  embedded: true
46641
46644
  }, null, 8, ["view-code", "readonly"])
46642
46645
  ])) : createCommentVNode("", true),
@@ -46656,7 +46659,6 @@ function _sfc_render$o(_ctx, _cache, $props, $setup, $data, $options) {
46656
46659
  static: true,
46657
46660
  "view-code": column.source,
46658
46661
  readonly: true,
46659
- pageEnable: false,
46660
46662
  embedded: true
46661
46663
  }, null, 8, ["view-code"])
46662
46664
  ])) : createCommentVNode("", true),