1.1.4 • Published 5 years ago
plugin-tigre-sweet-alert-vuetify v1.1.4
Copiado/Fork
- Esse plugin foi retirado do repositório (https://github.com/marcosandrejorge/sweet-alert-vuetify).
Install
npm install plugin-tigre-sweet-alert-vuetify --saveUse
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"],
};