import {Image, Cell} from '@nutui/nutui-react-taro'
import Taro from '@tarojs/taro'

const ArticleList = (props: any) => {

  return (
    <>
      <div className={'px-3'}>
        {props.data.map((item, index) => {
          return (
            <Cell
              title={item.title}
              extra={
                <Image src={item.image} mode={'aspectFit'} lazyLoad={false} width={100} height="100"/>
              }
              key={index}
              onClick={() => Taro.navigateTo({url: '/cms/detail/index?id=' + item.articleId})}
            />
          )
        })}
      </div>
    </>
  )
}
export default ArticleList
