index.tsx 782 B

123456789101112131415161718192021222324252627282930313233343536
  1. import { defineComponent } from 'vue'
  2. import { NoticeBar } from 'vant'
  3. import styles from './index.module.less'
  4. import state, { IPlatform } from "/src/state";
  5. import MusicIcon from '../image/music.png'
  6. import ArrowIcon from '../image/arrow.svg'
  7. export default defineComponent({
  8. name: 'detail-title',
  9. props: {
  10. text: {
  11. type: String,
  12. default: ''
  13. },
  14. rightView: {
  15. type: Boolean,
  16. default: true,
  17. },
  18. onClick: {
  19. type: Function,
  20. } as any
  21. },
  22. render() {
  23. return (
  24. <div class={[styles.container, state.platform === IPlatform.PC && styles.pcContainer]}>
  25. <NoticeBar
  26. text={this.text}
  27. color="#000"
  28. class={styles.noticeBar}
  29. background="none"
  30. />
  31. </div>
  32. )
  33. }
  34. })