toast_demo_based_vue

0.1.5 • Public • Published

基于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

success

Readme

Keywords

Package Sidebar

Install

npm i toast_demo_based_vue

Weekly Downloads

1

Version

0.1.5

License

ISC

Unpacked Size

2.83 kB

Total Files

4

Last publish

Collaborators

  • yunhao