0.1.5 • Published 4 years ago

zhang-toast-npmjs v0.1.5

Weekly downloads
7
License
MIT
Repository
github
Last release
4 years ago

zhang-toast-npmjs

复制 https://github.com/yc111/toast 的toast组件,学习npm vue插件发布流程
new Vue 之前,必须先Vue.use(toast),toast插件则必须内置 instal 方法,实现将 toast注册到Vue.prototype原型链上,点击按钮调用this.$zToast()时,将new 一个基于vue.extend扩展的构造器,再将 new出来的实例的$el加入到body中
插件需要通过 Vue.use() 方法注册到全局,并且需要在调用 new Vue() 启动应用之前完成。之后在其他 Vue 实例里面就可以通过 this.$xxx 来调用插件中提供的 API 了。

Project setup

npm install

Compiles and hot-reloads for development

npm run serve

Compiles and minifies for production

npm run build

Lints and fixes files

npm run lint

Customize configuration

See Configuration Reference.

0.1.4

4 years ago

0.1.5

4 years ago

0.1.3

4 years ago

0.1.2

4 years ago

0.1.0

4 years ago