摘要: 父组件 <template> <view class="parent-comm"> <itemcomm :msg="list"></itemcomm> //子组件 :msg="list" 这个是传值给子组件,msg字段可自己取名,但子组件上必须和父组件上的统一。 </view></template> 阅读全文
posted @ 2020-12-24 17:40 山城代码君 阅读(1484) 评论(0) 推荐(0)
摘要: 1、显示红点和内容 uni.setTabBarBadge({ index: 0, //tabBar的哪一项,从左边算起 text: '1' //显示的内容 }) 如下图 2、只显示红点 uni.showTabBarRedDot({ index:1 //tabBar的哪一项,从左边算起}) 如下图 阅读全文
posted @ 2020-12-24 17:18 山城代码君 阅读(295) 评论(0) 推荐(0)