index.tsx 1.1 KB

1234567891011121314151617181920212223242526272829303132333435363738
  1. import request from '@/helpers/request'
  2. import { Cell, CellGroup, Image } from 'vant'
  3. import { defineComponent } from 'vue'
  4. import styles from './index.module.less'
  5. export default defineComponent({
  6. name: 'info-list',
  7. setup() {
  8. const init = async () => {
  9. try {
  10. const res = await request.post('/api-cms/news/page', {
  11. data: {}
  12. })
  13. } catch {
  14. //
  15. }
  16. }
  17. return () => (
  18. <>
  19. <CellGroup inset class={styles.cellGroup}>
  20. <Cell valueClass={styles.valueContent}>
  21. {{
  22. icon: () => <Image src="" class={styles.infoImg} />,
  23. value: () => (
  24. <>
  25. <h2 class={'van-multi-ellipsis--l2'}>
  26. 当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌
  27. </h2>
  28. <p>10:36:49</p>
  29. </>
  30. )
  31. }}
  32. </Cell>
  33. </CellGroup>
  34. </>
  35. )
  36. }
  37. })