mali-applet-ui 0.2.32 → 0.2.34

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.
@@ -47,9 +47,9 @@ export default {
47
47
  }
48
48
  }
49
49
  this.$emit('tap', {})
50
+ this.$emit('click', {})
50
51
  },
51
52
  clickEvent () {
52
- this.$emit('click', {})
53
53
  }
54
54
  }
55
55
  }
@@ -103,7 +103,6 @@ export default {
103
103
  },
104
104
  methods: {
105
105
  clickEvent () {
106
- this.$emit('click', {})
107
106
  },
108
107
  tapEvent () {
109
108
  if (this.listGroup) {
@@ -121,6 +120,7 @@ export default {
121
120
  }
122
121
  }
123
122
  this.$emit('tap', {})
123
+ this.$emit('click', {})
124
124
  }
125
125
  }
126
126
  }
@@ -102,7 +102,7 @@ export default {
102
102
  return num > 99 ? '99+' : num
103
103
  },
104
104
  clickEvent () {
105
- this.$emit('click', {})
105
+ // this.$emit('click', {})
106
106
  },
107
107
  tapEvent () {
108
108
  if (this.listMenuGroup) {
@@ -120,6 +120,7 @@ export default {
120
120
  }
121
121
  }
122
122
  this.$emit('tap', {})
123
+ this.$emit('click', {})
123
124
  }
124
125
  }
125
126
  }
@@ -63,12 +63,23 @@ export default {
63
63
  clearable: Boolean,
64
64
  className: String
65
65
  },
66
+ inject: {
67
+ form: {
68
+ from: 'mlForm',
69
+ default: null
70
+ }
71
+ },
66
72
  data () {
67
73
  return {
68
74
  platformEnv: getPlatformEnv(),
69
75
  inpVal: ''
70
76
  }
71
77
  },
78
+ computed: {
79
+ isFromReadonly () {
80
+ return this.form ? this.form.readonly : false
81
+ }
82
+ },
72
83
  watch: {
73
84
  value (val) {
74
85
  if (!this.updateModel) {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.2.32",
3
+ "version": "0.2.34",
4
4
  "description": "码里云小程序组件库",
5
5
  "scripts": {
6
6
  "release": "node script/release.js && npm publish"