@dolphinweex/weex-harmony 0.1.46 → 0.1.47

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.46",
3
+ "version": "0.1.47",
4
4
  "description": "weex harmony adapter",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -42,6 +42,8 @@ export default {
42
42
  width: this.width,
43
43
  height: this.height,
44
44
  data: this.data,
45
+ handleBarClicked: this.handleBarClicked
46
+
45
47
  };
46
48
  },
47
49
  },
@@ -51,6 +53,9 @@ export default {
51
53
  },
52
54
 
53
55
  methods: {
56
+ handleBarClicked(res) {
57
+ this.$emit('barClicked', res);
58
+ },
54
59
  },
55
60
  };
56
61
  </script>
@@ -162,7 +162,6 @@ export default {
162
162
  fixedItemWidth: 0,
163
163
  fixedItemHeight: 0,
164
164
  animationFrameId: null,
165
- isProcessingData: false,
166
165
  dragCloneElement: null, // 拖拽克隆DOM元素
167
166
  };
168
167
  },
@@ -626,26 +625,12 @@ export default {
626
625
  if (!this.data || !this.data.list || !this.data.globalData) {
627
626
  return;
628
627
  }
628
+ // 直接处理 this.data.list,为每个项目合并全局数据
629
+ this.data.list.forEach((item, index) => {
630
+ const processedItem = this.mergeItemData(item);
631
+ this.$set(this.data.list, index, processedItem);
632
+ });
629
633
 
630
- // 防止死循环
631
- if (this.isProcessingData) {
632
- return;
633
- }
634
-
635
- this.isProcessingData = true;
636
-
637
- try {
638
- // 直接处理 this.data.list,为每个项目合并全局数据
639
- this.data.list.forEach((item, index) => {
640
- const processedItem = this.mergeItemData(item);
641
- this.$set(this.data.list, index, processedItem);
642
- });
643
- } finally {
644
- // 确保标志位被重置
645
- this.$nextTick(() => {
646
- this.isProcessingData = false;
647
- });
648
- }
649
634
  },
650
635
 
651
636
  mergeItemData(item) {