Skip to content

Commit 237afa8

Browse files
fix and adjust slots to render closer to original drawer. It forces all of the slots to render inside of the default slot, but still passes the default slot.
1 parent acdc917 commit 237afa8

File tree

3 files changed

+15
-3
lines changed

3 files changed

+15
-3
lines changed

src/plugin/VResizeDrawer.vue

Lines changed: 9 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -44,15 +44,21 @@
4444
<!-- ============================== Slots -->
4545
<!-- Prepend Slot -->
4646
<template v-if="slots.prepend">
47-
<slot name="prepend"></slot>
47+
<div class="v-navigation-drawer__prepend">
48+
<slot name="prepend"></slot>
49+
</div>
4850
</template>
4951

5052
<!-- Default Slot -->
51-
<slot name="default"></slot>
53+
<div class="v-navigation-drawer__content">
54+
<slot></slot>
55+
</div>
5256

5357
<!-- Append Slot -->
5458
<template v-if="slots.append">
55-
<slot name="append"></slot>
59+
<div class="v-navigation-drawer__append">
60+
<slot name="append"></slot>
61+
</div>
5662
</template>
5763
</v-navigation-drawer>
5864
</template>

src/plugin/composables/classes.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@ export const useHandleContainerClasses: UseHandleContainerClasses = (options) =>
3636
const { drawerLocation, handlePosition } = options;
3737

3838
const classes = {
39+
'v-navigation-drawer__handle': true,
3940
[`${componentName}--handle-container`]: true,
4041
[`${componentName}--handle-container-position-${handlePosition}`]: true,
4142
[`${componentName}--handle-container-parent-${drawerLocation}`]: true,

src/plugin/styles/main.scss

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,11 @@
129129
position: relative;
130130
}
131131
}
132+
133+
> .v-navigation-drawer__content {
134+
display: flex;
135+
flex-direction: column;
136+
}
132137
}
133138

134139

0 commit comments

Comments
 (0)