0
0
Fork 0

fix: refs #7353 rollback

This commit is contained in:
Jorge Penadés 2024-09-17 12:57:43 +02:00
parent 2cb2ce16ef
commit ed4a4e1e59
1 changed files with 1 additions and 12 deletions

View File

@ -200,11 +200,6 @@ function sanitizer(params) {
} }
return params; return params;
} }
function getLocale(label) {
const globalLocale = `globals.params.${label}`;
return te(globalLocale) ? t(globalLocale) : t(`params.${label}`);
}
</script> </script>
<template> <template>
@ -253,12 +248,7 @@ function getLocale(label) {
:removable="!unremovableParams?.includes(chip.label)" :removable="!unremovableParams?.includes(chip.label)"
@remove="remove(chip.label)" @remove="remove(chip.label)"
> >
<slot <slot name="tags" :tag="chip" :format-fn="formatValue">
name="tags"
:tag="chip"
:format-fn="formatValue"
:locale-fn="getLocale"
>
<div class="q-gutter-x-xs"> <div class="q-gutter-x-xs">
<strong>{{ chip.label }}:</strong> <strong>{{ chip.label }}:</strong>
<span>"{{ formatValue(chip.value) }}"</span> <span>"{{ formatValue(chip.value) }}"</span>
@ -272,7 +262,6 @@ function getLocale(label) {
:tags="customTags" :tags="customTags"
:format-fn="formatValue" :format-fn="formatValue"
:search-fn="search" :search-fn="search"
:locale-fn="getLocale"
/> />
</div> </div>
</QItem> </QItem>