feat: 搭建了tabs样式

This commit is contained in:
2026-04-27 15:40:01 +08:00
parent b41ca9c4a2
commit d54ff8895e
3 changed files with 132 additions and 1 deletions

View File

@@ -1,5 +1,6 @@
<template>
<view> 探索发现
<view>
<FindTabs v-model="activeIndex" @change="handleTabChange" />
</view>
@@ -7,5 +8,13 @@
</template>
<script setup>
import { ref } from "vue";
import FindTabs from "./components/FindTabs.vue";
const activeIndex = ref(0);
const handleTabChange = (index) => {
activeIndex.value = index;
};
</script>