fix: change option.icon component to <component>
This commit is contained in:
parent
651e6ae19c
commit
b09910fb2e
|
|
@ -70,13 +70,6 @@ export default defineConfig({
|
||||||
rewrites: {
|
rewrites: {
|
||||||
'content/(.*)': '(.*)',
|
'content/(.*)': '(.*)',
|
||||||
},
|
},
|
||||||
vue: {
|
|
||||||
template: {
|
|
||||||
compilerOptions: {
|
|
||||||
isCustomElement: tag => tag === 'option.icon',
|
|
||||||
},
|
|
||||||
},
|
|
||||||
},
|
|
||||||
vite: {
|
vite: {
|
||||||
css: {
|
css: {
|
||||||
postcss: {
|
postcss: {
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ const selectedValues = computed(() => new Set(props.column?.getFilterValue() as
|
||||||
>
|
>
|
||||||
<CheckIcon :class="cn('h-4 w-4')" />
|
<CheckIcon :class="cn('h-4 w-4')" />
|
||||||
</div>
|
</div>
|
||||||
<option.icon v-if="option.icon" class="mr-2 h-4 w-4 text-muted-foreground" />
|
<component :is="option.icon" v-if="option.icon" class="mr-2 h-4 w-4 text-muted-foreground" />
|
||||||
<span>{{ option.label }}</span>
|
<span>{{ option.label }}</span>
|
||||||
<span v-if="facets?.get(option.value)" class="ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs">
|
<span v-if="facets?.get(option.value)" class="ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs">
|
||||||
{{ facets.get(option.value) }}
|
{{ facets.get(option.value) }}
|
||||||
|
|
|
||||||
|
|
@ -108,7 +108,7 @@ const selectedValues = computed(() => new Set(props.column?.getFilterValue() as
|
||||||
>
|
>
|
||||||
<CheckIcon :class="cn('h-4 w-4')" />
|
<CheckIcon :class="cn('h-4 w-4')" />
|
||||||
</div>
|
</div>
|
||||||
<option.icon v-if="option.icon" class="mr-2 h-4 w-4 text-muted-foreground" />
|
<component :is="option.icon" v-if="option.icon" class="mr-2 h-4 w-4 text-muted-foreground" />
|
||||||
<span>{{ option.label }}</span>
|
<span>{{ option.label }}</span>
|
||||||
<span v-if="facets?.get(option.value)" class="ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs">
|
<span v-if="facets?.get(option.value)" class="ml-auto flex h-4 w-4 items-center justify-center font-mono text-xs">
|
||||||
{{ facets.get(option.value) }}
|
{{ facets.get(option.value) }}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue
Block a user