index.tsx 782 B

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