1.0.4 • Published 6 years ago

vue-hyb-notification v1.0.4

Weekly downloads
2
License
MIT
Repository
github
Last release
6 years ago

vue-hyb-notification

Demo

Demo page

Installation

npm

$ npm install vue-hyb-notification

Requirements

import notification from 'vue-hyb-notification'
Vue.use(notification);


<template>
	<div id="app">
		<span @click="send"></span>
	</div>
</template>

<script>
export default {
	name: 'App',
	data (){
	},
	methods : {
		ccc (){
			alert('callback')
		},
		send(time){
			this.$notify({ type : 'warning' ,title : 'title' ,content : 'content' });
			// or
			this.$notify({ title : 'title' ,content : 'content' ,duration : 2500 });
			// or
			this.$notify({ title : 'title' ,content : 'content' ,isautoclose : true});
			//or
			this.$notify({ type : "warning" ,title : "title" ,content : [{ text : "content" ,fn : this.ccc } ,{ text : "other message" }] ,duration : 2500 });
		}
	}
}
</script>

API  

  • title  
title   title
  • content
content  Array  
  • duration
duration(disappear time)   default  2500
  • isautoclose
isautoclose(Disappear automatically)   true or false  , default false
  • type
type   msg or error or success or warning  ,default no

License

The MIT License

1.0.4

6 years ago

1.0.3

6 years ago

1.0.2

6 years ago

1.0.1

6 years ago

1.0.0

6 years ago