index.tsx 881 B

1234567891011121314151617181920212223242526272829303132
  1. import { defineComponent, ref } from 'vue'
  2. import { Popup, Tabs, Tab } from 'vant'
  3. import styles from './index.module.less'
  4. export const show = ref(false)
  5. export default defineComponent({
  6. name: 'HelperPopup',
  7. setup() {
  8. return () => {
  9. return (
  10. <Popup
  11. show={show.value}
  12. position="right"
  13. round
  14. teleport="body"
  15. onClickOverlay={() => (show.value = false)}
  16. style={{ height: '100vh', width: '40vw', overflow: 'hidden' }}
  17. >
  18. <Tabs class={styles.tabs}>
  19. <Tab title="投屏">
  20. <iframe src={location.origin + '/orchestra-student/#/guide'} />
  21. </Tab>
  22. <Tab title="帮助">
  23. <iframe src={location.origin + '/orchestra-student/#/help-center?source=music'} />
  24. </Tab>
  25. </Tabs>
  26. </Popup>
  27. )
  28. }
  29. },
  30. })