Toastification属性

// body类
  bodyClassName: [],

// 容器元素
  container: document.body,
// 单击即关闭
  closeOnClick: true,

// 允许通过拖动和滑动事件关闭
  draggable: true, 
  draggablePercent: 0.6,

// 显示/隐藏进度条
  hideProgressBar: false,
// 显示/隐藏关闭按钮
  hideCloseButton: false,

// 此处显示自定义图标
  icon: true

// 最大toasts数
  maxToasts: 20,

// 将最新的toast放到顶部
  newestOnTop: true,

// 失去焦点时自动暂停
  pauseOnFocusLoss: true,
// 悬停时自动暂停
  pauseOnHover: true,
// 显示位置:top-right, top-center, top-left, bottom-right, bottom-center, bottom-left.
  position: 'top-right',

 // 只应用“输入活动”、“保持活动”和“移动”。
  transition: 'Vue-Toastification__bounce',
 
  // 持续时间(毫秒)
  // 或一个对象: {enter: Number, leave: Number}
  transitionDuration: 750,
 
  // 超时后自动关闭
  timeout: 5000,
// 自定义类
  toastClassName: [],

 

posted @ 2022-11-23 16:31  幻影之舞  阅读(258)  评论(0)    收藏  举报