@dolphinweex/weex-harmony 0.1.36 → 0.1.38

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.36",
3
+ "version": "0.1.38",
4
4
  "description": "weex harmony adapter",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -1,8 +1,8 @@
1
1
  <template>
2
2
  <div v-on="filteredListeners"
3
- @touchstart="handleTouchStart"
4
- @touchmove="handleTouchMove"
5
- @touchend="handleTouchEnd">
3
+ @touchstart="!this.isRemove ? handleTouchStart : null"
4
+ @touchmove="!this.isRemove ? handleTouchMove : null"
5
+ @touchend="!this.isRemove ? handleTouchEnd : null">
6
6
  <embed
7
7
  ref="embedElement"
8
8
  :id="embedId"
@@ -41,7 +41,12 @@ export default {
41
41
  type: Array,
42
42
  required: false,
43
43
  default: () => [],
44
- }
44
+ },
45
+ isRemove: {
46
+ type: Boolean,
47
+ required: false,
48
+ default: false,
49
+ },
45
50
  },
46
51
  data() {
47
52
  return {
@@ -0,0 +1,60 @@
1
+ <template>
2
+ <BaseSameLayer
3
+ :hosSameLayerArgs="hosSameLayerArgs"
4
+ embedType="native/midea-build-loading-view"
5
+ :defaultWidth="100"
6
+ :defaultHeight="100"
7
+ ></BaseSameLayer>
8
+ </template>
9
+
10
+ <script>
11
+ import BaseSameLayer from './baseSameLayer.vue';
12
+
13
+ export default {
14
+ data() {
15
+ return {
16
+ width: 0,
17
+ height: 0,
18
+ };
19
+ },
20
+ name: 'mideaBuildLoadingView',
21
+ components: {
22
+ BaseSameLayer,
23
+ },
24
+ props: {
25
+ hosUniqueProps: {
26
+ type: Object,
27
+ default() {
28
+ return {};
29
+ },
30
+ },
31
+ data: {
32
+ type: Object,
33
+ default() {
34
+ return {};
35
+ },
36
+ },
37
+
38
+ },
39
+ computed: {
40
+ hosSameLayerArgs() {
41
+ return {
42
+ ...this.hosUniqueProps, // 鸿蒙原生组件独有属性
43
+ width: this.width,
44
+ height: this.height,
45
+ data: this.data,
46
+ // loadComplete: this.loadComplete,
47
+ };
48
+ },
49
+ },
50
+ mounted() {
51
+ this.width = this.$el.clientWidth;
52
+ this.height = this.$el.clientHeight;
53
+ },
54
+ methods: {
55
+ loadComplete(res) {
56
+ this.$emit("loadComplete", res)
57
+ },
58
+ },
59
+ };
60
+ </script>
@@ -4,6 +4,7 @@
4
4
  embedType="native/midea-map-view"
5
5
  :defaultWidth="300"
6
6
  :defaultHeight="300"
7
+ :isRemove="true"
7
8
  >
8
9
  </BaseSameLayer>
9
10
  </template>
package/src/index.js CHANGED
@@ -200,6 +200,11 @@ const componentMap = [
200
200
  componentAddress: 'midea-device-card-list-view.vue',
201
201
  isInPlugin: false
202
202
  },
203
+ {
204
+ componentName: 'mideaBuildLoadingView',
205
+ componentAddress: 'midea-build-loading-view.vue',
206
+ isInPlugin: false
207
+ },
203
208
  ]
204
209
 
205
210
  module.exports = componentMap