import { View, Text, Icon, ScrollView } from '@tarojs/components' import './Timeline.scss' import { TimelineType } from '@/utils/types' import { IconRadio, IconRadioCheck, IconRadioCross } from '../basic/Icons' export default function Component(props: { items: any[], title?: string, type?: TimelineType, showLastLine?: boolean }) { return { props.title && {props.title} } { props.items.map((item, index) => ( { item.status == 'padding' && } { item.status == 'done' && } { item.status == 'un_done' && } {item.title} {item.content} { item.date && {item.date} } { index !== props.items.length - 1 && } { index == props.items.length - 1 && props.showLastLine && } {/* {index !== props.items.length - 1 && } { index == props.items.length - 1 && props.showLastLine && } */} )) } }