feat: 搭建了tabs样式
This commit is contained in:
@@ -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>
|
||||
Reference in New Issue
Block a user