fix(components): fix non-props cannot penetrate

This commit is contained in:
paynezhuang 2024-04-08 21:17:43 +08:00
parent 35310ed73c
commit c6b22b9536

View File

@ -47,7 +47,9 @@ const renderLocalIcon = computed(() => props.localIcon || !props.icon);
</svg>
</template>
<template v-else>
<Icon v-if="icon" :icon="icon" v-bind="bindAttrs" />
<div v-bind="bindAttrs">
<Icon v-if="icon" :icon="icon" />
</div>
</template>
</template>