fix: 一个塘口中超过5个设备,就显示不出来,bug修复。
This commit is contained in:
@@ -33,8 +33,8 @@
|
|||||||
</nut-col>
|
</nut-col>
|
||||||
</nut-row>
|
</nut-row>
|
||||||
<nut-row v-if="doList.length > 0" class="pondInfo_home">
|
<nut-row v-if="doList.length > 0" class="pondInfo_home">
|
||||||
<view class="device-tabs-wrapper">
|
<nut-col :span="24">
|
||||||
<scroll-view scroll-x="true" :show-scrollbar="false" :scroll-with-animation="true">
|
<view class="device-tabs-wrapper">
|
||||||
<view class="device-tabs">
|
<view class="device-tabs">
|
||||||
<view
|
<view
|
||||||
v-for="item in doList"
|
v-for="item in doList"
|
||||||
@@ -48,8 +48,8 @@
|
|||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</scroll-view>
|
</view>
|
||||||
</view>
|
</nut-col>
|
||||||
<nut-row v-for="item in doList" :key="item.id">
|
<nut-row v-for="item in doList" :key="item.id">
|
||||||
<nut-col :span="24" v-if="doDev == item.id">
|
<nut-col :span="24" v-if="doDev == item.id">
|
||||||
<view class="view_f_between">
|
<view class="view_f_between">
|
||||||
@@ -1972,31 +1972,24 @@ defineExpose({
|
|||||||
}
|
}
|
||||||
.device-tabs-wrapper {
|
.device-tabs-wrapper {
|
||||||
width: 100%;
|
width: 100%;
|
||||||
white-space: nowrap;
|
padding: 10rpx 0;
|
||||||
overflow-x: auto;
|
|
||||||
-webkit-overflow-scrolling: touch;
|
|
||||||
scrollbar-width: none;
|
|
||||||
-ms-overflow-style: none;
|
|
||||||
&::-webkit-scrollbar {
|
|
||||||
display: none;
|
|
||||||
}
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.device-tabs {
|
.device-tabs {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-wrap: nowrap;
|
flex-wrap: wrap;
|
||||||
padding: 20rpx 0;
|
gap: 20rpx;
|
||||||
|
padding: 10rpx 0;
|
||||||
}
|
}
|
||||||
.custom-tab-item {
|
.custom-tab-item {
|
||||||
padding: 10rpx 20rpx;
|
padding: 10rpx 20rpx;
|
||||||
margin-right: 10rpx;
|
|
||||||
background-color: #f5f6f7;
|
background-color: #f5f6f7;
|
||||||
border-radius: 8rpx;
|
border-radius: 8rpx;
|
||||||
transition: all 0.3s ease;
|
transition: all 0.3s ease;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
|
flex-shrink: 0;
|
||||||
&:last-child {
|
min-width: 120rpx;
|
||||||
margin-right: 0;
|
text-align: center;
|
||||||
}
|
|
||||||
|
|
||||||
&.tab-active {
|
&.tab-active {
|
||||||
background-color: #ffffff;
|
background-color: #ffffff;
|
||||||
|
|||||||
Reference in New Issue
Block a user