ui-process-h5 1.2.6 → 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.6",
3
+ "version": "1.2.7",
4
4
  "description": "> app端 流程插件",
5
5
  "main": "./ui-process-h5.umd.cjs",
6
6
  "style": "./style.css",
@@ -13662,7 +13662,8 @@ const s0 = /* @__PURE__ */ function() {
13662
13662
  user: {},
13663
13663
  canCheck: !0,
13664
13664
  approveNode: {},
13665
- restartDataS: {}
13665
+ restartDataS: {},
13666
+ selfBtnList: []
13666
13667
  };
13667
13668
  },
13668
13669
  watch: {
@@ -13715,6 +13716,13 @@ const s0 = /* @__PURE__ */ function() {
13715
13716
  },
13716
13717
  immediate: !0,
13717
13718
  deep: !0
13719
+ },
13720
+ selfBtn: {
13721
+ handler(t, i) {
13722
+ t && t.length && (this.selfBtnList = t);
13723
+ },
13724
+ immediate: !0,
13725
+ deep: !0
13718
13726
  }
13719
13727
  },
13720
13728
  computed: {
@@ -13746,7 +13754,7 @@ const s0 = /* @__PURE__ */ function() {
13746
13754
  );
13747
13755
  };
13748
13756
  }
13749
- if (this.selfBtn && this.selfBtn.length && this.selfBtn.map((s) => {
13757
+ if (this.selfBtnList && this.selfBtnList.length && this.selfBtnList.map((s) => {
13750
13758
  let r = {};
13751
13759
  r.name = s.name, r.btnProps = { type: s.type }, t.push(r), r.click = s.click;
13752
13760
  }), i && !this.isView && this.taskObj.buttons && this.taskObj.buttons.length && this.taskObj.buttons.forEach((s) => {
@@ -13862,7 +13870,7 @@ const s0 = /* @__PURE__ */ function() {
13862
13870
  }
13863
13871
  );
13864
13872
  if (e.code == 200) {
13865
- if (e.data) {
13873
+ if (e.data && e.data.length) {
13866
13874
  for (let n = 0; n < e.data.length; n++) {
13867
13875
  let s = e.data[n];
13868
13876
  if (s.type != "UserTaskModel") {