Skip to content

Commit 32ed3b7

Browse files
jwmorelandJustin Moreland
andauthored
Removes header and footer tags (#63)
Leaves the slots for header and footer, but removes the tags. Developers can insert whatever markup they want. Co-authored-by: Justin Moreland <[email protected]>
1 parent 133a8c4 commit 32ed3b7

File tree

1 file changed

+2
-6
lines changed

1 file changed

+2
-6
lines changed

src/components/Sortable.vue

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -122,12 +122,8 @@ onUnmounted(() => {
122122

123123
<template>
124124
<component ref="containerRef" :is="$props.tag" :class="$props.class">
125-
<header v-if="$slots['header']">
126-
<slot name="header"></slot>
127-
</header>
125+
<slot name="header"></slot>
128126
<slot v-for="(item, index) of list" :key="getKey(item)" :element="item" :index="index" name="item"></slot>
129-
<footer v-if="$slots['footer']">
130-
<slot name="footer"></slot>
131-
</footer>
127+
<slot name="footer"></slot>
132128
</component>
133129
</template>

0 commit comments

Comments
 (0)