Skip to content

Commit

Permalink
refactor(vue3/modal): removed defineSlots
Browse files Browse the repository at this point in the history
  • Loading branch information
achaaoui-yc committed Nov 20, 2024
1 parent cfe1279 commit 4423478
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions packages/vue3/src/components/Modal/Modal.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,6 @@ const props = withDefaults(defineProps<ModalProps>(), {
const emit = defineEmits(['update:visible', 'onConfirm']);
const slots = defineSlots<{
default(): any
footer?(): any
}>();
const close = () => {
emit('update:visible', false);
};
Expand Down Expand Up @@ -52,7 +47,7 @@ onUnmounted(() => {
<slot />
</div>
<div class="footer">
<div v-if="!!slots.footer">
<div v-if="$slots.footer">
<slot name="footer" />
</div>
<div v-else class="footer-content">
Expand Down

0 comments on commit 4423478

Please sign in to comment.