mali-applet-ui 1.1.2 → 1.1.4

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) {
@@ -37,6 +37,10 @@ export default {
37
37
  type: Boolean,
38
38
  default: true
39
39
  },
40
+ disabled: {
41
+ type: Boolean,
42
+ default: false
43
+ },
40
44
  readonly: Boolean,
41
45
  vertical: Boolean,
42
46
  labelWidth: String,
@@ -110,7 +110,7 @@ export default {
110
110
  if (this.disabled) {
111
111
  return true
112
112
  }
113
- return this.form ? this.form.disabled : false
113
+ return this.form ? !!this.form.disabled : false
114
114
  },
115
115
  itemErrRule () {
116
116
  if (this.form) {
@@ -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'
@@ -108,7 +108,7 @@ export default {
108
108
  if (this.disabled) {
109
109
  return true
110
110
  }
111
- return this.formItem ? this.formItem.disabled : false
111
+ return this.formItem ? this.formItem.isFormDisabled : false
112
112
  },
113
113
  hasSuffix () {
114
114
  return this.$slots.suffix || this.suffixIcon
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.4",
4
4
  "description": "vue2 码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",