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>
复制代码