feat(BasicButton): BasicButton组件支持icon插槽
parent
0b3a5f2ff3
commit
f2a54807e8
|
@ -45,6 +45,9 @@ const getBindValue = computed(() => ({ ...unref(attrs), ...props }))
|
|||
: '',
|
||||
}" :class="getButtonClass" @click="onClick"
|
||||
>
|
||||
<template #icon>
|
||||
<slot name="icon" />
|
||||
</template>
|
||||
<template #default="data">
|
||||
<Icon v-if="preIcon" :icon="preIcon" :size="iconSize" />
|
||||
<slot v-bind="data || {}" />
|
||||
|
|
Loading…
Reference in New Issue