显示弹窗:
this.toastInstance = this.$toast('提示信息', {
// info, warning, success, error
type: 'info',
// top-right, top-center, top-left, bottom-right, bottom-center, bottom-left.
position: 'bottom-left',
// auto pause when out of focus
pauseOnFocusLoss: false,
// auto pause on hover
pauseOnHover: false,
// close on click
closeOnClick: true,
// auto dismiss after this timeout
timeout: 4000,
// show/hide the progress bar
hideProgressBar: false,
// show/hide the close button
hideCloseButton: false,
// custom icons here
icon: true,
// callback
onClick: function(){}
});
取消指定弹窗
this.$toast.dismiss(this.toastInstance)