@dolphinweex/weex-harmony 0.1.46 → 0.1.48
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
@@ -56,6 +56,7 @@ export default {
|
|
56
56
|
src: this.src,
|
57
57
|
loop: this.loop,
|
58
58
|
auto: this.auto,
|
59
|
+
onPlayComplete: this.onPlayComplete,
|
59
60
|
};
|
60
61
|
},
|
61
62
|
},
|
@@ -65,6 +66,9 @@ export default {
|
|
65
66
|
},
|
66
67
|
|
67
68
|
methods: {
|
69
|
+
onPlayComplete(res) {
|
70
|
+
this.$emit('onPlayComplete', res);
|
71
|
+
},
|
68
72
|
// 自定义拓展其它逻辑
|
69
73
|
play(params, callback, callbackFail) {
|
70
74
|
weexModule.callNative('apngHandle', {
|
@@ -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) {
|