plugin-tigre-sweet-alert-vuetify
v1.1.4
Published
- Esse plugin foi retirado do repositório (https://github.com/marcosandrejorge/sweet-alert-vuetify).
Downloads
3
Readme
Copiado/Fork
- Esse plugin foi retirado do repositório (https://github.com/marcosandrejorge/sweet-alert-vuetify).
Install
npm install plugin-tigre-sweet-alert-vuetify --save
Use
import TSweetAlertVuetify from 'plugin-tigre-sweet-alert-vuetify';
components: { TSweetAlertVuetify }
<t-sweet-alert-vuetify
v-model="showConfirm"
@clickButtonOk="save()"
@clickButtonCancel="cancel()"
alertDefault="confirm"
:config="{
title: 'Deseja realmente continuar?',
buttonCancel: {
text: 'Cancelar'
}
}"
/>
OR
import TSweetAlertVuetify from 'plugin-tigre-sweet-alert-vuetify';
Vue.use(TSweetAlertVuetify, vuetify);
async showAlert() {
await this.$swal('confirm', {
title: 'Deseja realmente continuar?',
buttonCancel: {
text: 'Cancelar'
}
}
});
CONFIG
//vue.config.js
module.exports = {
transpileDependencies: ["vuetify"],
transpileDependencies: ["plugin-tigre-sweet-alert-vuetify"],
};
Props
Thanks to:
- https://github.com/sweetalert2/sweetalert2
- https://github.com/yariksav/vuetify-confirm