Skip to content

Commit 109c149

Browse files
authored
Fix/build mode bug (#38)
* Fix FancyArrow.vue to avoid the problem of slidevjs/slidev#2097 * Fix comment * Add changeset
1 parent ac939ae commit 109c149

File tree

2 files changed

+6
-1
lines changed

2 files changed

+6
-1
lines changed

.changeset/huge-rules-carry.md

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
---
2+
"slidev-addon-fancy-arrow": patch
3+
---
4+
5+
Resolve the problem in the build mode

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 <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)