Vue.component('app-modal', {
props: ['titulo', 'texto', 'btn', 'clique', 'action'],
methods: {
btnFecha(e){
if (this.action == 'refresh') {
location.reload();
} else {
if(Boolean(this.clique)){
this.clique();
}
}
}
},
template: `
{{titulo}}
{{btn}}
{{btn}}
`
})
/* Rodapé do Site */
Vue.component('app-footer', {
props: ['logo'],
template: `
`
})
/* Formulário de Captura */
Vue.component('form-captura',{
template: `
`
})
/* Mixins */
var mixinMenu = {
data() {
return {
menuAberto: false,
}
},
methods: {
abreMenu: function () {
this.menuAberto = !this.menuAberto;
if(!this.menuAberto) {
document.querySelector('.principal ul').classList.remove('show');
document.querySelector('body').classList.remove('show');
} else {
document.querySelector('.principal ul').classList.add('show');
document.querySelector('body').classList.add('show');
}
},
}
}