fix: fixed VnLocation and warnings
gitea/salix-front/pipeline/pr-dev This commit looks good Details

This commit is contained in:
Jon Elias 2025-01-22 09:27:58 +01:00
parent fe7b37fd15
commit f536d08317
3 changed files with 5 additions and 2 deletions

View File

@ -70,6 +70,9 @@ const handleModelValue = (data) => {
<VnSelectDialog
v-model="modelValue"
option-filter-value="search"
:option-label="
(opt) => (typeof modelValue === 'string' ? modelValue : showLabel(opt))
"
url="Postcodes/filter"
@update:model-value="handleModelValue"
:use-like="false"

View File

@ -27,7 +27,7 @@ const $props = defineProps({
default: () => [],
},
optionLabel: {
type: [String],
type: [String, Function],
default: 'name',
},
optionValue: {

View File

@ -196,7 +196,7 @@ async function autofillBic(worker) {
prefix="workerSearch"
:array-data-props="{
url: 'Workers/filter',
order: ['id DESC'],
order: 'id DESC',
}"
>
<template #rightMenu>