ui-process-h5 1.6.34 → 1.6.35

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.6.34",
3
+ "version": "1.6.35",
4
4
  "description": "> app端 流程插件",
5
5
  "main": "./ui-process-h5.umd.cjs",
6
6
  "style": "./style.css",
@@ -4098,7 +4098,7 @@ const NC = {
4098
4098
  watch: {
4099
4099
  visible: {
4100
4100
  handler(e, s) {
4101
- e ? (this.show = e, this.top = window.scrollY, document.body.style.position = "fixed", document.body.style.top = -this.top + "px") : (document.body.style.position = "", document.body.style.top = "", window.scrollTo(0, this.top), this.show = e, this.$emit("update:visible", !1));
4101
+ e ? (this.show = e, this.top = window.scrollY, document.body.style.position = "fixed", document.body.style.top = `${-top}px`, document.body.style.overflow = "hidden") : (document.body.style.position = "", document.body.style.top = "", document.body.style.overflow = "visible", window.scrollTo(0, this.top), this.show = e, this.$emit("update:visible", !1));
4102
4102
  },
4103
4103
  immediate: !0
4104
4104
  }
@@ -4123,13 +4123,8 @@ const NC = {
4123
4123
  },
4124
4124
  mounted() {
4125
4125
  this.$nextTick(() => {
4126
- document.body.style.overflow = "hidden";
4127
4126
  const e = document.getElementsByClassName("process-warp")[0] ? document.getElementsByClassName("process-warp")[0] : document.getElementsByClassName("sumbmitPopup-index-sumbit")[0].getElementsByClassName("top-popup")[0];
4128
- e.append ? e.append(this.$el) : e.appendChild(this.$el);
4129
- const s = document.documentElement.scrollTop || document.body.scrollTop;
4130
- this.isIOS() && document.body.addEventListener("focusin", () => {
4131
- document.body.style.position = "fixed", document.body.style.left = "0", document.body.style.top = `${-s}px`;
4132
- });
4127
+ e.append ? e.append(this.$el) : e.appendChild(this.$el), document.documentElement.scrollTop || document.body.scrollTop;
4133
4128
  });
4134
4129
  }
4135
4130
  };