feat: tab的调整
This commit is contained in:
@@ -13,7 +13,9 @@
|
|||||||
class="tab-image"
|
class="tab-image"
|
||||||
mode="scaleToFill"
|
mode="scaleToFill"
|
||||||
/>
|
/>
|
||||||
<text class="tab-text">探索发现</text>
|
<view class="tab-label">
|
||||||
|
<text class="tab-text">探索发现</text>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|
||||||
@@ -29,11 +31,13 @@
|
|||||||
class="tab-image"
|
class="tab-image"
|
||||||
mode="scaleToFill"
|
mode="scaleToFill"
|
||||||
/>
|
/>
|
||||||
<text class="tab-text">AI伴游</text>
|
<view class="tab-label">
|
||||||
<view
|
<text class="tab-text">AI伴游</text>
|
||||||
v-if="showDot"
|
<view
|
||||||
:class="['status-dot', modelValue === 1 ? 'status-dot--active' : 'status-dot--inactive']"
|
v-if="showDot"
|
||||||
></view>
|
:class="['status-dot', modelValue === 1 ? 'status-dot--active' : 'status-dot--inactive']"
|
||||||
|
></view>
|
||||||
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
</view>
|
</view>
|
||||||
|
|||||||
@@ -39,7 +39,6 @@
|
|||||||
font-size: 18px;
|
font-size: 18px;
|
||||||
font-weight: 500;
|
font-weight: 500;
|
||||||
color: rgba(255, 255, 255, 0.65);
|
color: rgba(255, 255, 255, 0.65);
|
||||||
z-index: 20;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
.tab-image {
|
.tab-image {
|
||||||
@@ -55,6 +54,14 @@
|
|||||||
z-index: 5;
|
z-index: 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.tab-label {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: center;
|
||||||
|
position: relative;
|
||||||
|
z-index: 20;
|
||||||
|
}
|
||||||
|
|
||||||
.tab-item.active .tab-text {
|
.tab-item.active .tab-text {
|
||||||
color: #2e312f;
|
color: #2e312f;
|
||||||
font-weight: bold;
|
font-weight: bold;
|
||||||
@@ -64,10 +71,18 @@
|
|||||||
margin-right: -24px;
|
margin-right: -24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.is-left .tab-label {
|
||||||
|
transform: translateX(-20px);
|
||||||
|
}
|
||||||
|
|
||||||
.is-right {
|
.is-right {
|
||||||
margin-left: -24px;
|
margin-left: -24px;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
.is-right .tab-label {
|
||||||
|
transform: translateX(20px);
|
||||||
|
}
|
||||||
|
|
||||||
.status-dot {
|
.status-dot {
|
||||||
display: inline-block;
|
display: inline-block;
|
||||||
margin-left: 6px;
|
margin-left: 6px;
|
||||||
|
|||||||
Reference in New Issue
Block a user