0.1.3 • Published 4 years ago

vue-crazy-toast v0.1.3

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

vue-crazy-toast

screenShot

安装 vue-crazy-toast

yarn add vue-crazy-toast
# or
npm install vue-crazy-toast

引入 vue-crazy-toast

// main.js
import CrazyToast from 'vue-crazy-toast'
Vue.use(CrazyToast)

使用 vue-crazy-toast

// 打开
this.$crazyToast.open({
    title: 'Title'
})

// 关闭
this.$crazyToast.close()

属性说明

属性默认值说明
loadingfalse是否显示loading图标
title标题
masktrue遮罩层
positioncenter弹窗位置 // bottom, center, top
fail调用失败的回调函数
success调用成功的回调函数
autoClose3000默认等待3s后自动关闭