1.在van-dialog组件中添加 before-close 属性,
2.定义该方法
newGroupBefColse(action, done) {
if (action == 'confirm' && !this.newFenzuName.trim()) {
done(false)
} else {
done(true)
}
},
标签:van,vant,action,done,dialog,组件 From: https://www.cnblogs.com/liyunxi/p/17358376.html