mali-applet-ui 0.2.15 → 0.2.17
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.
|
@@ -11,9 +11,7 @@
|
|
|
11
11
|
</scroll-view>
|
|
12
12
|
</view>
|
|
13
13
|
<view class="ml-tabs-content">
|
|
14
|
-
<
|
|
15
|
-
<slot></slot>
|
|
16
|
-
</scroll-view>
|
|
14
|
+
<slot></slot>
|
|
17
15
|
</view>
|
|
18
16
|
</view>
|
|
19
17
|
</template>
|
|
@@ -57,9 +55,11 @@ export default {
|
|
|
57
55
|
|
|
58
56
|
<style lang="scss">
|
|
59
57
|
.ml-tabs {
|
|
60
|
-
display:
|
|
58
|
+
display: flex;
|
|
59
|
+
flex-direction: column;
|
|
61
60
|
font-size: $uni-font-size-base;
|
|
62
61
|
.ml-tabs-navs {
|
|
62
|
+
flex-shrink: 0;
|
|
63
63
|
white-space: nowrap;
|
|
64
64
|
&.is-left {
|
|
65
65
|
text-align: left;
|
|
@@ -75,18 +75,36 @@ export default {
|
|
|
75
75
|
background: #fff;
|
|
76
76
|
margin-bottom: 20rpx;
|
|
77
77
|
}
|
|
78
|
+
.ml-tabs-content {
|
|
79
|
+
display: flex;
|
|
80
|
+
flex-direction: column;
|
|
81
|
+
flex-grow: 1;
|
|
82
|
+
overflow: auto;
|
|
83
|
+
}
|
|
78
84
|
.ml-tabs-nav-item {
|
|
79
85
|
position: relative;
|
|
80
86
|
display: inline-block;
|
|
81
87
|
padding: 10rpx 20rpx 0 20rpx;
|
|
82
88
|
text-align: center;
|
|
83
89
|
.ml-tabs-nav-title {
|
|
90
|
+
position: relative;
|
|
84
91
|
padding: 10rpx 20rpx;
|
|
85
92
|
}
|
|
86
93
|
&.is-active {
|
|
87
94
|
.ml-tabs-nav-title {
|
|
88
95
|
color: $uni-color-primary;
|
|
89
|
-
|
|
96
|
+
&::before {
|
|
97
|
+
content: "";
|
|
98
|
+
position: absolute;
|
|
99
|
+
bottom: 0;
|
|
100
|
+
left: 50%;
|
|
101
|
+
transform: translateX(-50%);
|
|
102
|
+
width: 100%;
|
|
103
|
+
min-width: 40rpx;
|
|
104
|
+
max-width: 60rpx;
|
|
105
|
+
height: 5rpx;
|
|
106
|
+
background: $uni-color-primary;
|
|
107
|
+
}
|
|
90
108
|
}
|
|
91
109
|
}
|
|
92
110
|
}
|