0
0
Fork 0

feat: refs #6900 add tooltip

This commit is contained in:
Jorge Penadés 2024-09-03 14:37:24 +02:00
parent 6eb5435e25
commit 00beeaf51b
2 changed files with 8 additions and 6 deletions

View File

@ -18,7 +18,7 @@ const { t } = useI18n();
<template #form-inputs="{ data, validate }"> <template #form-inputs="{ data, validate }">
<VnRow> <VnRow>
<VnInput <VnInput
:label="`${t('Code')}`" :label="`${t('globals.code')}`"
v-model="data.id" v-model="data.id"
:required="true" :required="true"
:rules="validate('expense.code')" :rules="validate('expense.code')"
@ -33,7 +33,7 @@ const { t } = useI18n();
</VnRow> </VnRow>
<VnRow> <VnRow>
<VnInput <VnInput
:label="`${t('Description')}`" :label="`${t('globals.description')}`"
v-model="data.name" v-model="data.name"
:required="true" :required="true"
:rules="validate('expense.description')" :rules="validate('expense.description')"
@ -46,7 +46,5 @@ const { t } = useI18n();
<i18n> <i18n>
es: es:
New expense: Nuevo gasto New expense: Nuevo gasto
Code: Código
It's a withholding: Es una retención It's a withholding: Es una retención
Description: Descripción
</i18n> </i18n>

View File

@ -170,6 +170,7 @@ const formatOpt = (row, { model, options }, prop) => {
:option-value="col.optionValue" :option-value="col.optionValue"
:option-label="col.optionLabel" :option-label="col.optionLabel"
:filter-options="['id', 'name']" :filter-options="['id', 'name']"
:tooltip="t('Create a new expense')"
> >
<template #option="scope"> <template #option="scope">
<QItem v-bind="scope.itemProps"> <QItem v-bind="scope.itemProps">
@ -305,6 +306,7 @@ const formatOpt = (row, { model, options }, prop) => {
option-value="id" option-value="id"
option-label="name" option-label="name"
:filter-options="['id', 'name']" :filter-options="['id', 'name']"
:tooltip="t('Create a new expense')"
> >
<template #option="scope"> <template #option="scope">
<QItem v-bind="scope.itemProps"> <QItem v-bind="scope.itemProps">
@ -408,7 +410,9 @@ const formatOpt = (row, { model, options }, prop) => {
size="lg" size="lg"
round round
@click="invoiceInFormRef.insert()" @click="invoiceInFormRef.insert()"
/> >
<QTooltip>{{ t('Add tax') }}</QTooltip>
</QBtn>
</QPageSticky> </QPageSticky>
</template> </template>
@ -448,7 +452,7 @@ const formatOpt = (row, { model, options }, prop) => {
<i18n> <i18n>
es: es:
Expense: Gasto Expense: Gasto
Create expense: Crear gasto Create a new expense: Crear nuevo gasto
Add tax: Crear gasto Add tax: Crear gasto
Taxable base: Base imp. Taxable base: Base imp.
Sage tax: Sage iva Sage tax: Sage iva