Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions lib/components/decoration3/src/main.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,8 @@
<div class="dv-decoration-3" :ref="ref">
<svg :width="`${svgWH[0]}px`" :height="`${svgWH[1]}px`" :style="`transform:scale(${svgScale[0]},${svgScale[1]});`">

<template
v-for="(point, i) in points"
>
<template>
<div v-for="(point, i) in points">
<rect
:key="i"
:fill="mergedColor[0]"
Expand All @@ -22,6 +21,7 @@
repeatCount="indefinite"
/>
</rect>
</div>
</template>
</svg>
</div>
Expand Down
6 changes: 3 additions & 3 deletions lib/components/decoration6/src/main.vue
Original file line number Diff line number Diff line change
@@ -1,9 +1,8 @@
<template>
<div class="dv-decoration-6" :ref="ref">
<svg :width="`${svgWH[0]}px`" :height="`${svgWH[1]}px`" :style="`transform:scale(${svgScale[0]},${svgScale[1]});`">
<template
v-for="(point, i) in points"
>
<template>
<div v-for="(point, i) in points">
<rect
:key="i"
:fill="mergedColor[Math.random() > 0.5 ? 0 : 1]"
Expand Down Expand Up @@ -33,6 +32,7 @@
repeatCount="indefinite"
/>
</rect>
</div>
</template>
</svg>
</div>
Expand Down