@dolphinweex/weex-harmony 0.1.22 → 0.1.23

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": "@dolphinweex/weex-harmony",
3
- "version": "0.1.22",
3
+ "version": "0.1.23",
4
4
  "description": "weex harmony adapter",
5
5
  "main": "index.js",
6
6
  "files": [
package/src/.DS_Store ADDED
Binary file
Binary file
@@ -42,6 +42,7 @@ export default {
42
42
  width: this.width,
43
43
  height: this.height,
44
44
  data: this.data,
45
+ handleBarClicked: this.handleBarClicked
45
46
  };
46
47
  },
47
48
  },
@@ -51,6 +52,9 @@ export default {
51
52
  },
52
53
 
53
54
  methods: {
55
+ handleBarClicked(res) {
56
+ this.$emit('barClicked', res);
57
+ },
54
58
  },
55
59
  };
56
60
  </script>
@@ -61,6 +61,7 @@ export default {
61
61
  onPageFinish() {
62
62
  console.log('加载完毕🥳','----->👉');
63
63
  this.$refs["iframe"].contentWindow.$midea_harmony_native = window.$midea_harmony_native;
64
+ this.$refs["iframe"].contentWindow.isIframe = true;
64
65
  this.$refs["iframe"].contentWindow.postMessage(JSON.stringify(window.$midea_harmony_native), '*');
65
66
  },
66
67
  }
@@ -21,7 +21,7 @@
21
21
  }"
22
22
  :data-index="index"
23
23
  @touchstart="(event) => startLongPress(event, index)"
24
- @touchmove.stop="checkLongPressMove"
24
+ @touchmove="checkLongPressMove"
25
25
  @touchend="endTouch"
26
26
  @touchcancel="endTouch"
27
27
  >
@@ -624,6 +624,7 @@ export default {
624
624
 
625
625
  // 检查长按过程中的移动
626
626
  checkLongPressMove(e) {
627
+ this.data.isEditing && e.oriEvent.stopPropagation()
627
628
  if (!this.data.isEditable) {
628
629
  return;
629
630
  }
@@ -717,12 +718,6 @@ export default {
717
718
  onTouchMove(e) {
718
719
  if (!this.isTouchDragging) return;
719
720
 
720
- // 只有在进入拖拽模式后才阻止默认滚动行为
721
- if (this.isTouchDragging) {
722
- e.preventDefault(); // 阻止页面滚动
723
- e.stopPropagation();
724
- }
725
-
726
721
  const touch = e.changedTouches[0];
727
722
 
728
723
  // 更新目标位置而非直接设置