mali-applet-ui 1.1.2 → 1.1.3

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.
@@ -69,6 +69,7 @@ export default {
69
69
  this.calculateStyle(300)
70
70
  this.calculateStyle(800)
71
71
  this.calculateStyle(1500)
72
+ this.calculateStyle(4000)
72
73
  })
73
74
  },
74
75
  calculateStyle (timeout) {
@@ -65,6 +65,7 @@ export default {
65
65
  this.calculateStyle(300)
66
66
  this.calculateStyle(800)
67
67
  this.calculateStyle(1500)
68
+ this.calculateStyle(4000)
68
69
  })
69
70
  },
70
71
  calculateStyle (timeout) {
@@ -1,12 +1,16 @@
1
1
  <template>
2
- <image class="ml-image" :src="url" :mode="mode" :style="imgStyles"></image>
2
+ <image class="ml-image" :class="className" :src="url" :mode="mode" :style="imgStyles"></image>
3
3
  </template>
4
4
 
5
5
  <script>
6
6
  export default {
7
7
  name: 'MlImage',
8
+ options: {
9
+ virtualHost: true
10
+ },
8
11
  props: {
9
12
  url: String,
13
+ className: String,
10
14
  mode: {
11
15
  type: String,
12
16
  default: 'aspectFit'
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.1.2",
3
+ "version": "1.1.3",
4
4
  "description": "vue2 码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",