This commit is contained in:
史典卓
2025-03-28 15:19:42 +08:00
parent ad4eb162a5
commit 0216f6053a
396 changed files with 18278 additions and 9899 deletions

View File

@@ -0,0 +1,26 @@
<!-- components/NoBouncePage.vue -->
<template>
<view class="no-bounce-page">
<scroll-view scroll-y :show-scrollbar="false" class="scroll-area">
<slot />
</scroll-view>
</view>
</template>
<script setup></script>
<style scoped>
.no-bounce-page {
width: 100vw;
height: 100vh;
overflow: hidden;
overscroll-behavior: none; /* 禁止页面级回弹 */
}
.scroll-area {
height: 100%;
overflow-y: auto;
overscroll-behavior: contain; /* 禁止滚动内容回弹 */
-webkit-overflow-scrolling: touch; /* 保留 iOS 惯性滚动 */
}
</style>