Skip to content

Commit

Permalink
Merge pull request #116 from sukiyue/feature/transfer-modal-slot-1.6
Browse files Browse the repository at this point in the history
feat:v1.6穿梭框组件增加插槽
  • Loading branch information
liujunleo authored Oct 9, 2023
2 parents 3de224d + aa7ed74 commit 6e7255b
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion components/transfer-modal/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,16 @@
@change="onTransferChange"
v-bind="$attrs"
v-on="$listeners"
></a-transfer>
>
<!-- 插槽 -->
<template
v-for="slot in Object.keys($scopedSlots)"
:slot="slot"
slot-scope="scope"
>
<slot :name="slot" v-bind="scope" />
</template>
</a-transfer>
</a-spin>
</a-modal>
</template>
Expand Down

0 comments on commit 6e7255b

Please sign in to comment.