微信小程序-modal弹窗组件

官方文档如下:

modal的属性:

hidden="{{hidden}}" 
title="题目"
confirm-text="自定义确定按钮"
cancel-text="自定义取消按钮"
bindcancel="cancel"
bindconfirm="confirm"
no-cancel="{{nocancel}}"
通过改变hidden的值(true/false)来实现弹窗的出现和隐藏。

猜你喜欢

转载自www.cnblogs.com/cff2121/p/9753499.html