Selaa lähdekoodia

feat(tabbar): 调整tabbar样式

feige996 8 kuukautta sitten
vanhempi
commit
9804a61a83
2 muutettua tiedostoa jossa 2 lisäystä ja 2 poistoa
  1. 1 1
      src/pages.json
  2. 1 1
      src/tabbar/index.vue

+ 1 - 1
src/pages.json

@@ -15,7 +15,7 @@
     }
   },
   "tabBar": {
-    "custom": false,
+    "custom": true,
     "color": "#999999",
     "selectedColor": "#018d71",
     "backgroundColor": "#F8F8F8",

+ 1 - 1
src/tabbar/index.vue

@@ -89,7 +89,7 @@ function getImageByIndex(index: number, item: { iconActive?: string, icon: strin
               <image class="mt-6rpx h-200rpx w-200rpx" src="/static/tabbar/scan.png" />
             </view>
           </view>
-          <view v-else class="relative px-3">
+          <view v-else class="relative px-3 text-center">
             <template v-if="item.iconType === 'uniUi'">
               <uni-icons :type="item.icon" size="20" :color="getColorByIndex(index)" />
             </template>