taro学习之AtDrawer样式不起作用

1、在app.jsx 中添加import 'taro-ui/dist/style/index.scss'
2、修改 components下的menu.js 代码
return (
<View>
<View className='topiclist-menu'>
<Image onClick={this.showMenu.bind(this)} className='image' src={require('../../assets/img/cata.png')}/>
<Text>{this.props.currentCata.value}</Text>
<Image className='image' src={require('../../assets/img/login.png')}/>
</View>
<View>
<AtDrawer show={showDrawer} items={items}/>
</View>
</View>)

posted @ 2019-11-26 16:59  墨染江山  阅读(690)  评论(0编辑  收藏  举报