Skip to content

Commit 17d090a

Browse files
committed
Fix FancyArrow.vue to avoid the problem of slidevjs/slidev#2097
1 parent 13f9f2b commit 17d090a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

components/FancyArrow.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -45,8 +45,8 @@ const { arcSvg, textPosition } = useRoughArrow({
4545
</script>
4646

4747
<template>
48-
<!-- Use use <div v-if> as a root element here because <template v-if> doesn't work with v-click on Slidev -->
4948
<div v-if="point1 && point2" style="position: absolute; top: 0; left: 0">
49+
<!-- Use use <div v-if> as a root element above because <template v-if> doesn't work with v-click on Slidev -->
5050
<svg
5151
ref="container"
5252
:class="props.color ? `text-${props.color}` : ''"

0 commit comments

Comments
 (0)