4.0.0 • Published 4 years ago

@huteming/ui-toast v4.0.0

Weekly downloads
2
License
ISC
Repository
-
Last release
4 years ago

简短的消息提示框,支持自定义位置、持续时间和样式。


引入

import { Toast } from '@huteming/ui'

Vue.use(Toast)

例子

this.$toast(options)
this.$toast(message, options)
this.$toast(message, duration, options)

Toast(message)

API

参数说明类型可选值默认值
message文本内容String
positionToast 的位置Stringtopbottommiddlemiddle
duration持续时间(毫秒),若为 0 则不会自动关闭Number3000
onClose关闭的回调函数Function