项目作者: catbea

项目描述 :
基于vue的toast小插件
高级语言: Vue
项目地址: git://github.com/catbea/vue-toast.git
创建时间: 2018-04-15T14:01:34Z
项目社区:https://github.com/catbea/vue-toast

开源协议:

下载


vue-toast-plugin

A Vue.js project

Build Setup

  1. # install dependencies
  2. npm install
  3. # serve with hot reload at localhost:8080
  4. npm run dev
  5. # build for production with minification
  6. npm run build

For detailed explanation on how things work, consult the docs for vue-loader.

安装组件 npm update vue-toast-plugin-catbea —save

安装完以后,在项目中引用

在入口文件中引入

import Toast from ‘vue-toast-plugin-catbea’

Vue.use(Toast);

在需要用到的组件中用 toast 并传如需要的参数就ok啦