mali-applet-ui 1.0.172 → 1.0.174
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.
- package/lib/components/fix-uni-datetime-picker/calendar-item.vue +183 -0
- package/lib/components/fix-uni-datetime-picker/calendar.vue +924 -0
- package/lib/components/fix-uni-datetime-picker/fix-uni-datetime-picker.vue +1025 -0
- package/lib/components/fix-uni-datetime-picker/i18n/en.json +22 -0
- package/lib/components/fix-uni-datetime-picker/i18n/index.js +8 -0
- package/lib/components/fix-uni-datetime-picker/i18n/zh-Hans.json +22 -0
- package/lib/components/fix-uni-datetime-picker/i18n/zh-Hant.json +22 -0
- package/lib/components/fix-uni-datetime-picker/keypress.js +45 -0
- package/lib/components/fix-uni-datetime-picker/time-picker.vue +944 -0
- package/lib/components/fix-uni-datetime-picker/util.js +414 -0
- package/lib/components/ml-date-picker/ml-date-picker.vue +6 -1
- package/lib/components/ml-date-quick-range-picker/ml-date-quick-range-picker.vue +5 -1
- package/lib/components/ml-date-range-picker/ml-date-range-picker.vue +6 -1
- package/lib/components/ml-datetime-picker/ml-datetime-picker.vue +7 -2
- package/lib/components/ml-datetime-range-picker/ml-datetime-range-picker.vue +7 -2
- package/lib/components/ml-form-group/ml-form-group.vue +1 -1
- package/lib/components/ml-image/ml-image.vue +34 -0
- package/lib/components/ml-image-swiper/ml-image-swiper.vue +1 -0
- package/lib/components/ml-list-select-page-footer/ml-list-select-page-footer.vue +1 -0
- package/lib/components/ml-list-select-user-page/ml-list-select-user-page.vue +1 -1
- package/lib/components/ml-load-more/ml-load-more.vue +4 -0
- package/lib/components/ml-time-line/ml-time-line.vue +1 -0
- package/lib/components/ml-tree-box/ml-tree-icon.vue +1 -1
- package/lib/components/ml-tree-node/ml-tree-node.vue +1 -0
- package/package.json +1 -1
- package/utils/applet.js +15 -13
|
@@ -0,0 +1,183 @@
|
|
|
1
|
+
<template>
|
|
2
|
+
<view class="uni-calendar-item__weeks-box" :class="{
|
|
3
|
+
'uni-calendar-item--disable':weeks.disable,
|
|
4
|
+
'uni-calendar-item--before-checked-x':weeks.beforeMultiple,
|
|
5
|
+
'uni-calendar-item--multiple': weeks.multiple,
|
|
6
|
+
'uni-calendar-item--after-checked-x':weeks.afterMultiple,
|
|
7
|
+
}" @click="choiceDate(weeks)" @mouseenter="handleMousemove(weeks)">
|
|
8
|
+
<view class="uni-calendar-item__weeks-box-item" :class="{
|
|
9
|
+
'uni-calendar-item--checked':calendar.fullDate === weeks.fullDate && (calendar.userChecked || !checkHover),
|
|
10
|
+
'uni-calendar-item--checked-range-text': checkHover,
|
|
11
|
+
'uni-calendar-item--before-checked':weeks.beforeMultiple,
|
|
12
|
+
'uni-calendar-item--multiple': weeks.multiple,
|
|
13
|
+
'uni-calendar-item--after-checked':weeks.afterMultiple,
|
|
14
|
+
'uni-calendar-item--disable':weeks.disable,
|
|
15
|
+
}">
|
|
16
|
+
<text v-if="selected&&weeks.extraInfo" class="uni-calendar-item__weeks-box-circle"></text>
|
|
17
|
+
<text class="uni-calendar-item__weeks-box-text uni-calendar-item__weeks-box-text-disable uni-calendar-item--checked-text">{{weeks.date}}</text>
|
|
18
|
+
</view>
|
|
19
|
+
<view :class="{'uni-calendar-item--isDay': weeks.isDay}"></view>
|
|
20
|
+
</view>
|
|
21
|
+
</template>
|
|
22
|
+
|
|
23
|
+
<script>
|
|
24
|
+
export default {
|
|
25
|
+
props: {
|
|
26
|
+
weeks: {
|
|
27
|
+
type: Object,
|
|
28
|
+
default () {
|
|
29
|
+
return {}
|
|
30
|
+
}
|
|
31
|
+
},
|
|
32
|
+
calendar: {
|
|
33
|
+
type: Object,
|
|
34
|
+
default: () => {
|
|
35
|
+
return {}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
selected: {
|
|
39
|
+
type: Array,
|
|
40
|
+
default: () => {
|
|
41
|
+
return []
|
|
42
|
+
}
|
|
43
|
+
},
|
|
44
|
+
lunar: {
|
|
45
|
+
type: Boolean,
|
|
46
|
+
default: false
|
|
47
|
+
},
|
|
48
|
+
checkHover: {
|
|
49
|
+
type: Boolean,
|
|
50
|
+
default: false
|
|
51
|
+
}
|
|
52
|
+
},
|
|
53
|
+
methods: {
|
|
54
|
+
choiceDate (weeks) {
|
|
55
|
+
this.$emit('change', weeks)
|
|
56
|
+
},
|
|
57
|
+
handleMousemove (weeks) {
|
|
58
|
+
this.$emit('handleMouse', weeks)
|
|
59
|
+
}
|
|
60
|
+
}
|
|
61
|
+
}
|
|
62
|
+
</script>
|
|
63
|
+
|
|
64
|
+
<style lang="scss" >
|
|
65
|
+
.uni-calendar-item__weeks-box {
|
|
66
|
+
flex: 1;
|
|
67
|
+
/* #ifndef APP-NVUE */
|
|
68
|
+
display: flex;
|
|
69
|
+
/* #endif */
|
|
70
|
+
flex-direction: column;
|
|
71
|
+
justify-content: center;
|
|
72
|
+
align-items: center;
|
|
73
|
+
margin: 2rpx 0;
|
|
74
|
+
position: relative;
|
|
75
|
+
}
|
|
76
|
+
|
|
77
|
+
.uni-calendar-item__weeks-box-text {
|
|
78
|
+
font-size: 28rpx;
|
|
79
|
+
// font-family: Lato-Bold, Lato;
|
|
80
|
+
font-weight: bold;
|
|
81
|
+
color: darken($color: $ml-theme-primary-color, $amount: 40%);
|
|
82
|
+
}
|
|
83
|
+
|
|
84
|
+
.uni-calendar-item__weeks-lunar-text {
|
|
85
|
+
font-size: 24rpx;
|
|
86
|
+
color: #333;
|
|
87
|
+
}
|
|
88
|
+
|
|
89
|
+
.uni-calendar-item__weeks-box-item {
|
|
90
|
+
position: relative;
|
|
91
|
+
/* #ifndef APP-NVUE */
|
|
92
|
+
display: flex;
|
|
93
|
+
/* #endif */
|
|
94
|
+
flex-direction: column;
|
|
95
|
+
justify-content: center;
|
|
96
|
+
align-items: center;
|
|
97
|
+
width: 80rpx;
|
|
98
|
+
height: 80rpx;
|
|
99
|
+
/* #ifdef H5 */
|
|
100
|
+
cursor: pointer;
|
|
101
|
+
/* #endif */
|
|
102
|
+
}
|
|
103
|
+
|
|
104
|
+
.uni-calendar-item__weeks-box-circle {
|
|
105
|
+
position: absolute;
|
|
106
|
+
top: 10rpx;
|
|
107
|
+
right: 10rpx;
|
|
108
|
+
width: 16rpx;
|
|
109
|
+
height: 16rpx;
|
|
110
|
+
border-radius: 16rpx;
|
|
111
|
+
background-color: #dd524d;
|
|
112
|
+
|
|
113
|
+
}
|
|
114
|
+
|
|
115
|
+
.uni-calendar-item__weeks-box .uni-calendar-item--disable {
|
|
116
|
+
cursor: default;
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
.uni-calendar-item--disable .uni-calendar-item__weeks-box-text-disable {
|
|
120
|
+
color: #D1D1D1;
|
|
121
|
+
}
|
|
122
|
+
|
|
123
|
+
.uni-calendar-item--isDay {
|
|
124
|
+
position: absolute;
|
|
125
|
+
top: 20rpx;
|
|
126
|
+
right: 17%;
|
|
127
|
+
background-color: #dd524d;
|
|
128
|
+
width: 12rpx;
|
|
129
|
+
height: 12rpx;
|
|
130
|
+
border-radius: 50%;
|
|
131
|
+
}
|
|
132
|
+
|
|
133
|
+
.uni-calendar-item--extra {
|
|
134
|
+
color: #dd524d;
|
|
135
|
+
opacity: 0.8;
|
|
136
|
+
}
|
|
137
|
+
|
|
138
|
+
.uni-calendar-item__weeks-box .uni-calendar-item--checked {
|
|
139
|
+
background-color: $ml-theme-primary-color;
|
|
140
|
+
border-radius: 50%;
|
|
141
|
+
box-sizing: border-box;
|
|
142
|
+
border: 3px solid #fff;
|
|
143
|
+
}
|
|
144
|
+
|
|
145
|
+
.uni-calendar-item--checked .uni-calendar-item--checked-text {
|
|
146
|
+
color: #fff;
|
|
147
|
+
}
|
|
148
|
+
|
|
149
|
+
.uni-calendar-item--multiple .uni-calendar-item--checked-range-text {
|
|
150
|
+
color: #333;
|
|
151
|
+
}
|
|
152
|
+
|
|
153
|
+
.uni-calendar-item--multiple {
|
|
154
|
+
background-color: #F6F7FC;
|
|
155
|
+
// color: #fff;
|
|
156
|
+
}
|
|
157
|
+
|
|
158
|
+
.uni-calendar-item--multiple .uni-calendar-item--before-checked,
|
|
159
|
+
.uni-calendar-item--multiple .uni-calendar-item--after-checked {
|
|
160
|
+
background-color: $ml-theme-primary-color;
|
|
161
|
+
border-radius: 50%;
|
|
162
|
+
box-sizing: border-box;
|
|
163
|
+
border: 6rpx solid #F6F7FC;
|
|
164
|
+
}
|
|
165
|
+
|
|
166
|
+
.uni-calendar-item--before-checked .uni-calendar-item--checked-text,
|
|
167
|
+
.uni-calendar-item--after-checked .uni-calendar-item--checked-text {
|
|
168
|
+
color: #fff;
|
|
169
|
+
}
|
|
170
|
+
|
|
171
|
+
.uni-calendar-item--before-checked-x {
|
|
172
|
+
border-top-left-radius: 100rpx;
|
|
173
|
+
border-bottom-left-radius: 100rpx;
|
|
174
|
+
box-sizing: border-box;
|
|
175
|
+
background-color: #F6F7FC;
|
|
176
|
+
}
|
|
177
|
+
|
|
178
|
+
.uni-calendar-item--after-checked-x {
|
|
179
|
+
border-top-right-radius: 100rpx;
|
|
180
|
+
border-bottom-right-radius: 100rpx;
|
|
181
|
+
background-color: #F6F7FC;
|
|
182
|
+
}
|
|
183
|
+
</style>
|