微信小程序使用weui
时间:2023-7-11 15:44 作者:小诸葛 分类: 微信小程序 正在检查是否收录...
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>
推荐阅读:
扫描二维码,在手机上阅读