0.2.0 • Published 6 years ago

mars-vue-notification v0.2.0

Weekly downloads
22
License
-
Repository
github
Last release
6 years ago

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)
  }
};