mali-applet-ui 0.2.35 → 0.2.37

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.
@@ -34,7 +34,6 @@ export default {
34
34
  },
35
35
  methods: {
36
36
  clickEvent () {
37
- this.$emit('click', {})
38
37
  },
39
38
  tapEvent () {
40
39
  if (this.url) {
@@ -49,6 +48,7 @@ export default {
49
48
  }
50
49
  }
51
50
  this.$emit('tap', {})
51
+ this.$emit('click', {})
52
52
  }
53
53
  }
54
54
  }
@@ -1,5 +1,5 @@
1
1
  <template>
2
- <text class="ml-icon" :class="[className || '', status ? `ss-${status}` : '', name ? `${prefix}${name}` : '', {'is-roll': roll}]" :style="styles" @click="clickEvent"></text>
2
+ <text class="ml-icon" :class="[className || '', status ? `ss-${status}` : '', name ? `${prefix}${name}` : '', {'is-roll': roll}]" :style="styles" @click="clickEvent" @tap="tapEvent"></text>
3
3
  </template>
4
4
 
5
5
  <script>
@@ -28,6 +28,10 @@ export default {
28
28
  methods: {
29
29
  clickEvent (e) {
30
30
  this.$emit('click', { $event: e })
31
+ },
32
+ tapEvent () {
33
+ this.$emit('tap', { $event: e })
34
+ this.$emit('click', { $event: e })
31
35
  }
32
36
  }
33
37
  }
@@ -48,6 +48,9 @@ export default {
48
48
  type: Number,
49
49
  default: 12
50
50
  },
51
+ min: [String, Number],
52
+ max: [String, Number],
53
+ controls: Boolean,
51
54
  placeholder: {
52
55
  type: String,
53
56
  default: '请输入'
@@ -103,7 +103,7 @@ export default {
103
103
  .ml-tabbar-dot {
104
104
  position: absolute;
105
105
  top: 0;
106
- left: 114rpx;
106
+ right: 0;
107
107
  background-color: #f56c6c;
108
108
  color: #fff;
109
109
  border-radius: 16rpx;
@@ -115,6 +115,9 @@ export default {
115
115
  display: block;
116
116
  position: relative;
117
117
  font-size: 40rpx;
118
+ width: 80rpx;
119
+ margin: 0 auto;
120
+ text-align: center;
118
121
  }
119
122
  .ml-tabbar-name {
120
123
  display: block;
@@ -42,7 +42,6 @@ export default {
42
42
  },
43
43
  methods: {
44
44
  clickEvent () {
45
- this.$emit('click', {})
46
45
  },
47
46
  tapEvent () {
48
47
  if (this.url) {
@@ -57,6 +56,7 @@ export default {
57
56
  }
58
57
  }
59
58
  this.$emit('tap', {})
59
+ this.$emit('click', {})
60
60
  }
61
61
  }
62
62
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.2.35",
3
+ "version": "0.2.37",
4
4
  "description": "码里云小程序组件库",
5
5
  "scripts": {
6
6
  "release": "node script/release.js && npm publish"