Skip to content

Commit

Permalink
fix(Tabbar): 底栏样式调整
Browse files Browse the repository at this point in the history
  • Loading branch information
yulimchen committed Apr 20, 2023
1 parent 8795d91 commit fedb12d
Showing 1 changed file with 1 addition and 18 deletions.
19 changes: 1 addition & 18 deletions src/components/Tabbar/index.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,5 @@
<template>
<van-tabbar
class="tabbar"
v-model="active"
:placeholder="true"
:route="true"
fixed
>
<van-tabbar v-model="active" :placeholder="true" :route="true" fixed>
<van-tabbar-item
v-for="(item, index) in tabbarData"
:key="index"
Expand Down Expand Up @@ -45,14 +39,3 @@ const tabbarData = reactive([
}
]);
</script>

<style scoped>
.tabbar {
position: fixed;
bottom: 0;
left: 0;
width: 100%;
/* 形成包含块,使得 fixed 定位的子元素 tabbar 的百分百宽度能够基于这个元素 */
transform: rotate(0);
}
</style>

0 comments on commit fedb12d

Please sign in to comment.