WIP barcode format select for barcode

This commit is contained in:
flisowna
2022-12-05 18:49:37 +03:00
parent d84eb431b6
commit 9e2d663a58
3 changed files with 32 additions and 6 deletions

View File

@@ -1,5 +1,4 @@
<script setup lang="ts">
// import VueBarcode from '@chenfengyuan/vue-barcode'
<script setup lang="ts">
import JsBarcodeWrapper from './JsBarcodeWrapper'
const maxNumberOfAllowedCharsForQrValue = 2000
@@ -10,7 +9,6 @@ const barcodeValue = computed(() => String(cellValue?.value))
const tooManyCharsForQrCode = computed(() => barcodeValue?.value.length > maxNumberOfAllowedCharsForQrValue)
const modalVisible = ref(false)
const showQrModal = (ev: MouseEvent) => {
@@ -31,9 +29,6 @@ const { showEditNonEditableFieldWarning, showClearNonEditableFieldWarning } = us
:body-style="{ padding: '0px' }"
@ok="handleModalOkClick"
>
<template #footer>
<div class="mr-4" data-testid="nc-qr-code-large-value-label">{{ barcodeValue }}</div>
</template>
<JsBarcodeWrapper v-if="barcodeValue && !tooManyCharsForQrCode" tag="svg" :value="barcodeValue" width="3" />
</a-modal>
<div @click="showQrModal">