One of them needed a patch in primevue 4.4.2 which was release only 2 weeks ago.
34 lines
560 B
Vue
34 lines
560 B
Vue
<script setup lang="ts">
|
|
import { defineProps } from 'vue';
|
|
|
|
import { renderSVG } from 'uqr';
|
|
|
|
const { content } = defineProps({
|
|
content: {
|
|
type: String,
|
|
required: true,
|
|
},
|
|
});
|
|
|
|
const svg = renderSVG(content);
|
|
</script>
|
|
|
|
<template>
|
|
<div class="qr-code">
|
|
<!-- <span class="uuid">1337-9339</span>-->
|
|
<div :innerHTML="svg"></div>
|
|
</div>
|
|
</template>
|
|
|
|
<style scoped>
|
|
.qr-code {
|
|
aspect-ratio: 1 / 1;
|
|
background-color: white;
|
|
padding: 3px;
|
|
}
|
|
.uuid {
|
|
color: rgba(51, 51, 51, 0.91);
|
|
font-size: 90%;
|
|
font-family: monospace;
|
|
}
|
|
</style>
|