mirror of
https://github.com/DiscordFactory/website-documentation.git
synced 2026-01-14 17:34:22 +01:00
🚧 Colorize module
This commit is contained in:
@@ -8,7 +8,7 @@
|
|||||||
<div
|
<div
|
||||||
v-for="color in item.colors"
|
v-for="color in item.colors"
|
||||||
:class="color"
|
:class="color"
|
||||||
class="h-14 w-14"
|
class="h-14 w-14 cursor-pointer"
|
||||||
:key="color"
|
:key="color"
|
||||||
@click.prevent="handleChoose(color)">
|
@click.prevent="handleChoose(color)">
|
||||||
</div>
|
</div>
|
||||||
@@ -74,7 +74,9 @@ function handleChoose (color: string) {
|
|||||||
}
|
}
|
||||||
|
|
||||||
function handleCopy () {
|
function handleCopy () {
|
||||||
navigator.clipboard.writeText(popover.color.replace(/-/g, '_').toUpperCase())
|
navigator.clipboard.writeText(
|
||||||
|
popover.color.replace(/-/g, '_').toUpperCase()
|
||||||
|
)
|
||||||
popover.show = false
|
popover.show = false
|
||||||
popover.color = null
|
popover.color = null
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user