@hlw-uni/mp-vue 1.1.13 → 1.1.15

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.13",
3
+ "version": "1.1.15",
4
4
  "description": "hlw-uni Vue 组件库 — 供小程序业务方使用的 UI 组件集合",
5
5
  "main": "dist/index.js",
6
6
  "module": "dist/index.mjs",
@@ -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="showScrollbar"
19
+ >
14
20
  <view class="hlw-sheet-body-inner">
15
21
  <slot />
16
22
  <view v-if="showCta" class="hlw-sheet-cta" @tap="handleCta">
@@ -67,6 +73,8 @@ interface Props {
67
73
  showCta?: boolean;
68
74
  ctaText?: string;
69
75
  maxHeight?: string;
76
+ /** 是否显示滚动条(仅在 enhanced=true 时生效),默认 true */
77
+ showScrollbar?: boolean;
70
78
  }
71
79
 
72
80
  const props = withDefaults(defineProps<Props>(), {
@@ -78,6 +86,7 @@ const props = withDefaults(defineProps<Props>(), {
78
86
  showCta: false,
79
87
  ctaText: "确定",
80
88
  maxHeight: "85vh",
89
+ showScrollbar: true,
81
90
  });
82
91
 
83
92
  const emit = defineEmits<{