0.7.0 • Published 7 years ago

vue-alert-osd v0.7.0

Weekly downloads
-
License
ISC
Repository
github
Last release
7 years ago

Vue-alert-osd RENDME

Overview

vue-alert-osd is a message alert package for vue.js.

Install

Get source from npm

$ npm insatll vue-alert-osd --save

Supported UMD library and individual CSS file.

./lib/
├── vue-alert-osd.js
└── vue-alert-osd.css
./src/
├── index.js
└── alert.vue
// For ES6 module
import Alert from 'vue-alert-osd'

// For commonJS
const Alert = require('vue-alert-osd').default

// For global variable, import from script label
const Alert = Alert.default

// Import from src code for debugging or self building
import Alert from 'vue-alert-osd/src'

And import CSS file:

require('vue-alert-osd/lib/vue-msgbox.css')

Usage

Basic usage

Alert(Message, MessageType) //now, just support four types: success(default), warning, info, danger.

Example:

Alert('This is a default success message!')

Set duration

We can set duration for all Alert.

Example:

Alert.set('duration', 3000)

Other function

Developing...

Develop

Codeing with watching and hot-reload

$ npm run dev

License

MIT

0.7.0

7 years ago

0.6.0

7 years ago

0.5.0

7 years ago

0.4.0

7 years ago

0.3.0

7 years ago

0.2.0

7 years ago

0.1.0

7 years ago