navigation.vue 542 B

12345678910111213141516171819
  1. <template>
  2. <Index v-show="value==0"/>
  3. <User v-show="value==1"/>
  4. <uv-tabbar :border="false" :value="value" @change="index=>value = index">
  5. <uv-tabbar-item @click="value==0" text="首页" icon="home" iconSize="30"></uv-tabbar-item>
  6. <uv-tabbar-item @click="value==1" text="我的" icon="account" iconSize="30"></uv-tabbar-item>
  7. </uv-tabbar>
  8. </template>
  9. <script setup>
  10. import {ref} from 'vue'
  11. import Index from '@/pages/teacher/index.vue'
  12. import User from '@/pages/user/index.vue'
  13. const value=ref(0)
  14. </script>
  15. <style>
  16. </style>