0
0
Fork 0

fix: refs #6911 save onKeyup enter

This commit is contained in:
Jorge Penadés 2024-02-27 11:24:49 +01:00
parent c070969d7d
commit ba1dea32a5
13 changed files with 35 additions and 11 deletions

View File

@ -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" />

View File

@ -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" />

View File

@ -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" />

View File

@ -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

View File

@ -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>

View File

@ -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"

View File

@ -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', {

View File

@ -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"
>

View File

@ -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>

View File

@ -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">

View File

@ -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"
>

View File

@ -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

View File

@ -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">