1.1.4 • Published 4 years ago

plugin-tigre-sweet-alert-vuetify v1.1.4

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

Copiado/Fork

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: