Skip to content

Latest commit

 

History

History
31 lines (18 loc) · 586 Bytes

README.md

File metadata and controls

31 lines (18 loc) · 586 Bytes

vue-toast-plugin

A Vue.js project

Build Setup

# install dependencies
npm install

# serve with hot reload at localhost:8080
npm run dev

# build for production with minification
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啦