import React, { Component } from 'react'; import { Flex, WhiteSpace, NavBar } from 'antd-mobile'; import './index.scss'; class My extends Component { render() { return ( <div className="flex-container"> <Flex> <Flex.Item> <div style={{ backgrond: "#f7f9fc"}}> <NavBar mode="light" onLeftClick={() => console.log('onLeftClick')} rightContent={[ ]} > 我的 </NavBar> </div> </Flex.Item> </Flex> <WhiteSpace size="lg" /> </div> ) } } export default My;