index.js 732 Bytes
Newer Older
1 2
import React from 'react';
import './index.scss'
xuzhenghua committed
3
import {Link} from 'react-router-dom'
4 5 6

const VList = (props) => {
    return (
xuzhenghua committed
7
        <li className='v-list-item'>
8
            <div className="content">
xuzhenghua committed
9
                <div className="cover">
xuzhenghua committed
10
                    {props.status}
11
                   {/* <Link to={`/detail?id=${props.id}`}> */}
FE committed
12 13 14 15
                   {props.toDetail
                        ?(<img src={props.img} alt="" onClick={() => props.toDetail(props.id)} />)
                        :(<img src={props.img} alt="" />)
                    }
16
                   {/* </Link> */}
17 18 19
                </div>
                {props.info}
            </div>
.  
baiguangyao committed
20
            {props.tab}
21 22 23 24 25
        </li>
    );
};

export default VList;