forked from verdnatura/salix-front
fix: refs #6911 save onKeyup enter
This commit is contained in:
parent
c070969d7d
commit
ba1dea32a5
|
@ -66,7 +66,7 @@ const closeForm = () => {
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<QForm @submit="submitData()" class="all-pointer-events">
|
||||
<QForm @submit="submitData()" @keyup.enter="submitData()" class="all-pointer-events">
|
||||
<QCard class="q-pa-lg">
|
||||
<span ref="closeButton" class="close-icon" v-close-popup>
|
||||
<QIcon name="close" size="sm" />
|
||||
|
|
|
@ -140,7 +140,11 @@ const selectItem = ({ id }) => {
|
|||
@on-fetch="(data) => (InksOptions = data)"
|
||||
auto-load
|
||||
/>
|
||||
<QForm @submit="fetchResults()" class="all-pointer-events">
|
||||
<QForm
|
||||
@submit="fetchResults()"
|
||||
@keyup.enter="fetchResults()"
|
||||
class="all-pointer-events"
|
||||
>
|
||||
<QCard class="column" style="padding: 32px; z-index: 100">
|
||||
<span ref="closeButton" class="close-icon" v-close-popup>
|
||||
<QIcon name="close" size="sm" />
|
||||
|
|
|
@ -138,7 +138,11 @@ const selectTravel = ({ id }) => {
|
|||
@on-fetch="(data) => (warehousesOptions = data)"
|
||||
auto-load
|
||||
/>
|
||||
<QForm @submit="fetchResults()" class="all-pointer-events">
|
||||
<QForm
|
||||
@submit="fetchResults()"
|
||||
@keyup.enter="fetchResults()"
|
||||
class="all-pointer-events"
|
||||
>
|
||||
<QCard class="column" style="padding: 32px; z-index: 100">
|
||||
<span ref="closeButton" class="close-icon" v-close-popup>
|
||||
<QIcon name="close" size="sm" />
|
||||
|
|
|
@ -190,10 +190,10 @@ watch(formUrl, async () => {
|
|||
<QForm
|
||||
v-if="formData"
|
||||
@submit="save"
|
||||
@keyup.enter="save"
|
||||
@reset="reset"
|
||||
class="q-pa-md"
|
||||
id="formModel"
|
||||
@keyup.enter="save"
|
||||
>
|
||||
<QCard>
|
||||
<slot
|
||||
|
|
|
@ -164,7 +164,7 @@ function formatValue(value) {
|
|||
</script>
|
||||
|
||||
<template>
|
||||
<QForm @submit="search">
|
||||
<QForm @submit="search" @keyup.enter="search">
|
||||
<QList dense>
|
||||
<QItem class="q-mt-xs">
|
||||
<QItemSection top>
|
||||
|
|
|
@ -67,7 +67,7 @@ async function remove({ id }) {
|
|||
<QPage class="column items-center q-pa-md sticky">
|
||||
<QPageSticky expand position="top" :offset="[16, 16]">
|
||||
<QCard class="card q-pa-md">
|
||||
<QForm @submit="submit">
|
||||
<QForm @submit="submit" @keyup.enter="submit">
|
||||
<VnInput
|
||||
ref="input"
|
||||
v-model="newRma.code"
|
||||
|
|
|
@ -55,7 +55,7 @@ const onSubmit = async () => {
|
|||
<QDialog ref="dialogRef">
|
||||
<QCard class="q-pa-md q-mb-md">
|
||||
<QCardSection>
|
||||
<QForm @submit="onSubmit()" class="q-pa-sm">
|
||||
<QForm @submit="onSubmit()" @keyup.enter="onSubmit()" class="q-pa-sm">
|
||||
<div>
|
||||
{{
|
||||
t('Add observation to all selected clients', {
|
||||
|
|
|
@ -75,6 +75,7 @@ onMounted(async () => {
|
|||
<QForm
|
||||
v-if="!initialDataLoading && optionsInitialData"
|
||||
@submit="makeInvoice(formData, clientsToInvoice)"
|
||||
@keyup.enter="makeInvoice(formData, clientsToInvoice)"
|
||||
class="form-container q-pa-md"
|
||||
style="max-width: 256px"
|
||||
>
|
||||
|
|
|
@ -48,7 +48,11 @@ async function onSubmit() {
|
|||
}
|
||||
</script>
|
||||
<template>
|
||||
<QForm @submit="onSubmit" class="q-gutter-y-md q-pa-lg formCard">
|
||||
<QForm
|
||||
@submit="onSubmit"
|
||||
@keyup.enter="onSubmit"
|
||||
class="q-gutter-y-md q-pa-lg formCard"
|
||||
>
|
||||
<div class="column items-center">
|
||||
<QIcon name="phonelink_lock" size="xl" color="primary" />
|
||||
<h5 class="text-center q-my-md">{{ t('twoFactor.insert') }}</h5>
|
||||
|
|
|
@ -33,7 +33,7 @@ const addToOrder = async () => {
|
|||
|
||||
<template>
|
||||
<div class="container order-catalog-item q-pb-md">
|
||||
<QForm @submit.prevent="addToOrder">
|
||||
<QForm @submit.prevent="addToOrder" @keyup.enter="addToOrder">
|
||||
<QMarkupTable class="shadow-0">
|
||||
<tbody>
|
||||
<tr v-for="item in fields" :key="item.warehouse">
|
||||
|
|
|
@ -211,6 +211,7 @@ const onThermographCreated = async (data) => {
|
|||
:observe-form-changes="viewAction === 'create'"
|
||||
:default-actions="true"
|
||||
@submit="onSubmit()"
|
||||
@keyup.enter="onSubmit()"
|
||||
class="full-width"
|
||||
style="max-width: 800px"
|
||||
>
|
||||
|
|
|
@ -242,7 +242,12 @@ function exceedMaxHeight(pos) {
|
|||
|
||||
<template>
|
||||
<QPage class="q-pa-sm q-mx-xl">
|
||||
<QForm @submit="onSubmit()" @reset="onReset()" class="q-pa-sm">
|
||||
<QForm
|
||||
@submit="onSubmit()"
|
||||
@keyup.enter="onSubmit()"
|
||||
@reset="onReset()"
|
||||
class="q-pa-sm"
|
||||
>
|
||||
<QCard class="q-pa-md">
|
||||
<VnInput
|
||||
filled
|
||||
|
|
|
@ -89,7 +89,12 @@ function filterType(val, update) {
|
|||
|
||||
<template>
|
||||
<QPage class="q-pa-sm q-mx-xl">
|
||||
<QForm @submit="onSubmit()" @reset="onReset()" class="q-pa-sm">
|
||||
<QForm
|
||||
@submit="onSubmit()"
|
||||
@keyup.enter="onSubmit()"
|
||||
@reset="onReset()"
|
||||
class="q-pa-sm"
|
||||
>
|
||||
<QCard class="q-pa-md">
|
||||
<div class="row q-col-gutter-md">
|
||||
<div class="col">
|
||||
|
|
Loading…
Reference in New Issue