commit
f8130d731d
1 changed files with 5 additions and 3 deletions
|
|
@ -2,7 +2,7 @@
|
||||||
import { Button } from '#components'
|
import { Button } from '#components'
|
||||||
import { Download } from 'lucide-vue-next'
|
import { Download } from 'lucide-vue-next'
|
||||||
import QRCodeStyling from 'qr-code-styling'
|
import QRCodeStyling from 'qr-code-styling'
|
||||||
import { ref, watch } from 'vue'
|
import { onMounted, ref, watch } from 'vue'
|
||||||
|
|
||||||
const props = defineProps({
|
const props = defineProps({
|
||||||
data: {
|
data: {
|
||||||
|
|
@ -102,12 +102,14 @@ onMounted(() => {
|
||||||
<div
|
<div
|
||||||
ref="qrCodeEl"
|
ref="qrCodeEl"
|
||||||
:data-text="data"
|
:data-text="data"
|
||||||
|
class="bg-white p-1 rounded-lg"
|
||||||
/>
|
/>
|
||||||
<div class="flex items-center gap-2">
|
<div class="flex items-center gap-4">
|
||||||
<div class="relative flex items-center">
|
<div class="relative flex items-center">
|
||||||
<div
|
<div
|
||||||
class="w-8 h-8 rounded-full border cursor-pointer overflow-hidden"
|
class="w-8 h-8 rounded-full border border-gray-300 dark:border-gray-600 cursor-pointer overflow-hidden"
|
||||||
:style="{ backgroundColor: color }"
|
:style="{ backgroundColor: color }"
|
||||||
|
title="Change QR code color"
|
||||||
>
|
>
|
||||||
<input
|
<input
|
||||||
v-model="color"
|
v-model="color"
|
||||||
|
|
|
||||||
Loading…
Reference in a new issue