🚧 Colorize module

This commit is contained in:
Freeze455
2021-09-05 15:22:24 +02:00
parent 55b2df2436
commit 9767f0a79c

View File

@@ -8,7 +8,7 @@
<div
v-for="color in item.colors"
:class="color"
class="h-14 w-14"
class="h-14 w-14 cursor-pointer"
:key="color"
@click.prevent="handleChoose(color)">
</div>
@@ -74,7 +74,9 @@ function handleChoose (color: string) {
}
function handleCopy () {
navigator.clipboard.writeText(popover.color.replace(/-/g, '_').toUpperCase())
navigator.clipboard.writeText(
popover.color.replace(/-/g, '_').toUpperCase()
)
popover.show = false
popover.color = null
}