@hlw-uni/mp-vue 1.1.12 → 1.1.13

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.13",
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>
@@ -175,6 +175,7 @@ onBeforeUnmount(() => {
175
175
  border-radius: var(--radius-xl, 32rpx) var(--radius-xl, 32rpx) 0 0;
176
176
  display: flex;
177
177
  flex-direction: column;
178
+ overflow: hidden;
178
179
  transform: translateY(100%);
179
180
  transition: transform 0.3s cubic-bezier(0.25, 0.8, 0.25, 1);
180
181
  box-shadow: 0 -12rpx 48rpx rgba(15, 23, 42, 0.15);
@@ -227,8 +228,8 @@ onBeforeUnmount(() => {
227
228
  }
228
229
 
229
230
  .hlw-sheet-body {
230
- flex: 1;
231
- height: 0;
231
+ flex: 1 1 auto;
232
+ min-height: 0;
232
233
  width: 100%;
233
234
  }
234
235