mooho-base-admin-plus 0.4.58 → 0.4.60

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.
@@ -18430,7 +18430,7 @@ function convertMenu(source2) {
18430
18430
  path: reg.test(item.url) ? item.url : "/" + item.url.split("?")[0],
18431
18431
  code: item.url,
18432
18432
  title: item.name,
18433
- subtitle: item.subName,
18433
+ subTitle: item.subName,
18434
18434
  target: item.isNewWindow ? "_blank" : null,
18435
18435
  header: "home",
18436
18436
  custom: item.icon,
@@ -20933,16 +20933,7 @@ const _sfc_main$1l = {
20933
20933
  } else {
20934
20934
  this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
20935
20935
  }
20936
- this.form = this.$refs.customComponent.form;
20937
- this.form.data = this.model;
20938
- this.form.onDataChange();
20939
- this.form.clearValidate();
20940
- this.readonly = !this.task.activityInst.activity.isEditable;
20941
- if (this.form.formView) {
20942
- this.width = this.form.formView.width || "800";
20943
- this.name = this.form.formView.name;
20944
- this.description = this.form.formView.description;
20945
- }
20936
+ this.customComponentReady();
20946
20937
  this.opened = true;
20947
20938
  });
20948
20939
  } else if (this.task.activityInst.activity.pageMode == "Form") {
@@ -20976,16 +20967,7 @@ const _sfc_main$1l = {
20976
20967
  } else {
20977
20968
  this.model = await modelApi.get(applicationType2.model, row.processInst.modelID);
20978
20969
  }
20979
- this.form = this.$refs.customComponent.form;
20980
- this.form.data = this.model;
20981
- this.form.onDataChange();
20982
- this.form.clearValidate();
20983
- this.readonly = !this.task.activityInst.activity.isEditable;
20984
- if (this.form.formView) {
20985
- this.width = this.form.formView.width || "800";
20986
- this.name = this.form.formView.name;
20987
- this.description = this.form.formView.description;
20988
- }
20970
+ this.customComponentReady();
20989
20971
  this.opened = true;
20990
20972
  });
20991
20973
  } else if (applicationType2.pageMode == "Form") {
@@ -21015,6 +20997,18 @@ const _sfc_main$1l = {
21015
20997
  this.outcomes = res2.data;
21016
20998
  });
21017
20999
  },
21000
+ customComponentReady() {
21001
+ if (this.$refs.customComponent.form) {
21002
+ this.form = this.$refs.customComponent.form;
21003
+ this.form.data = this.model;
21004
+ this.form.onDataChange();
21005
+ this.form.clearValidate();
21006
+ this.readonly = !this.task.activityInst.activity.isEditable;
21007
+ this.width = this.form.formView.width || "800";
21008
+ this.name = this.form.formView.name;
21009
+ this.description = this.form.formView.description;
21010
+ }
21011
+ },
21018
21012
  async action(outcome) {
21019
21013
  let isOK = await this.form.validate();
21020
21014
  if (!isOK) {
@@ -21245,8 +21239,9 @@ function _sfc_render$1l(_ctx, _cache, $props, $setup, $data, $options) {
21245
21239
  $data.isCustom ? (openBlock(), createBlock(resolveDynamicComponent($data.customComponent), {
21246
21240
  key: 1,
21247
21241
  ref: "customComponent",
21248
- readonly: $data.readonly
21249
- }, null, 8, ["readonly"])) : createCommentVNode("", true)
21242
+ readonly: $data.readonly,
21243
+ onOnReady: $options.customComponentReady
21244
+ }, null, 40, ["readonly", "onOnReady"])) : createCommentVNode("", true)
21250
21245
  ])
21251
21246
  ]),
21252
21247
  _: 3
@@ -48563,13 +48558,13 @@ function _sfc_render$i(_ctx, _cache, $props, $setup, $data, $options) {
48563
48558
  key: 1,
48564
48559
  class: normalizeClass(["i-layout-menu-side-title-text", {
48565
48560
  "i-layout-menu-side-title-text-selected": $props.selected,
48566
- "i-layout-menu-side-title-text-with-subtitle": _ctx.layout.showI18n && !!(_ctx.$t("Permission_" + $props.menu.code + "_SubName") || "").trim() || !_ctx.layout.showI18n && !!($props.menu.subtitle || "").trim(),
48561
+ "i-layout-menu-side-title-text-with-subtitle": _ctx.layout.showI18n && !!(_ctx.$t("Permission_" + $props.menu.code + "_SubName") || "").trim() || !_ctx.layout.showI18n && !!($props.menu.subTitle || "").trim(),
48567
48562
  "i-layout-menu-side-title-text-with-icon": $options.withIcon
48568
48563
  }])
48569
48564
  }, [
48570
48565
  createTextVNode(toDisplayString$1(_ctx.layout.showI18n ? _ctx.$t("Permission_" + $props.menu.code) : $props.menu.title) + " ", 1),
48571
48566
  _ctx.layout.showI18n && !!(_ctx.$t("Permission_" + $props.menu.code + "_SubName") || "").trim() ? (openBlock(), createElementBlock("em", _hoisted_2$8, toDisplayString$1(_ctx.$t("Permission_" + $props.menu.code + "_SubName")), 1)) : createCommentVNode("", true),
48572
- !_ctx.layout.showI18n && !!($props.menu.subtitle || "").trim() ? (openBlock(), createElementBlock("em", _hoisted_3$6, toDisplayString$1($props.menu.subtitle), 1)) : createCommentVNode("", true)
48567
+ !_ctx.layout.showI18n && !!($props.menu.subTitle || "").trim() ? (openBlock(), createElementBlock("em", _hoisted_3$6, toDisplayString$1($props.menu.subTitle), 1)) : createCommentVNode("", true)
48573
48568
  ], 2)) : createCommentVNode("", true)
48574
48569
  ], 2);
48575
48570
  }