fix: vben tree component warning (#5809)

This commit is contained in:
Netfan 2025-03-28 16:01:30 +08:00 committed by GitHub
parent 3c2d325d8c
commit c2b5f6497d
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -210,7 +210,7 @@ defineExpose({
v-slot="{ flattenItems }" v-slot="{ flattenItems }"
:class=" :class="
cn( cn(
'text-blackA11 select-none list-none rounded-lg p-2 text-sm font-medium', 'text-blackA11 container select-none list-none rounded-lg p-2 text-sm font-medium',
$attrs.class as unknown as ClassType, $attrs.class as unknown as ClassType,
bordered ? 'border' : '', bordered ? 'border' : '',
) )
@ -219,11 +219,7 @@ defineExpose({
<div class="w-full" v-if="$slots.header"> <div class="w-full" v-if="$slots.header">
<slot name="header"> </slot> <slot name="header"> </slot>
</div> </div>
<TransitionGroup <TransitionGroup :name="transition ? 'fade' : ''">
:name="transition ? 'fade' : ''"
mode="out-in"
class="container"
>
<TreeItem <TreeItem
v-for="item in flattenItems" v-for="item in flattenItems"
v-slot="{ v-slot="{