mali-applet-ui 1.0.87 → 1.0.89
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/ml-date-picker/ml-date-picker.vue +1 -1
- package/lib/components/ml-date-quick-range-picker/ml-date-quick-range-picker.vue +1 -1
- package/lib/components/ml-date-range-picker/ml-date-range-picker.vue +1 -1
- package/lib/components/ml-datetime-picker/ml-datetime-picker.vue +1 -1
- package/lib/components/ml-datetime-range-picker/ml-datetime-range-picker.vue +2 -2
- package/lib/components/ml-fix-uni-datetime-picker/calendar-item.vue +186 -0
- package/lib/components/ml-fix-uni-datetime-picker/calendar.vue +923 -0
- package/lib/components/ml-fix-uni-datetime-picker/i18n/en.json +22 -0
- package/lib/components/ml-fix-uni-datetime-picker/i18n/index.js +8 -0
- package/lib/components/ml-fix-uni-datetime-picker/i18n/zh-Hans.json +22 -0
- package/lib/components/ml-fix-uni-datetime-picker/i18n/zh-Hant.json +22 -0
- package/lib/components/ml-fix-uni-datetime-picker/keypress.js +45 -0
- package/lib/components/ml-fix-uni-datetime-picker/ml-fix-uni-datetime-picker.vue +1018 -0
- package/lib/components/ml-fix-uni-datetime-picker/time-picker.vue +946 -0
- package/lib/components/ml-fix-uni-datetime-picker/util.js +414 -0
- package/lib/components/ml-icon/ml-icon.vue +4 -1
- package/lib/components/ml-list-select-page-footer/ml-list-select-page-footer.vue +91 -0
- package/lib/components/ml-list-select-user-page/ml-list-select-user-page.vue +161 -0
- package/package.json +1 -1
|
@@ -2,7 +2,7 @@
|
|
|
2
2
|
<view v-if="isFromReadonly" class="ml-date-picker is-readonly">
|
|
3
3
|
<view class="ml-date-picker-readonly-content">{{ value }}</view>
|
|
4
4
|
</view>
|
|
5
|
-
<uni-datetime-picker v-else :class="className" v-model="selectVal" type="date" :start="minDate" :end="maxDate" :placeholder="placeholder" @change="changeEvent" :clearIcon="clearable" :border="border"/>
|
|
5
|
+
<ml-fix-uni-datetime-picker v-else :class="className" v-model="selectVal" type="date" :start="minDate" :end="maxDate" :placeholder="placeholder" @change="changeEvent" :clearIcon="clearable" :border="border"/>
|
|
6
6
|
</template>
|
|
7
7
|
|
|
8
8
|
<script>
|
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
</view>
|
|
6
6
|
<view class="ml-date-quick-range-picker-right">
|
|
7
7
|
<ml-date-picker v-model="selectVal" v-if="selectType === 1" :border="border" :clearable="clearable"></ml-date-picker>
|
|
8
|
-
<uni-datetime-picker v-else v-model="selectDates" type="daterange" :start="minDate" :end="maxDate" @change="changeEvent" :border="border" :clear-icon="clearable"/>
|
|
8
|
+
<ml-fix-uni-datetime-picker v-else v-model="selectDates" type="daterange" :start="minDate" :end="maxDate" @change="changeEvent" :border="border" :clear-icon="clearable"/>
|
|
9
9
|
</view>
|
|
10
10
|
</view>
|
|
11
11
|
</template>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<uni-datetime-picker :class="className" v-model="selectDates" type="daterange" :start="minDate" :end="maxDate" @change="changeEvent" :border="border" :clear-icon="clearable"/>
|
|
2
|
+
<ml-fix-uni-datetime-picker :class="className" v-model="selectDates" type="daterange" :start="minDate" :end="maxDate" @change="changeEvent" :border="border" :clear-icon="clearable"/>
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script>
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<uni-datetime-picker :class="className" :value="selectVal" type="datetime" :start="minDate" :end="maxDate" :hide-second="hideSecond" @change="changeEvent" :border="border" :clear-icon="clearable" />
|
|
2
|
+
<ml-fix-uni-datetime-picker :class="className" :value="selectVal" type="datetime" :start="minDate" :end="maxDate" :hide-second="hideSecond" @change="changeEvent" :border="border" :clear-icon="clearable" />
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script>
|
|
@@ -1,10 +1,10 @@
|
|
|
1
1
|
<template>
|
|
2
|
-
<uni-datetime-picker :class="className" v-model="selectDates" type="datetimerange" :start="minDate" :end="maxDate" @change="changeEvent" :border="border" :clear-icon="clearable" />
|
|
2
|
+
<ml-fix-uni-datetime-picker :class="className" v-model="selectDates" type="datetimerange" :start="minDate" :end="maxDate" @change="changeEvent" :border="border" :clear-icon="clearable" />
|
|
3
3
|
</template>
|
|
4
4
|
|
|
5
5
|
<script>
|
|
6
6
|
export default {
|
|
7
|
-
name: '
|
|
7
|
+
name: 'MlFixUniDatetimePicker',
|
|
8
8
|
options: {
|
|
9
9
|
virtualHost: true
|
|
10
10
|
},
|
|
@@ -0,0 +1,186 @@
|
|
|
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-primary: #007aff !default;
|
|
66
|
+
|
|
67
|
+
.uni-calendar-item__weeks-box {
|
|
68
|
+
flex: 1;
|
|
69
|
+
/* #ifndef APP-NVUE */
|
|
70
|
+
display: flex;
|
|
71
|
+
/* #endif */
|
|
72
|
+
flex-direction: column;
|
|
73
|
+
justify-content: center;
|
|
74
|
+
align-items: center;
|
|
75
|
+
margin: 1px 0;
|
|
76
|
+
position: relative;
|
|
77
|
+
}
|
|
78
|
+
|
|
79
|
+
.uni-calendar-item__weeks-box-text {
|
|
80
|
+
font-size: 14px;
|
|
81
|
+
// font-family: Lato-Bold, Lato;
|
|
82
|
+
font-weight: bold;
|
|
83
|
+
color: darken($color: $uni-primary, $amount: 40%);
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
.uni-calendar-item__weeks-lunar-text {
|
|
87
|
+
font-size: 12px;
|
|
88
|
+
color: #333;
|
|
89
|
+
}
|
|
90
|
+
|
|
91
|
+
.uni-calendar-item__weeks-box-item {
|
|
92
|
+
position: relative;
|
|
93
|
+
/* #ifndef APP-NVUE */
|
|
94
|
+
display: flex;
|
|
95
|
+
/* #endif */
|
|
96
|
+
flex-direction: column;
|
|
97
|
+
justify-content: center;
|
|
98
|
+
align-items: center;
|
|
99
|
+
width: 40px;
|
|
100
|
+
height: 40px;
|
|
101
|
+
/* #ifdef H5 */
|
|
102
|
+
cursor: pointer;
|
|
103
|
+
/* #endif */
|
|
104
|
+
}
|
|
105
|
+
|
|
106
|
+
.uni-calendar-item__weeks-box-circle {
|
|
107
|
+
position: absolute;
|
|
108
|
+
top: 5px;
|
|
109
|
+
right: 5px;
|
|
110
|
+
width: 8px;
|
|
111
|
+
height: 8px;
|
|
112
|
+
border-radius: 8px;
|
|
113
|
+
background-color: #dd524d;
|
|
114
|
+
|
|
115
|
+
}
|
|
116
|
+
|
|
117
|
+
.uni-calendar-item__weeks-box .uni-calendar-item--disable {
|
|
118
|
+
// background-color: rgba(249, 249, 249, $uni-opacity-disabled);
|
|
119
|
+
cursor: default;
|
|
120
|
+
}
|
|
121
|
+
|
|
122
|
+
.uni-calendar-item--disable .uni-calendar-item__weeks-box-text-disable {
|
|
123
|
+
color: #D1D1D1;
|
|
124
|
+
}
|
|
125
|
+
|
|
126
|
+
.uni-calendar-item--isDay {
|
|
127
|
+
position: absolute;
|
|
128
|
+
top: 10px;
|
|
129
|
+
right: 17%;
|
|
130
|
+
background-color: #dd524d;
|
|
131
|
+
width:6px;
|
|
132
|
+
height: 6px;
|
|
133
|
+
border-radius: 50%;
|
|
134
|
+
}
|
|
135
|
+
|
|
136
|
+
.uni-calendar-item--extra {
|
|
137
|
+
color: #dd524d;
|
|
138
|
+
opacity: 0.8;
|
|
139
|
+
}
|
|
140
|
+
|
|
141
|
+
.uni-calendar-item__weeks-box .uni-calendar-item--checked {
|
|
142
|
+
background-color: $uni-primary;
|
|
143
|
+
border-radius: 50%;
|
|
144
|
+
box-sizing: border-box;
|
|
145
|
+
border: 3px solid #fff;
|
|
146
|
+
}
|
|
147
|
+
|
|
148
|
+
.uni-calendar-item--checked .uni-calendar-item--checked-text {
|
|
149
|
+
color: #fff;
|
|
150
|
+
}
|
|
151
|
+
|
|
152
|
+
.uni-calendar-item--multiple .uni-calendar-item--checked-range-text {
|
|
153
|
+
color: #333;
|
|
154
|
+
}
|
|
155
|
+
|
|
156
|
+
.uni-calendar-item--multiple {
|
|
157
|
+
background-color: #F6F7FC;
|
|
158
|
+
// color: #fff;
|
|
159
|
+
}
|
|
160
|
+
|
|
161
|
+
.uni-calendar-item--multiple .uni-calendar-item--before-checked,
|
|
162
|
+
.uni-calendar-item--multiple .uni-calendar-item--after-checked {
|
|
163
|
+
background-color: $uni-primary;
|
|
164
|
+
border-radius: 50%;
|
|
165
|
+
box-sizing: border-box;
|
|
166
|
+
border: 3px solid #F6F7FC;
|
|
167
|
+
}
|
|
168
|
+
|
|
169
|
+
.uni-calendar-item--before-checked .uni-calendar-item--checked-text,
|
|
170
|
+
.uni-calendar-item--after-checked .uni-calendar-item--checked-text {
|
|
171
|
+
color: #fff;
|
|
172
|
+
}
|
|
173
|
+
|
|
174
|
+
.uni-calendar-item--before-checked-x {
|
|
175
|
+
border-top-left-radius: 50px;
|
|
176
|
+
border-bottom-left-radius: 50px;
|
|
177
|
+
box-sizing: border-box;
|
|
178
|
+
background-color: #F6F7FC;
|
|
179
|
+
}
|
|
180
|
+
|
|
181
|
+
.uni-calendar-item--after-checked-x {
|
|
182
|
+
border-top-right-radius: 50px;
|
|
183
|
+
border-bottom-right-radius: 50px;
|
|
184
|
+
background-color: #F6F7FC;
|
|
185
|
+
}
|
|
186
|
+
</style>
|