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();
	 }
 	});
}

 

Logo

前往低代码交流专区

更多推荐