话不多说,直接上货!
- App.vue 增加如下样式可以去除 scroll-view 组件的滚动条(不支持nvue页面)
::-webkit-scrollbar {
display: none;
width: 0 !important;
height: 0 !important;
-webkit-appearance: none;
background: transparent;
}
- 在pages.json 设置一下属性
scrollIndicator 滚动条显示策略,设置为 "none" 时不显示滚动条。 App-vue
{
"path": "pages/user/loginIndex", //app登录首页
"style": {
"navigationStyle": "custom",
"app-plus": {
//app页面不显示滚动条
"scrollIndicator": "none"
}
}
},