feat: #8258 added uppercase option to VnInput #1184

Merged
provira merged 11 commits from 8258-uppercaseInputs into dev 2025-01-20 06:01:34 +00:00
1 changed files with 7 additions and 3 deletions
Showing only changes of commit 32909a96bd - Show all commits

View File

@ -5,6 +5,7 @@ import VnTable from 'components/VnTable/VnTable.vue';
import VnSearchbar from 'components/ui/VnSearchbar.vue'; import VnSearchbar from 'components/ui/VnSearchbar.vue';
import RightMenu from 'src/components/common/RightMenu.vue'; import RightMenu from 'src/components/common/RightMenu.vue';
import SupplierListFilter from './SupplierListFilter.vue'; import SupplierListFilter from './SupplierListFilter.vue';
import VnInput from 'src/components/common/VnInput.vue';
const { t } = useI18n(); const { t } = useI18n();
const tableRef = ref(); const tableRef = ref();
@ -23,7 +24,6 @@ const columns = computed(() => [
align: 'left', align: 'left',
label: t('globals.name'), label: t('globals.name'),
name: 'socialName', name: 'socialName',
create: true,
attrs: { attrs: {
uppercase: true, uppercase: true,
}, },
@ -124,14 +124,18 @@ const columns = computed(() => [
formInitialData: {}, formInitialData: {},
mapper: (data) => { mapper: (data) => {
data.name = data.socialName; data.name = data.socialName;
delete data.socialName;
return data; return data;
}, },
}" }"
:right-search="false" :right-search="false"
order="id ASC" order="id ASC"
:columns="columns" :columns="columns"
/> >
<template #more-create-dialog="{ data }">
<VnInput :label="t('globals.name')" v-model="data.socialName" :uppercase="true" />
</template>
</VnTable>
</template> </template>
<i18n> <i18n>