0.1.5 • Published 5 years ago

toast_demo_based_vue v0.1.5

Weekly downloads
1
License
ISC
Repository
-
Last release
5 years ago

基于Vue的一个简单的toast插件

安装

$ npm i toast_demo_based_vue

引入

import toastRegistry from 'toast_demo_based_vue'
Vue.use(toastRegistry)

使用方法

this.$toast({
    text: "Your text",
    type: "type",
    duration: time
});

部分API

参数说明类型
type提示类型success/wraning/danger/info
text文本null
duration持续时长2000毫秒

部分界面

danger

npm.io

success

npm.io

0.1.5

5 years ago

0.1.4

5 years ago

0.1.3

5 years ago

0.1.2

5 years ago

0.1.1

5 years ago

0.1.0

5 years ago