mali-applet-ui 0.1.30 → 0.1.32
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/components/ml-button/ml-button.vue +3 -3
- package/components/ml-col/ml-col.vue +2 -2
- package/components/ml-popup/ml-popup.vue +7 -3
- package/components/ml-tabbar/ml-tabbar.vue +6 -0
- package/components/ml-table/ml-table.vue +1 -0
- package/components/ml-tabs/ml-tabs.vue +1 -0
- package/package.json +1 -1
|
@@ -135,15 +135,15 @@ export default {
|
|
|
135
135
|
&.is-round {
|
|
136
136
|
border-radius: 50rpx;
|
|
137
137
|
&.size-medium {
|
|
138
|
-
padding: 0
|
|
138
|
+
padding: 0 50rpx;
|
|
139
139
|
border-radius: 60rpx;
|
|
140
140
|
}
|
|
141
141
|
&.size-small {
|
|
142
|
-
padding: 0
|
|
142
|
+
padding: 0 40rpx;
|
|
143
143
|
border-radius: 40rpx;
|
|
144
144
|
}
|
|
145
145
|
&.size-mini {
|
|
146
|
-
padding: 0
|
|
146
|
+
padding: 0 30rpx;
|
|
147
147
|
border-radius: 30rpx;
|
|
148
148
|
}
|
|
149
149
|
}
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
<template>
|
|
2
2
|
<view
|
|
3
3
|
class="ml-col"
|
|
4
|
-
:class="[className || '', span && !width ? `span-${span}` : '', align ? `align-${align}` : '',
|
|
4
|
+
:class="[className || '', span && !width ? `span-${span}` : '', align ? `align-${align}` : '', verticalAlign ? `vertical-${verticalAlign}` : '', {'is-light': light, 'is-flex': verticalAlign || flex, 'is-fixed': width || shrink, 'is-important': important}]"
|
|
5
5
|
:style="styles"
|
|
6
6
|
@click="clickEvent">
|
|
7
7
|
<slot></slot>
|
|
@@ -21,7 +21,7 @@ export default {
|
|
|
21
21
|
flex: Boolean,
|
|
22
22
|
shrink: Boolean,
|
|
23
23
|
align: String,
|
|
24
|
-
|
|
24
|
+
verticalAlign: String,
|
|
25
25
|
width: String,
|
|
26
26
|
className: String
|
|
27
27
|
},
|
|
@@ -90,7 +90,7 @@ export default {
|
|
|
90
90
|
this.animateTime = setTimeout(() => {
|
|
91
91
|
this.visible = false
|
|
92
92
|
this.$emit('input', false)
|
|
93
|
-
this.$emit('
|
|
93
|
+
this.$emit('hide', {})
|
|
94
94
|
}, 300)
|
|
95
95
|
},
|
|
96
96
|
open () {
|
|
@@ -99,7 +99,7 @@ export default {
|
|
|
99
99
|
this.visible = true
|
|
100
100
|
this.animateTime = setTimeout(() => {
|
|
101
101
|
this.isAnimate = true
|
|
102
|
-
this.$emit('
|
|
102
|
+
this.$emit('show', {})
|
|
103
103
|
}, 20)
|
|
104
104
|
this.$emit('input', true)
|
|
105
105
|
},
|
|
@@ -130,10 +130,14 @@ export default {
|
|
|
130
130
|
position: fixed;
|
|
131
131
|
top: 0;
|
|
132
132
|
left: 0;
|
|
133
|
-
width:
|
|
133
|
+
width: $page-full-width;
|
|
134
134
|
height: 100vh;
|
|
135
135
|
z-index: 999;
|
|
136
136
|
background-color: rgba(0, 0, 0, 0.4);
|
|
137
|
+
// #ifdef H5
|
|
138
|
+
left: 50%;
|
|
139
|
+
transform: translateX(-50%);
|
|
140
|
+
// #endif
|
|
137
141
|
&.is-visible {
|
|
138
142
|
display: block;
|
|
139
143
|
}
|
|
@@ -72,6 +72,10 @@ export default {
|
|
|
72
72
|
color: $uni-text-color;
|
|
73
73
|
background: #FFFFFF;
|
|
74
74
|
border-top: 1px solid #e5e5e5;
|
|
75
|
+
// #ifdef H5
|
|
76
|
+
left: 50%;
|
|
77
|
+
transform: translateX(-50%);
|
|
78
|
+
// #endif
|
|
75
79
|
.ml-tabbar-item {
|
|
76
80
|
flex-grow: 1;
|
|
77
81
|
text-align: center;
|
|
@@ -95,10 +99,12 @@ export default {
|
|
|
95
99
|
line-height: 32rpx;
|
|
96
100
|
}
|
|
97
101
|
.ml-tabbar-icon {
|
|
102
|
+
display: block;
|
|
98
103
|
position: relative;
|
|
99
104
|
font-size: 40rpx;
|
|
100
105
|
}
|
|
101
106
|
.ml-tabbar-name {
|
|
107
|
+
display: block;
|
|
102
108
|
width: 100%;
|
|
103
109
|
text-align: center;
|
|
104
110
|
font-size: 24rpx;
|