index.vue 551 B

12345678910111213141516171819202122232425262728293031323334
  1. <template>
  2. <view class="containerx">
  3. <!-- <u-tabbar v-model="tabbarCurrent" :list="tabbarList" :mid-button="true"></u-tabbar> -->
  4. <u-button type="primary">主要按钮</u-button>
  5. </view>
  6. </template>
  7. <script setup>
  8. import { ref } from 'vue'
  9. import { onLoad } from '@dcloudio/uni-app'
  10. const tabbarCurrent = ref(0)
  11. const tabbarList = ref([
  12. {
  13. text: '首页',
  14. },
  15. {
  16. text: '消息',
  17. },
  18. {
  19. text: '我的',
  20. }
  21. ])
  22. onLoad(() => {
  23. console.log('onLoad')
  24. })
  25. </script>
  26. <style lang="scss" scoped>
  27. .containerx {
  28. }
  29. </style>