Created
February 13, 2019 16:29
-
-
Save erandirjunior/c1cb24d8cd26d69d429f51d380b57bda to your computer and use it in GitHub Desktop.
Form Modal
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<q-modal v-model="minimizedModal" ref="modalRef" maximized slot="modal" > | |
<q-modal-layout> | |
<form class="col column"> | |
<div class="q-display-1 q-mb-md q-pa-sm">Formulário - {{ title }}</div> | |
<div class="row"> | |
<div class="col-4"> | |
<q-select | |
stack-label="Nível" | |
v-model="form.nivel" | |
filter | |
autofocus-filter | |
:options="select.nivel" | |
/> | |
</div> | |
<div class="col-8"> | |
<q-select | |
stack-label="Pai" | |
v-model="form.pai" | |
filter | |
autofocus-filter | |
:options="select.pai" | |
/> | |
</div> | |
<div class="col-6"> | |
<q-select | |
stack-label="Programa" | |
v-model="form.programa" | |
filter | |
autofocus-filter | |
:options="select.programa" | |
/> | |
</div> | |
<div class="col-6"> | |
<q-select | |
stack-label="Produto" | |
v-model="form.idProduto" | |
filter | |
autofocus-filter | |
:options="select.idProduto" | |
/> | |
</div> | |
<div class="col-6"> | |
<q-input maxlength="255" :value="form.codigo" v-model="form.codigo" stack-label="Código" type="text"/> | |
</div> | |
<div class="col-6"> | |
<q-input maxlength="255" :value="form.descricao" v-model="form.descricao" stack-label="Nome" type="text"/> | |
</div> | |
</div> | |
<div class="row"> | |
<q-btn class="q-ma-sm float-right" color="primary" label="Salvar" @click="saveModal(form.id)"/> | |
<q-btn class="q-ma-sm float-right" color="red" label="Fechar" @click="closeModal()"/> | |
</div> | |
</form> | |
</q-modal-layout> | |
</q-modal> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment