import request from '@/helpers/request'
import { Cell, CellGroup, Image } from 'vant'
import { defineComponent } from 'vue'
import styles from './index.module.less'

export default defineComponent({
  name: 'info-list',
  setup() {
    const init = async () => {
      try {
        const res = await request.post('/api-cms/news/page', {
          data: {}
        })
      } catch {
        //
      }
    }
    return () => (
      <>
        <CellGroup inset class={styles.cellGroup}>
          <Cell valueClass={styles.valueContent}>
            {{
              icon: () => <Image src="" class={styles.infoImg} />,
              value: () => (
                <>
                  <h2 class={'van-multi-ellipsis--l2'}>
                    当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌当偌
                  </h2>
                  <p>10:36:49</p>
                </>
              )
            }}
          </Cell>
        </CellGroup>
      </>
    )
  }
})
