0.1.18 • Published 9 years ago
vue-sweetalert v0.1.18
vue-sweetalert
The demo of how to make a Vue plugin -- sweetalert
if you want to learn more about sweetalert2's api, please goto its homepage https://github.com/limonte/sweetalert2
Why to depend on sweetalert2
The original SweetAlert plugin is currently unsupported, there's SweetAlert2. Consider to base your plugin on it.
Migration guide: https://github.com/limonte/sweetalert2/wiki/Migration-from-SweetAlert-to-SweetAlert2
Install
npm install vue-sweetalert --saveAPI
this.$swal(...)Usage
html
<body>
<button v-on:click="clickHandler">swal</button>
...
</body>js
import Vue from 'vue'
import VueSweetAlert from 'vue-sweetalert'
Vue.use(VueSweetAlert)
new Vue({
el: 'body',
methods: {
clickHandler() {
this.$swal('hello')
}
}
})LICENSE
MIT
0.1.18
9 years ago
0.1.17
9 years ago
0.1.16
9 years ago
0.1.15
9 years ago
0.1.14
9 years ago
0.1.12
10 years ago
0.1.11
10 years ago
0.1.10
10 years ago
0.1.9
10 years ago
0.1.8
10 years ago
0.1.7
10 years ago
0.1.6
10 years ago
0.1.5
10 years ago
0.1.4
10 years ago
0.1.3
10 years ago
0.1.2
10 years ago
0.1.1
10 years ago
0.1.0
10 years ago