mali-applet-ui 0.0.69 → 0.0.71
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.
|
@@ -69,11 +69,11 @@ export default {
|
|
|
69
69
|
}
|
|
70
70
|
}
|
|
71
71
|
&:not(.is-vertical) {
|
|
72
|
-
border-
|
|
72
|
+
border-bottom: 1px solid #e5e5e5;
|
|
73
73
|
}
|
|
74
74
|
&.is-vertical {
|
|
75
75
|
flex-direction: row;
|
|
76
|
-
border-bottom: 1px solid
|
|
76
|
+
border-bottom: 1px solid #e5e5e5;
|
|
77
77
|
}
|
|
78
78
|
&:last-child {
|
|
79
79
|
border: 0;
|
|
@@ -8,7 +8,7 @@
|
|
|
8
8
|
<text class="ml-list-menu-group-title-content">{{ title }}</text>
|
|
9
9
|
</slot>
|
|
10
10
|
</view>
|
|
11
|
-
<view class="ml-list-menu-group-content">
|
|
11
|
+
<view class="ml-list-menu-group-content" :style="contentStyle">
|
|
12
12
|
<slot></slot>
|
|
13
13
|
</view>
|
|
14
14
|
</view>
|
|
@@ -20,18 +20,27 @@ export default {
|
|
|
20
20
|
props: {
|
|
21
21
|
title: String,
|
|
22
22
|
prefixIcon: String,
|
|
23
|
+
height: String,
|
|
23
24
|
className: String
|
|
25
|
+
},
|
|
26
|
+
computed: {
|
|
27
|
+
contentStyle () {
|
|
28
|
+
return this.height ? `height: ${this.height};` : ''
|
|
29
|
+
}
|
|
24
30
|
}
|
|
25
31
|
}
|
|
26
32
|
</script>
|
|
27
33
|
|
|
28
34
|
<style lang="scss">
|
|
29
35
|
.ml-list-menu-group {
|
|
36
|
+
display: flex;
|
|
37
|
+
flex-direction: column;
|
|
30
38
|
margin: 20rpx 0;
|
|
31
39
|
background: #ffffff;
|
|
32
40
|
.ml-list-menu-group-title {
|
|
33
41
|
display: flex;
|
|
34
42
|
flex-direction: row;
|
|
43
|
+
flex-shrink: 0;
|
|
35
44
|
align-items: center;
|
|
36
45
|
height: 70rpx;
|
|
37
46
|
}
|
|
@@ -43,6 +52,8 @@ export default {
|
|
|
43
52
|
.ml-list-menu-group-content {
|
|
44
53
|
display: flex;
|
|
45
54
|
flex-direction: column;
|
|
55
|
+
overflow-y: auto;
|
|
56
|
+
overflow-x: hidden;
|
|
46
57
|
}
|
|
47
58
|
}
|
|
48
59
|
</style>
|
package/modal/toast.js
CHANGED
|
@@ -5,7 +5,7 @@ const MaliToast = {
|
|
|
5
5
|
title: option.content || '操作成功',
|
|
6
6
|
icon: 'success',
|
|
7
7
|
success () {
|
|
8
|
-
setTimeout(resolve,
|
|
8
|
+
setTimeout(resolve, 2000)
|
|
9
9
|
}
|
|
10
10
|
})
|
|
11
11
|
})
|
|
@@ -16,7 +16,7 @@ const MaliToast = {
|
|
|
16
16
|
title: option.content || '操作失败',
|
|
17
17
|
icon: 'error',
|
|
18
18
|
success () {
|
|
19
|
-
setTimeout(resolve,
|
|
19
|
+
setTimeout(resolve, 2000)
|
|
20
20
|
}
|
|
21
21
|
})
|
|
22
22
|
})
|
|
@@ -25,7 +25,7 @@ const MaliToast = {
|
|
|
25
25
|
return new Promise(resolve => {
|
|
26
26
|
uni.hideToast({
|
|
27
27
|
success () {
|
|
28
|
-
setTimeout(resolve,
|
|
28
|
+
setTimeout(resolve, 2000)
|
|
29
29
|
}
|
|
30
30
|
})
|
|
31
31
|
})
|