mirror of
https://github.com/mayswind/ezbookkeeping.git
synced 2026-05-20 01:34:24 +08:00
code refactor
This commit is contained in:
@@ -42,15 +42,12 @@
|
|||||||
:label="$t('Default Account')"
|
:label="$t('Default Account')"
|
||||||
:placeholder="$t('Default Account')"
|
:placeholder="$t('Default Account')"
|
||||||
:items="allVisibleAccounts"
|
:items="allVisibleAccounts"
|
||||||
|
:no-data-text="$t('No results')"
|
||||||
v-model="newProfile.defaultAccountId"
|
v-model="newProfile.defaultAccountId"
|
||||||
>
|
>
|
||||||
<template v-slot:selection="{ item }">
|
<template v-slot:selection="{ item }">
|
||||||
<v-label>{{ !item || item.value === 0 || item.value === '0' ? $t('Not Specified') : item.title }}</v-label>
|
<v-label>{{ !item || item.value === 0 || item.value === '0' ? $t('Not Specified') : item.title }}</v-label>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<template v-slot:no-data>
|
|
||||||
<div class="px-4">{{ $t('No results') }}</div>
|
|
||||||
</template>
|
|
||||||
</v-select>
|
</v-select>
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
@@ -92,12 +89,9 @@
|
|||||||
:label="$t('Default Currency')"
|
:label="$t('Default Currency')"
|
||||||
:placeholder="$t('Default Currency')"
|
:placeholder="$t('Default Currency')"
|
||||||
:items="allCurrencies"
|
:items="allCurrencies"
|
||||||
|
:no-data-text="$t('No results')"
|
||||||
v-model="newProfile.defaultCurrency"
|
v-model="newProfile.defaultCurrency"
|
||||||
>
|
/>
|
||||||
<template v-slot:no-data>
|
|
||||||
<div class="px-4">{{ $t('No results') }}</div>
|
|
||||||
</template>
|
|
||||||
</v-autocomplete>
|
|
||||||
</v-col>
|
</v-col>
|
||||||
|
|
||||||
<v-col cols="12" md="6">
|
<v-col cols="12" md="6">
|
||||||
|
|||||||
Reference in New Issue
Block a user