vux弹框显示


//点击按钮,执行什么成功,失败用这个合适
this.$vux.toast.show({
text: '添加成功'
})
//点击按钮,提示出现的问题
this.$vux.toast.show({
text: '请输入该问题',
type: 'text',
'180px', //设置显示宽度
 position: 'bottom' //显示在底部,默认不填显示在中间
})
//点击按钮,执行什么成功,失败用这个合适
this.$vux.confirm.show({
title: '系统提示',
content: '确认删除吗?',
 onConfirm (){
  //点击确定要执行的事件
 }
 onCancel () {
  //点击取消要执行的事件
 }
})
原文地址:https://www.cnblogs.com/gqx-html/p/7574651.html