1.0.7 • Published 3 years ago
vue2toast2my v1.0.7
usage
npm i vue2toast2my
// main.js
import vue2toast2my from 'vue2toast2my';
Vue.use(vue2toast2my)
// App.vue
mounted(){
// this.$toast.show('asdfasd');
this.$toast.show('提示文本',{
duration:2000,
color:'blue',
background:'#eee'
})
}
NPM VUE PLUGIN
node 10.15.3 if
npm run build
fail, please check node version. or delete node_modules directory andnpm install
again
npm upload
npm run build
// build the dist plugin
npm login
npm version patch
npm publish
if fail , change package name will success.