index.js 703 Bytes
Newer Older
1 2 3 4 5
import React from 'react';
import './index.scss'

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

export default VList;