v-easy-message
Demo
Install
npm install v-easy-message -s
Quick Start
import vEasy from 'v-easy-message'
Vue.use(vEasy);
Code Start
<template>
<VEButton @click="send('info')" class="center" type="primary" icon="chrome" :rotate="true" :circle="true"></VEButton>
</template>
<script>
export default {
methods: {
send(type) {
this.$msg({
type: type, //'success', 'error','info','warning'
message: 'infomation',
duration: 3000,
onClose: () => {
console.log('callback');
}
});
}
}
}
</script>