mali-applet-ui 1.0.126 → 1.0.128

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.
@@ -5,7 +5,7 @@
5
5
  :disabled="disabled"
6
6
  :open-type="openType"
7
7
  :style="styles"
8
- @tap="tapEvent"
8
+ @tap.stop="tapEvent"
9
9
  @click="clickEvent">
10
10
  <slot>{{ content }}</slot>
11
11
  </button>
@@ -3,7 +3,7 @@
3
3
  <slot>
4
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
- <ml-text v-else :status="status">{{ currNum }}</ml-text>
6
+ <ml-text v-else :status="status">{{ currNum }}{{ unitText || '' }}</ml-text>
7
7
  </view>
8
8
  <view class="ml-chunk-item-name" @click="titleEvent">
9
9
  <slot name="title">
@@ -32,6 +32,7 @@ export default {
32
32
  span: [String, Number],
33
33
  url: String,
34
34
  redirect: Boolean,
35
+ unitText: String,
35
36
  align: String,
36
37
  width: String,
37
38
  title: String,
@@ -605,6 +605,16 @@ export default {
605
605
  },
606
606
 
607
607
  mobileChange (e) {
608
+ if (this.type === 'date') {
609
+ if (this.start && this.createTimestamp(e.fulldate) < this.createTimestamp(this.start)) {
610
+ this.$refs.mobile.close()
611
+ return
612
+ }
613
+ if (this.end && this.createTimestamp(e.fulldate) > this.createTimestamp(this.end)) {
614
+ this.$refs.mobile.close()
615
+ return
616
+ }
617
+ }
608
618
  if (this.isRange) {
609
619
  const {
610
620
  before,
@@ -10,6 +10,8 @@
10
10
  </template>
11
11
 
12
12
  <script>
13
+ import XEUtils from 'xe-utils'
14
+
13
15
  export default {
14
16
  name: 'MlMonthPicker',
15
17
  options: {
@@ -23,7 +25,7 @@ export default {
23
25
  },
24
26
  methods: {
25
27
  changeEvent (e) {
26
- const value = e.detail.value
28
+ const value = e.detail.value ? XEUtils.toDateString(e.detail.value, 'yyyy-MM') : ''
27
29
  this.$emit('input', value)
28
30
  this.$emit('change', { value })
29
31
  }
@@ -31,7 +31,7 @@ export default {
31
31
  virtualHost: true
32
32
  },
33
33
  props: {
34
- value: Number,
34
+ value: [Number, String],
35
35
  max: {
36
36
  type: Number,
37
37
  default: 100
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.0.126",
3
+ "version": "1.0.128",
4
4
  "description": "码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",