vue mint-ui 弹出框
function toast(title){//提示vm.$toast({message: title,position: 'middle',duration: 3000});}function toastSuccess(title){ //成功提示vm.$toast({message: title,iconClass: 'icon i...
·
function toast(title){ //提示
vm.$toast({
message: title,
position: 'middle',
duration: 3000
});
}
function toastSuccess(title){ //成功提示
vm.$toast({
message: title,
iconClass: 'icon icon-success'
});
}
function loading(){ //加载中
vm.$indicator.open({
text: '加载中...',
spinnerType: 'fading-circle'
});
}
function loading(msg){ //加载中
vm.$indicator.open({
text: msg,
spinnerType: 'fading-circle'
});
}
function closeLoad(){ //关闭加载动画
vm.$indicator.close();
}
function alert(title){
vm.$messagebox('提示', title);
}
function confirm(title){
vm.$messagebox({
title: '提示',
message: title,
showCancelButton: true
});
}
function confirm(title,succCallback){
vm.$messagebox({
title: '提示',
message: title,
showCancelButton: true
}).then(action => {
if (action == 'confirm') { //确认的回调
succCallback();
}
});
}
更多推荐
已为社区贡献2条内容
所有评论(0)