
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>分享经验
发表评论
读者交流
0
还没有评论,欢迎留下第一条讨论。