@hlw-uni/mp-vue 1.1.12 → 1.1.14

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/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@hlw-uni/mp-vue",
3
- "version": "1.1.12",
3
+ "version": "1.1.14",
4
4
  "description": "hlw-uni Vue 组件库 — 供小程序业务方使用的 UI 组件集合",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -1,7 +1,7 @@
1
1
  <template>
2
2
  <view v-if="visible" class="hlw-sheet-root" :class="{ show: shown }">
3
3
  <view class="hlw-sheet-overlay" @tap="handleMaskTap" />
4
- <view class="hlw-sheet-panel" :style="{ maxHeight }" @tap.stop>
4
+ <view class="hlw-sheet-panel" :style="{ height: maxHeight, maxHeight }" @tap.stop>
5
5
  <view class="hlw-sheet-header">
6
6
  <view v-if="showHandle" class="hlw-sheet-handle" />
7
7
  <text v-if="title" class="hlw-sheet-title">{{ title }}</text>
@@ -10,7 +10,13 @@
10
10
  </view>
11
11
  </view>
12
12
 
13
- <scroll-view class="hlw-sheet-body" scroll-y :show-scrollbar="false">
13
+ <scroll-view
14
+ class="hlw-sheet-body"
15
+ scroll-y
16
+ :enhanced="true"
17
+ :enable-flex="true"
18
+ :show-scrollbar="false"
19
+ >
14
20
  <view class="hlw-sheet-body-inner">
15
21
  <slot />
16
22
  <view v-if="showCta" class="hlw-sheet-cta" @tap="handleCta">
@@ -175,6 +181,7 @@ onBeforeUnmount(() => {
175
181
  border-radius: var(--radius-xl, 32rpx) var(--radius-xl, 32rpx) 0 0;
176
182
  display: flex;
177
183
  flex-direction: column;
184
+ overflow: hidden;
178
185
  transform: translateY(100%);
179
186
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
180
187
  box-shadow: 0 -12rpx 48rpx rgba(15, 23, 42, 0.15);
@@ -227,8 +234,8 @@ onBeforeUnmount(() => {
227
234
  }
228
235
 
229
236
  .hlw-sheet-body {
230
- flex: 1;
231
- height: 0;
237
+ flex: 1 1 auto;
238
+ min-height: 0;
232
239
  width: 100%;
233
240
  }
234
241