Skip to content

Commit 9395fab

Browse files
committed
feat(render): Remove surrounding divs in render function
1 parent 49a04e7 commit 9395fab

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

src/components/hideAt.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
}
4545
4646
if (shouldRender) {
47-
return (<div>{ this.$slots.default }</div>)
47+
return this.$slots.default[0]
4848
}
4949
return null
5050
}

src/components/showAt.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@
4444
}
4545
4646
if (shouldRender) {
47-
return (<div>{ this.$slots.default }</div>)
47+
return this.$slots.default[0]
4848
}
4949
return null
5050
}

0 commit comments

Comments
 (0)