@dolphinweex/weex-harmony 0.1.104 → 0.1.105
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
|
@@ -113,7 +113,7 @@ export default {
|
|
|
113
113
|
captureImage(params,callback) {
|
|
114
114
|
delete params.refId
|
|
115
115
|
weexModule.callNative(
|
|
116
|
-
'
|
|
116
|
+
'iotLinkApi',
|
|
117
117
|
{
|
|
118
118
|
method: 'captureImage',
|
|
119
119
|
name: this.embedId,
|
|
@@ -124,7 +124,7 @@ export default {
|
|
|
124
124
|
},
|
|
125
125
|
switchVideoQuality(params,callback) {
|
|
126
126
|
weexModule.callNative(
|
|
127
|
-
'
|
|
127
|
+
'iotLinkApi',
|
|
128
128
|
{
|
|
129
129
|
method: 'switchVideoQuality',
|
|
130
130
|
name: this.embedId,
|
|
@@ -135,7 +135,7 @@ export default {
|
|
|
135
135
|
},
|
|
136
136
|
getVideoNetworkSpeed(params,callback) {
|
|
137
137
|
weexModule.callNative(
|
|
138
|
-
'
|
|
138
|
+
'iotLinkApi',
|
|
139
139
|
{
|
|
140
140
|
method: 'getVideoNetworkSpeed',
|
|
141
141
|
name: this.embedId,
|
|
@@ -146,7 +146,7 @@ export default {
|
|
|
146
146
|
},
|
|
147
147
|
startRecord(params,callback) {
|
|
148
148
|
weexModule.callNative(
|
|
149
|
-
'
|
|
149
|
+
'iotLinkApi',
|
|
150
150
|
{
|
|
151
151
|
method: 'startRecord',
|
|
152
152
|
name: this.embedId,
|
|
@@ -157,7 +157,7 @@ export default {
|
|
|
157
157
|
},
|
|
158
158
|
stopRecord(params,callback) {
|
|
159
159
|
weexModule.callNative(
|
|
160
|
-
'
|
|
160
|
+
'iotLinkApi',
|
|
161
161
|
{
|
|
162
162
|
method: 'stopRecord',
|
|
163
163
|
name: this.embedId,
|
|
@@ -168,7 +168,7 @@ export default {
|
|
|
168
168
|
},
|
|
169
169
|
changeAudioStatus(params,callback){
|
|
170
170
|
weexModule.callNative(
|
|
171
|
-
'
|
|
171
|
+
'iotLinkApi',
|
|
172
172
|
{
|
|
173
173
|
method: 'changeAudioStatus',
|
|
174
174
|
name: this.embedId,
|
|
@@ -0,0 +1,113 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<BaseSameLayer
|
|
3
|
+
:hosSameLayerArgs="hosSameLayerArgs"
|
|
4
|
+
embedType="native/midea-timeline-view"
|
|
5
|
+
:defaultWidth="300"
|
|
6
|
+
:defaultHeight="300"
|
|
7
|
+
>
|
|
8
|
+
</BaseSameLayer>
|
|
9
|
+
</template>
|
|
10
|
+
|
|
11
|
+
<script>
|
|
12
|
+
import BaseSameLayer from './baseSameLayer.vue';
|
|
13
|
+
const weexModule = weex.requireModule('weexModule');
|
|
14
|
+
|
|
15
|
+
export default {
|
|
16
|
+
data() {
|
|
17
|
+
return {
|
|
18
|
+
width: 0,
|
|
19
|
+
height: 0,
|
|
20
|
+
};
|
|
21
|
+
},
|
|
22
|
+
name: 'MideaTimelineView',
|
|
23
|
+
components: {
|
|
24
|
+
BaseSameLayer,
|
|
25
|
+
},
|
|
26
|
+
props: {
|
|
27
|
+
hosUniqueProps: {
|
|
28
|
+
type: Object,
|
|
29
|
+
default() {
|
|
30
|
+
return {};
|
|
31
|
+
},
|
|
32
|
+
},
|
|
33
|
+
data: {
|
|
34
|
+
type: Object,
|
|
35
|
+
default: () => {},
|
|
36
|
+
},
|
|
37
|
+
},
|
|
38
|
+
computed: {
|
|
39
|
+
hosSameLayerArgs() {
|
|
40
|
+
return {
|
|
41
|
+
...this.hosUniqueProps, // 鸿蒙原生组件独有属性
|
|
42
|
+
width: this.width,
|
|
43
|
+
height: this.height,
|
|
44
|
+
data: this.data,
|
|
45
|
+
onBeginDragging: this.onBeginDragging,
|
|
46
|
+
onStopDragging: this.onStopDragging,
|
|
47
|
+
onBeginZooming: this.onBeginZooming,
|
|
48
|
+
onStopZooming: this.onStopZooming,
|
|
49
|
+
};
|
|
50
|
+
},
|
|
51
|
+
},
|
|
52
|
+
mounted() {
|
|
53
|
+
this.width = this.$el.clientWidth;
|
|
54
|
+
this.height = this.$el.clientHeight;
|
|
55
|
+
},
|
|
56
|
+
|
|
57
|
+
methods: {
|
|
58
|
+
enableUserInteraction(callback) {
|
|
59
|
+
weexModule.callNative(
|
|
60
|
+
'timeLineApi',
|
|
61
|
+
{
|
|
62
|
+
method: 'enableUserInteraction',
|
|
63
|
+
name: this.embedId,
|
|
64
|
+
},
|
|
65
|
+
callback,
|
|
66
|
+
);
|
|
67
|
+
},
|
|
68
|
+
disableUserInteraction(callback) {
|
|
69
|
+
weexModule.callNative(
|
|
70
|
+
'timeLineApi',
|
|
71
|
+
{
|
|
72
|
+
method: 'disableUserInteraction',
|
|
73
|
+
name: this.embedId,
|
|
74
|
+
},
|
|
75
|
+
callback,
|
|
76
|
+
);
|
|
77
|
+
},
|
|
78
|
+
updateCurrentTime(params,callback) {
|
|
79
|
+
weexModule.callNative(
|
|
80
|
+
'timeLineApi',
|
|
81
|
+
{
|
|
82
|
+
method: 'updateCurrentTime',
|
|
83
|
+
name: this.embedId,
|
|
84
|
+
params
|
|
85
|
+
},
|
|
86
|
+
callback,
|
|
87
|
+
);
|
|
88
|
+
},
|
|
89
|
+
getCurrentTime(callback) {
|
|
90
|
+
weexModule.callNative(
|
|
91
|
+
'timeLineApi',
|
|
92
|
+
{
|
|
93
|
+
method: 'getCurrentTime',
|
|
94
|
+
name: this.embedId,
|
|
95
|
+
},
|
|
96
|
+
callback,
|
|
97
|
+
);
|
|
98
|
+
},
|
|
99
|
+
onBeginDragging(data) {
|
|
100
|
+
this.$emit('onBeginDragging', data);
|
|
101
|
+
},
|
|
102
|
+
onStopDragging(data) {
|
|
103
|
+
this.$emit('onStopDragging', data);
|
|
104
|
+
},
|
|
105
|
+
onBeginZooming(data) {
|
|
106
|
+
this.$emit('onBeginZooming', data);
|
|
107
|
+
},
|
|
108
|
+
onStopZooming(data) {
|
|
109
|
+
this.$emit('onStopZooming', data);
|
|
110
|
+
},
|
|
111
|
+
},
|
|
112
|
+
};
|
|
113
|
+
</script>
|
package/src/index.js
CHANGED
|
@@ -232,7 +232,12 @@ const componentMap = [
|
|
|
232
232
|
},
|
|
233
233
|
{
|
|
234
234
|
componentName: 'mideaAudioInputView',
|
|
235
|
-
componentAddress: 'midea-audio-input-view',
|
|
235
|
+
componentAddress: 'midea-audio-input-view.vue',
|
|
236
|
+
isInPlugin: false
|
|
237
|
+
},
|
|
238
|
+
{
|
|
239
|
+
componentName: 'MideaTimelineView',
|
|
240
|
+
componentAddress: 'midea-timeline-view.vue',
|
|
236
241
|
isInPlugin: false
|
|
237
242
|
},
|
|
238
243
|
]
|