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 @   幻影之舞  阅读(218)  评论(0编辑  收藏  举报
相关博文:
阅读排行:
· 全程不用写代码,我用AI程序员写了一个飞机大战
· DeepSeek 开源周回顾「GitHub 热点速览」
· 记一次.NET内存居高不下排查解决与启示
· MongoDB 8.0这个新功能碉堡了,比商业数据库还牛
· .NET10 - 预览版1新功能体验(一)
点击右上角即可分享
微信分享提示