Skip to content

Commit

Permalink
fix: slots worked in basicTable and basicModal
Browse files Browse the repository at this point in the history
修复basicTable和basicModal的插槽传递异常的问题
  • Loading branch information
mynetfan committed Aug 17, 2021
1 parent 837a365 commit 5138e44
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/components/Modal/src/BasicModal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
</ModalWrapper>

<template #[item]="data" v-for="item in Object.keys(omit($slots, 'default'))">
<slot :name="item" v-bind="data"></slot>
<slot :name="item" v-bind="data || {}"></slot>
</template>
</Modal>
</template>
Expand Down
2 changes: 1 addition & 1 deletion src/components/Table/src/BasicTable.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
@advanced-change="redoHeight"
>
<template #[replaceFormSlotKey(item)]="data" v-for="item in getFormSlotKeys">
<slot :name="item" v-bind="data"></slot>
<slot :name="item" v-bind="data || {}"></slot>
</template>
</BasicForm>

Expand Down

0 comments on commit 5138e44

Please sign in to comment.