ui-process-h5 1.2.5 → 1.2.7

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "ui-process-h5",
3
- "version": "1.2.5",
3
+ "version": "1.2.7",
4
4
  "description": "> app端 流程插件",
5
5
  "main": "./ui-process-h5.umd.cjs",
6
6
  "style": "./style.css",
@@ -5089,10 +5089,6 @@ const bm = /* @__PURE__ */ function() {
5089
5089
  }
5090
5090
  },
5091
5091
  mounted() {
5092
- this.$nextTick(() => {
5093
- const t = document.querySelector("body");
5094
- t.append ? t.append(this.$el) : t.appendChild(this.$el);
5095
- });
5096
5092
  },
5097
5093
  methods: {
5098
5094
  handleOpen() {
@@ -13666,7 +13662,8 @@ const s0 = /* @__PURE__ */ function() {
13666
13662
  user: {},
13667
13663
  canCheck: !0,
13668
13664
  approveNode: {},
13669
- restartDataS: {}
13665
+ restartDataS: {},
13666
+ selfBtnList: []
13670
13667
  };
13671
13668
  },
13672
13669
  watch: {
@@ -13719,6 +13716,13 @@ const s0 = /* @__PURE__ */ function() {
13719
13716
  },
13720
13717
  immediate: !0,
13721
13718
  deep: !0
13719
+ },
13720
+ selfBtn: {
13721
+ handler(t, i) {
13722
+ t && t.length && (this.selfBtnList = t);
13723
+ },
13724
+ immediate: !0,
13725
+ deep: !0
13722
13726
  }
13723
13727
  },
13724
13728
  computed: {
@@ -13750,7 +13754,7 @@ const s0 = /* @__PURE__ */ function() {
13750
13754
  );
13751
13755
  };
13752
13756
  }
13753
- if (this.selfBtn && this.selfBtn.length && this.selfBtn.map((s) => {
13757
+ if (this.selfBtnList && this.selfBtnList.length && this.selfBtnList.map((s) => {
13754
13758
  let r = {};
13755
13759
  r.name = s.name, r.btnProps = { type: s.type }, t.push(r), r.click = s.click;
13756
13760
  }), i && !this.isView && this.taskObj.buttons && this.taskObj.buttons.length && this.taskObj.buttons.forEach((s) => {
@@ -13866,7 +13870,7 @@ const s0 = /* @__PURE__ */ function() {
13866
13870
  }
13867
13871
  );
13868
13872
  if (e.code == 200) {
13869
- if (e.data)
13873
+ if (e.data && e.data.length) {
13870
13874
  for (let n = 0; n < e.data.length; n++) {
13871
13875
  let s = e.data[n];
13872
13876
  if (s.type != "UserTaskModel") {
@@ -13879,7 +13883,9 @@ const s0 = /* @__PURE__ */ function() {
13879
13883
  }), s.childNode = r);
13880
13884
  }
13881
13885
  }
13882
- return this.handleTips("", !1, "success"), e.data;
13886
+ return this.handleTips("", !1, "success"), e.data;
13887
+ }
13888
+ return this.handleTips("", !1, "success"), [];
13883
13889
  }
13884
13890
  return [];
13885
13891
  },