feat(BasicButton): BasicButton组件支持icon插槽. close #1377
This commit is contained in:
parent
f5f7952515
commit
5aac032acc
|
|
@ -1,5 +1,8 @@
|
|||
<template>
|
||||
<Button v-bind="getBindValue" :class="getButtonClass" @click="onClick">
|
||||
<template #icon>
|
||||
<slot name="icon"></slot>
|
||||
</template>
|
||||
<template #default="data">
|
||||
<Icon :icon="preIcon" v-if="preIcon" :size="iconSize" />
|
||||
<slot v-bind="data || {}"></slot>
|
||||
|
|
|
|||
Loading…
Reference in New Issue