@dolphinweex/weex-harmony 0.1.14 → 0.1.16

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.14",
3
+ "version": "0.1.16",
4
4
  "description": "weex harmony adapter",
5
5
  "main": "index.js",
6
6
  "files": [
@@ -40,7 +40,7 @@ export default {
40
40
  listenEvents:{
41
41
  type: Array,
42
42
  required: false,
43
- default: [],
43
+ default: () => [],
44
44
  }
45
45
  },
46
46
  data() {
@@ -64,10 +64,12 @@ export default {
64
64
  return filtered;
65
65
  },
66
66
  embedWidth() {
67
+ this.$forceUpdate()
67
68
  // 如果hosSameLayerArgs.width存在且定义了,则使用该值,否则使用defaultWidth
68
69
  return this.hosSameLayerArgs.width || this.defaultWidth;
69
70
  },
70
71
  embedHeight() {
72
+ this.$forceUpdate()
71
73
  // 如果hosSameLayerArgs.height存在且定义了,则使用该值,否则使用defaultHeight
72
74
  return this.hosSameLayerArgs.height || this.defaultHeight;
73
75
  },
@@ -31,6 +31,10 @@ export default {
31
31
  src: {
32
32
  type: String,
33
33
  required: true,
34
+ },
35
+ harmonyStyle: {
36
+ type: Object,
37
+ required: false,
34
38
  }
35
39
  },
36
40
 
@@ -40,7 +44,7 @@ export default {
40
44
  ...this.hosUniqueProps, // 鸿蒙原生组件独有属性
41
45
  src: this.src,
42
46
  width: this.width,
43
- height: this.height,
47
+ height: (this.harmonyStyle && this.harmonyStyle.height) ? this.harmonyStyle.height : this.height,
44
48
  pagefinish: this.onPageFinish,
45
49
  pagestart: this.onPageStart,
46
50
  error: this.onError,
@@ -57,6 +57,10 @@ export default {
57
57
  type: String,
58
58
  default: "",
59
59
  },
60
+ loop:{
61
+ type: Boolean,
62
+ default: false,
63
+ }
60
64
  },
61
65
  computed: {
62
66
  hosSameLayerArgs() {
@@ -75,6 +79,7 @@ export default {
75
79
  objectFit: this.objectFit,
76
80
  muted: this.muted,
77
81
  videoCover: this.videoCover,
82
+ loop: this.loop
78
83
  };
79
84
  },
80
85
  },
package/src/.DS_Store DELETED
Binary file
Binary file