fix: refs #8224 handle object values in formatValue function
gitea/salix-front/pipeline/pr-dev Something is wrong with the build of this commit
Details
gitea/salix-front/pipeline/pr-dev Something is wrong with the build of this commit
Details
This commit is contained in:
parent
0b40134cfe
commit
a56cdf8053
|
@ -461,8 +461,8 @@ function getOptionLabel(property) {
|
|||
</template>
|
||||
<template #selected v-if="valueIsObject && nullishToTrue($attrs['emit-value'])">
|
||||
<span class="nowrap">
|
||||
<s
|
||||
class="nowrap"
|
||||
<span
|
||||
class="text-strike"
|
||||
v-if="modelValue?.neq"
|
||||
v-text="getOptionLabel('neq')"
|
||||
:title="getOptionLabel('neq')"
|
||||
|
|
|
@ -186,6 +186,7 @@ async function remove(key) {
|
|||
function formatValue(value) {
|
||||
if (typeof value === 'boolean') return value ? t('Yes') : t('No');
|
||||
if (isNaN(value) && !isNaN(Date.parse(value))) return toDate(value);
|
||||
if (value && typeof value === 'object') return '';
|
||||
|
||||
return `"${value}"`;
|
||||
}
|
||||
|
|
Loading…
Reference in New Issue