function toast(title){ //提示
vm.$message({
message:title,
duration:1000,
});
}
function toastSuccess(title){ //成功提示
vm.$message({
message:title,
type: 'success'
});
}
function loading(){ //加载中
vm.fullscreenLoading = true;
}
function loading(msg){ //加载中
vm.$loading({
lock: true,
text: msg,
spinner: 'el-icon-loading',
background: 'rgba(0, 0, 0, 0.7)'
});
}
function closeLoad(){ //关闭加载动画
vm.fullscreenLoading = false;
vm.$loading().close();
}
function alert(title){
vm.$alert(title, '提示', {
confirmButtonText: '确定',
});
}
function confirm(title,succCallback){
vm.$confirm(title, '提示', {
confirmButtonText: '确定',
cancelButtonText: '取消',
type: 'warning'
}).then(() => {
succCallback();
}).catch(() => {
});
}
最后
以上就是帅气水蜜桃最近收集整理的关于vue element-ui 提示的全部内容,更多相关vue内容请搜索靠谱客的其他文章。
本图文内容来源于网友提供,作为学习参考使用,或来自网络收集整理,版权属于原作者所有。
发表评论 取消回复