
如图所示,当需要实现这样式的纵向选项卡时,可以用uniapp里面的scroll-view可滚动视图区域
<!-- 左侧的滑动区域 -->
<scroll-view class="left-scroll-view" scroll-y="true" :style="{height: wh + 'px'}">
</scroll-view>
<!-- 右侧的滑动区域 -->
<scroll-view class="right-scroll-view" scroll-y="true" style="height: 300px;">
</scroll-view>
<style lang="scss">
.scroll-view-container {
display: flex;
.left-scroll-view {
width: 120px;
.left-scroll-view-item {
background-color: #CCC;
line-height: 60px;
text-align: center;
font-size: 12px;
}
}
}
</style>
最后
以上就是长情羽毛最近收集整理的关于uniapp纵向选项卡实现的全部内容,更多相关uniapp纵向选项卡实现内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复