index_20190419112414.js 2.06 KB
Newer Older
.  
baiguangyao committed
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55
import React, { Component } from 'react';
import { Flex, WhiteSpace, NavBar, List } from 'antd-mobile';
import './index.scss';

const Item = List.Item;
const Brief = Item.Brief;

class My extends Component {

    render() {
        return (
            <div className="flex-container">
                <Flex>
                    <Flex.Item>
                        <NavBar
                            className="my-tab"
                            mode="light"
                            onLeftClick={() => console.log('onLeftClick')}
                            rightContent={[
                            ]}
                        >
                            我的
                        </NavBar>

                            <List renderHeader={() => 'Subtitle'} className="my-list">
                                <Item arrow="horizontal" multipleLine onClick={() => { }}>
                                    Title <Brief>subtitle</Brief>
                                </Item>
                                <Item
                                    arrow="horizontal"
                                    multipleLine
                                    onClick={() => { }}
                                    platform="android"
                                >
                                    ListItem Android<Brief>There may have water ripple effect of <br /> material if you set the click event.</Brief>
                                </Item>
                                <Item
                                    arrow="horizontal"
                                    thumb="https://zos.alipayobjects.com/rmsportal/dNuvNrtqUztHCwM.png"
                                    multipleLine
                                    onClick={() => { }}
                                >
                                    Title <Brief>subtitle</Brief>
                                </Item>
                            </List>
                    </Flex.Item>
                </Flex>
                <WhiteSpace size="lg" />
            </div>
        )
    }

}

export default My;