0
0
Fork 0

feat: change label because its more natural

This commit is contained in:
Javier Segarra 2024-09-23 18:30:14 +00:00
parent 3cfa883642
commit 3ede256dc5
1 changed files with 2 additions and 2 deletions

View File

@ -14,11 +14,11 @@ const props = defineProps({
}); });
const modelValue = ref( const modelValue = ref(
props.location props.location
? `${props.location?.postcode} - ${props.location?.city}(${props.location?.province?.name}), ${props.location?.country?.name}` ? `${props.location?.postcode}, ${props.location?.city}(${props.location?.province?.name}), ${props.location?.country?.name}`
: null : null
); );
function showLabel(data) { function showLabel(data) {
return `${data.code} - ${data.town}(${data.province}), ${data.country}`; return `${data.code}, ${data.town}(${data.province}), ${data.country}`;
} }
const handleModelValue = (data) => { const handleModelValue = (data) => {
emit('update:model-value', data); emit('update:model-value', data);