mali-applet-ui 1.0.122 → 1.0.124

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.
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <view class="ml-chunk-item" :class="[className || '', span && !width ? `span-${span}` : '', itemAlign ? `align-${itemAlign}` : '', {'is-fixed': span || width, 'is-vertical': isVertical}]" :style="styles" @click="clickEvent" @tap="tapEvent">
3
3
  <slot>
4
- <view class="ml-chunk-item-num">
4
+ <view class="ml-chunk-item-num" @click="numEvent">
5
5
  <ml-amount-text v-if="type === 'amount'" :value="value" :simplify="simplify" :status="status" />
6
6
  <ml-text v-else :status="status">{{ currNum }}</ml-text>
7
7
  </view>
@@ -81,6 +81,9 @@ export default {
81
81
  this.$emit('tap', {})
82
82
  this.$emit('click', {})
83
83
  },
84
+ numEvent () {
85
+ this.$emit('num-click', {})
86
+ },
84
87
  titleEvent () {
85
88
  this.$emit('title-click', {})
86
89
  }
@@ -132,7 +135,11 @@ export default {
132
135
  overflow: hidden;
133
136
  text-overflow: ellipsis;
134
137
  white-space: nowrap;
135
- width: 100%;
138
+ }
139
+ &:not(.is-vertical) {
140
+ .ml-chunk-item-num {
141
+ width: 100%;
142
+ }
136
143
  }
137
144
  .ml-chunk-item-name {
138
145
  display: block;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.0.122",
3
+ "version": "1.0.124",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",