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.
@@ -145,7 +145,7 @@ export default {
145
145
  display: flex;
146
146
  flex-direction: row;
147
147
  align-items: center;
148
- padding: 0 20rpx;
148
+ padding: 0 10rpx;
149
149
  height: 70rpx;
150
150
  border-radius: $ml-border-radius;
151
151
  &.is-border {
@@ -88,5 +88,7 @@ export default {
88
88
  <style lang="scss">
89
89
  .ml-tab-pane {
90
90
  display: block;
91
+ flex-grow: 1;
92
+ overflow: auto;
91
93
  }
92
94
  </style>
@@ -11,9 +11,7 @@
11
11
  </scroll-view>
12
12
  </view>
13
13
  <view class="ml-tabs-content">
14
- <scroll-view scroll-y>
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: block;
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
- border-bottom: 2px solid $uni-color-primary;
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
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "mali-applet-ui",
3
- "version": "0.2.15",
3
+ "version": "0.2.17",
4
4
  "description": "码里云小程序组件库",
5
5
  "scripts": {
6
6
  "release": "node script/release.js && npm publish"