8622-testToMaster #1411

Merged
alexm merged 746 commits from 8622-testToMaster into master 2025-02-18 07:54:25 +00:00
1 changed files with 3 additions and 9 deletions
Showing only changes of commit 613ebc0eb4 - Show all commits

View File

@ -2,17 +2,11 @@
import { computed } from 'vue';
import VnSelect from 'components/common/VnSelect.vue';
const emit = defineEmits(['update:modelValue']);
const $props = defineProps({
modelValue: {
type: [String, Number, Object],
default: null,
},
});
const model = defineModel({ type: [String, Number, Object] });
const url = 'Suppliers';
const value = computed({
get() {
return $props.modelValue;
return model;
},
set(val) {
emit('update:modelValue', val);
@ -24,7 +18,7 @@ const value = computed({
<VnSelect
:label="$t('globals.supplier')"
v-bind="$attrs"
v-model="value"
v-model="model"
:url="url"
option-value="id"
option-label="nickname"