orchestra-detail.tsx 1.1 KB

1234567891011121314151617181920212223242526272829303132
  1. import OHeader from '@/components/o-header'
  2. import OSticky from '@/components/o-sticky'
  3. import { Sticky, Tab, Tabs } from 'vant'
  4. import { defineComponent, ref } from 'vue'
  5. import Information from './compontent/information'
  6. import Phone from './compontent/phone'
  7. import Plan from './compontent/plan'
  8. import styles from './orchestra-detail.module.less'
  9. export default defineComponent({
  10. name: 'orchestra-detail',
  11. setup() {
  12. const tabValue = ref('information')
  13. return () => (
  14. <div class={styles.orchestraDetail}>
  15. <OSticky position="top">
  16. <OHeader />
  17. <Tabs sticky lineWidth={20} lineHeight={4} v-model:active={tabValue.value}>
  18. <Tab title="乐团信息" name="information"></Tab>
  19. <Tab title="训练进度" name="plan"></Tab>
  20. <Tab title="训练照片" name="phone"></Tab>
  21. {/* <Tab title="乐团资讯" name="info"></Tab> */}
  22. </Tabs>
  23. </OSticky>
  24. {tabValue.value === 'information' && <Information />}
  25. {tabValue.value === 'plan' && <Plan />}
  26. {tabValue.value === 'phone' && <Phone />}
  27. </div>
  28. )
  29. }
  30. })