|
|
@ -102,7 +102,7 @@ const hasEditRoles = computed(() => isUIAllowed('dataEdit')) |
|
|
|
const editAllowed = computed(() => (hasEditRoles.value || isForm.value) && active.value) |
|
|
|
const editAllowed = computed(() => (hasEditRoles.value || isForm.value) && active.value) |
|
|
|
|
|
|
|
|
|
|
|
const vModel = computed({ |
|
|
|
const vModel = computed({ |
|
|
|
get: () => tempSelectedOptState.value ?? modelValue, |
|
|
|
get: () => tempSelectedOptState.value ?? modelValue?.trim(), |
|
|
|
set: (val) => { |
|
|
|
set: (val) => { |
|
|
|
if (val && isNewOptionCreateEnabled.value && (options.value ?? []).every((op) => op.title !== val)) { |
|
|
|
if (val && isNewOptionCreateEnabled.value && (options.value ?? []).every((op) => op.title !== val)) { |
|
|
|
tempSelectedOptState.value = val |
|
|
|
tempSelectedOptState.value = val |
|
|
|