mars-vue-notification
v0.2.0
Published
vue notification component
Downloads
7
Readme
Vue Notification 組件
Live Demo
Install
npm install mars-vue-notification --save
Mount
mount with global
//in your main.js
import Notification from 'mars-vue-notification'
Vue.use(Notification)
Use
this.$notify()
export default {
...
mounted() {
setTimeout(() => {
this.$notify({
content: "test message...",
btn: "close",
btnTextColor: "green", // default: #ff4081
textColor: "yellow", // default: #fff
bgColor: "blue" // default: #303030
});
}, 1000)
}
};