摘要:
1、父组件传递给子组件值,首先在components 中新建一个testComponents子组件,代码如下: testComponents.wxml <view> <text>{{value}}</text> </view> testComponents.js Component({ /** * 阅读全文
posted @ 2021-04-15 21:55
凌晨的粥
阅读(1176)
评论(0)
推荐(0)
摘要:
1、首先我们来创建弹窗的子组件,在components下面创建popup,代码如下: popup.wxml <view class="wx-popup" hidden="{{flag}}"> <view class='popup-container'> <view class="wx-popup-t 阅读全文
posted @ 2021-04-15 15:53
凌晨的粥
阅读(462)
评论(0)
推荐(0)