微语:代码适合中午敲,早晚出BUG
微信小程序使用weui 微信小程序
1.app.json
"useExtendedLib": {
"kbone": true,
"weui": true
}
2.在页面的index.json中引入
"usingComponents": {
"mp-dialog": "weui-miniprogram/dialog/dialog"
},
3.使用
<mp-dialog title="这是一个弹窗" show="{{true}}" bindbuttontap="tapDialogButton" buttons="{{buttons}}">
<view>这里是内容</view>
</mp-dialog>