mirror of
https://github.com/nocodb/nocodb.git
synced 2026-05-01 14:06:55 +00:00
WIP barcode format select for barcode
This commit is contained in:
@@ -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">
|
||||
|
||||
Reference in New Issue
Block a user