mali-applet-ui 1.0.175 → 1.0.177

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.
@@ -41,7 +41,7 @@
41
41
  <text class="uni-datetime-picker-sign sign-right">-</text>
42
42
  </view>
43
43
  <view v-if="timeShow" class="uni-datetime-picker__container-box">
44
- <picker-view class="uni-datetime-picker-view" :class="[hideSecond ? 'time-hide-second' : '']"
44
+ <picker-view v-if="hideSecond" class="uni-datetime-picker-view time-hide-second"
45
45
  :indicator-style="indicatorStyle" :value="hms" @change="bindTimeChange">
46
46
  <picker-view-column>
47
47
  <view class="uni-datetime-picker-item" v-for="(item,index) in hours" :key="index">
@@ -53,7 +53,20 @@
53
53
  <text class="uni-datetime-picker-item">{{lessThanTen(item)}}</text>
54
54
  </view>
55
55
  </picker-view-column>
56
- <picker-view-column v-if="!hideSecond">
56
+ </picker-view>
57
+ <picker-view v-else class="uni-datetime-picker-view"
58
+ :indicator-style="indicatorStyle" :value="hms" @change="bindTimeChange">
59
+ <picker-view-column>
60
+ <view class="uni-datetime-picker-item" v-for="(item,index) in hours" :key="index">
61
+ <text class="uni-datetime-picker-item">{{lessThanTen(item)}}</text>
62
+ </view>
63
+ </picker-view-column>
64
+ <picker-view-column>
65
+ <view class="uni-datetime-picker-item" v-for="(item,index) in minutes" :key="index">
66
+ <text class="uni-datetime-picker-item">{{lessThanTen(item)}}</text>
67
+ </view>
68
+ </picker-view-column>
69
+ <picker-view-column>
57
70
  <view class="uni-datetime-picker-item" v-for="(item,index) in seconds" :key="index">
58
71
  <text class="uni-datetime-picker-item">{{lessThanTen(item)}}</text>
59
72
  </view>
@@ -29,7 +29,7 @@
29
29
  <view class="ml-calendar-date-day-text" :class="{'today': item.isToday}" v-if="item.isToday">今</view>
30
30
  <view class="ml-calendar-date-day-text" v-else>{{ item.day }}</view>
31
31
  <view class="ml-calendar-date-day-dots">
32
- <view class="ml-calendar-date-day-status" v-for="(status, sIndex) in item.statusList" :key="sIndex" :class="[`ss-${status}`]"></view>
32
+ <view class="ml-calendar-date-day-status" v-for="(sItem) in item.statusList" :key="sItem.key" :class="[`ss-${sItem.value}`]"></view>
33
33
  </view>
34
34
  <view class="ml-calendar-date-day-dots">
35
35
  <view class="ml-calendar-date-day-status" :style="{ backgroundColor: item.color }" v-if="item.color"></view>
@@ -116,7 +116,13 @@ export default {
116
116
  list.forEach(item => {
117
117
  if (dateMaps[item.date]) {
118
118
  const status = dateMaps[item.date].status
119
- item.statusList = (XEUtils.isArray(status) ? status : [status]).slice(0, 2)
119
+ item.statusList = (XEUtils.isArray(status) ? status : [status]).slice(0, 2).map((status, i) => {
120
+ return {
121
+ key: i,
122
+ value: status,
123
+ label: status
124
+ }
125
+ })
120
126
  }
121
127
  })
122
128
  })
@@ -91,12 +91,12 @@ export default {
91
91
  }
92
92
  .ml-switch--icon {
93
93
  left: 100%;
94
- transform: translateX(-38rpx);
94
+ transform: translateX(-40rpx);
95
95
  }
96
96
  }
97
97
  &.is--off {
98
98
  .ml-switch--button {
99
- padding-left: 40rpx;
99
+ padding-left: 42rpx;
100
100
  background-color: rgba(0,0,0,0.35);
101
101
  }
102
102
  .ml-switch--icon {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "1.0.175",
3
+ "version": "1.0.177",
4
4
  "description": "vue2 码里云小程序组件库",
5
5
  "files": [
6
6
  "lib",