Skip to content

Commit

Permalink
Merge pull request #115 from sukiyue/feature/tarnsfer-modal-slot-1.7
Browse files Browse the repository at this point in the history
feat:v1.7穿梭框组件增加插槽
  • Loading branch information
liujunleo authored Oct 9, 2023
2 parents 8f7043b + d307245 commit eb5b144
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 3 deletions.
13 changes: 11 additions & 2 deletions components/transfer-modal/index.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
<!--
* @Description: 穿梭弹窗组件(共享用户、授权用户等,需要在多个可选项中进行多选时的场景)
* @Date: 2021-03-01 10:05:26
* @LastEditTime: 2022-03-28 22:42:10
* @LastEditTime: 2023-10-09 15:14:17
-->
<template>
<a-modal
Expand All @@ -27,7 +27,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
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@young-datafan/datafan-ui",
"version": "1.7.107",
"version": "1.7.108",
"description": "",
"main": "components/index.js",
"scripts": {
Expand Down

0 comments on commit eb5b144

Please sign in to comment.