mars-vue-notification

0.2.0 • Public • Published

Vue Notification 組件

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

/mars-vue-notification/

    Package Sidebar

    Install

    npm i mars-vue-notification

    Weekly Downloads

    2

    Version

    0.2.0

    License

    none

    Unpacked Size

    640 kB

    Total Files

    23

    Last publish

    Collaborators

    • marschen