Fix:2457 【商城小程序】圣地分类改为左右滑动,不要换行

This commit is contained in:
modendeveloper
2024-10-10 19:32:00 +08:00
parent eff9db385a
commit 1aab9ee691
+9 -3
View File
@@ -29,9 +29,9 @@
</view> </view>
</swiper-item> </swiper-item>
</swiper> </swiper>
<view class="v12-justify-between v12-align-center v12-px-3 v12-mt-3"> <view class="v12-justify-between v12-align-center v12-px-3 v12-mt-3 tabs-wrap">
<view <view
class="tab v12-font-bold v12-font-34 v12-dark-text " class="tab v12-font-bold v12-font-34 v12-dark-text v12-mr-3"
v-for="(tab, index) in tabs" v-for="(tab, index) in tabs"
@click="handleTab(index,tab)" @click="handleTab(index,tab)"
:key="index"> :key="index">
@@ -151,7 +151,13 @@ export default {
} }
</script> </script>
<style lang="less" scoped> <style lang="less" scoped>
.tabs-wrap{
white-space: nowrap;
overflow: scroll;
.tab:last-child{
margin-right: 0 !important;
}
}
.map-icon{ .map-icon{
width: 28rpx; width: 28rpx;
height: 28rpx; height: 28rpx;