diff --git a/src/components/AiTabSwitch/index.vue b/src/components/AiTabSwitch/index.vue
index 58b7d19..8514c45 100644
--- a/src/components/AiTabSwitch/index.vue
+++ b/src/components/AiTabSwitch/index.vue
@@ -13,7 +13,9 @@
class="tab-image"
mode="scaleToFill"
/>
- 探索发现
+
+ 探索发现
+
@@ -29,11 +31,13 @@
class="tab-image"
mode="scaleToFill"
/>
- AI伴游
-
+
+ AI伴游
+
+
diff --git a/src/components/AiTabSwitch/styles/index.scss b/src/components/AiTabSwitch/styles/index.scss
index 6455e0c..6b1b96d 100644
--- a/src/components/AiTabSwitch/styles/index.scss
+++ b/src/components/AiTabSwitch/styles/index.scss
@@ -39,7 +39,6 @@
font-size: 18px;
font-weight: 500;
color: rgba(255, 255, 255, 0.65);
- z-index: 20;
}
.tab-image {
@@ -55,6 +54,14 @@
z-index: 5;
}
+.tab-label {
+ display: flex;
+ align-items: center;
+ justify-content: center;
+ position: relative;
+ z-index: 20;
+}
+
.tab-item.active .tab-text {
color: #2e312f;
font-weight: bold;
@@ -64,10 +71,18 @@
margin-right: -24px;
}
+.is-left .tab-label {
+ transform: translateX(-20px);
+}
+
.is-right {
margin-left: -24px;
}
+.is-right .tab-label {
+ transform: translateX(20px);
+}
+
.status-dot {
display: inline-block;
margin-left: 6px;