@dolphinweex/weex-harmony 0.1.45 → 0.1.46
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 +1 -1
- package/src/components/midea-video.vue +12 -16
package/package.json
CHANGED
@@ -1,10 +1,6 @@
|
|
1
1
|
<template>
|
2
|
-
<BaseSameLayer
|
3
|
-
:
|
4
|
-
embedType="native/midea-video"
|
5
|
-
:defaultWidth="300"
|
6
|
-
:defaultHeight="300"
|
7
|
-
>
|
2
|
+
<BaseSameLayer :hosSameLayerArgs="hosSameLayerArgs" embedType="native/midea-video" :defaultWidth="300"
|
3
|
+
:defaultHeight="300">
|
8
4
|
</BaseSameLayer>
|
9
5
|
</template>
|
10
6
|
|
@@ -57,7 +53,7 @@ export default {
|
|
57
53
|
type: String,
|
58
54
|
default: "",
|
59
55
|
},
|
60
|
-
loop:{
|
56
|
+
loop: {
|
61
57
|
type: Boolean,
|
62
58
|
default: false,
|
63
59
|
}
|
@@ -71,7 +67,7 @@ export default {
|
|
71
67
|
autoplay: this.autoplay,
|
72
68
|
src: this.src,
|
73
69
|
videoCover: this.videoCover,
|
74
|
-
controls:this.controls,
|
70
|
+
controls: this.controls,
|
75
71
|
start: this.start,
|
76
72
|
pause: this.pause,
|
77
73
|
fail: this.fail,
|
@@ -99,17 +95,17 @@ export default {
|
|
99
95
|
}
|
100
96
|
},
|
101
97
|
//开始
|
102
|
-
start() {
|
103
|
-
this.$emit("start");
|
98
|
+
start(event) {
|
99
|
+
this.$emit("start", event || {});
|
104
100
|
},
|
105
|
-
pause() {
|
106
|
-
this.$emit("pause");
|
101
|
+
pause(event) {
|
102
|
+
this.$emit("pause", event || {});
|
107
103
|
},
|
108
|
-
fail() {
|
109
|
-
this.$emit("fail");
|
104
|
+
fail(event) {
|
105
|
+
this.$emit("fail", event || {});
|
110
106
|
},
|
111
|
-
finish() {
|
112
|
-
this.$emit("finish");
|
107
|
+
finish(event) {
|
108
|
+
this.$emit("finish", event || {});
|
113
109
|
},
|
114
110
|
},
|
115
111
|
};
|