fix: refs #6315 drop icon

This commit is contained in:
Jorge Penadés 2024-02-29 15:22:41 +01:00
parent 151d08f0bb
commit cbf9bff0e3
5 changed files with 9 additions and 22 deletions

View File

@ -6,7 +6,6 @@ import VnInput from 'src/components/common/VnInput.vue';
const props = defineProps({
modelValue: { type: String, default: '' },
currency: { type: String, default: 'euro' },
icon: { type: Boolean, default: false },
});
@ -28,12 +27,7 @@ const amount = computed({
type="number"
step="any"
:label="useCapitalize(t('amount'))"
is-outlined
>
<template #prepend v-if="icon">
<QIcon :name="currency" size="sm" />
</template>
</VnInput>
/>
</template>
<i18n>
es:

View File

@ -47,7 +47,7 @@ const props = defineProps({
</QItem>
<QItem>
<QItemSection>
<VnCurrency v-model="params.amount" />
<VnCurrency v-model="params.amount" is-outlined />
</QItemSection>
</QItem>
<QItem>

View File

@ -9,6 +9,7 @@ import { toCurrency } from 'src/filters';
import FetchData from 'src/components/FetchData.vue';
import VnSelectFilter from 'src/components/common/VnSelectFilter.vue';
import CrudModel from 'src/components/CrudModel.vue';
import VnCurrency from 'src/components/common/VnCurrency.vue';
const route = useRoute();
const { t } = useI18n();
@ -225,7 +226,7 @@ async function addExpense() {
</template>
<template #body-cell-taxablebase="{ row }">
<QTd>
<QInput
<VnCurrency
:class="{
'no-pointer-events': isNotEuro(invoiceIn.currency.code),
}"
@ -234,11 +235,7 @@ async function addExpense() {
clear-icon="close"
v-model="row.taxableBase"
clearable
>
<template #prepend>
<QIcon name="euro" size="xs" flat />
</template>
</QInput>
/>
</QTd>
</template>
<template #body-cell-sageiva="{ row, col }">
@ -328,7 +325,7 @@ async function addExpense() {
</VnSelectFilter>
</QItem>
<QItem>
<QInput
<VnCurrency
:label="t('Taxable base')"
:class="{
'no-pointer-events': isNotEuro(
@ -340,11 +337,7 @@ async function addExpense() {
clear-icon="close"
v-model="props.row.taxableBase"
clearable
>
<template #append>
<QIcon name="euro" size="xs" flat />
</template>
</QInput>
/>
</QItem>
<QItem>
<VnSelectFilter

View File

@ -138,7 +138,7 @@ const suppliersRef = ref();
</QItem>
<QItem>
<QItemSection>
<VnCurrency v-model="params.amount" />
<VnCurrency v-model="params.amount" is-outlined />
</QItemSection>
</QItem>
<QItem class="q-mb-md">

View File

@ -88,7 +88,7 @@ const props = defineProps({
<VnCurrency
v-model="params.amount"
:label="t('invoiceOut.negativeBases.amount')"
:icon="false"
is-outlined
/>
</QItemSection>
</QItem>