style: remove field value and update the copy

This commit is contained in:
Amit Joki
2025-01-11 11:56:22 +05:30
parent 386fe31e14
commit fe337c5857
3 changed files with 28 additions and 18 deletions

View File

@@ -22,6 +22,7 @@ const generate = () => {
try {
JsBarcode(barcodeSvgRef.value, String(props.barcodeValue), {
format: props.barcodeFormat,
displayValue: false,
})
if (props.customStyle) {
if (barcodeSvgRef.value) {
@@ -76,12 +77,17 @@ onMounted(generate)
></svg>
<slot v-if="errorForCurrentInput" name="barcodeRenderError" />
<div v-if="props.showDownload" class="flex justify-end gap-2 mt-8">
<NcButton size="small" type="secondary" @click="copyAsPng">
<template #icon>
<GeneralIcon icon="copy" class="w-4 h-4" />
<NcTooltip>
<template #title>
{{ $t('labels.clickToCopy') }}
</template>
{{ $t('labels.copyAsPNG') }}
</NcButton>
<NcButton size="small" type="secondary" @click="copyAsPng">
<template #icon>
<GeneralIcon icon="copy" class="w-4 h-4" />
</template>
{{ $t('general.copy') }}
</NcButton>
</NcTooltip>
<NcTooltip>
<template #title>
{{ $t('labels.clickToDownload') }}
@@ -90,7 +96,7 @@ onMounted(generate)
<template #icon>
<GeneralIcon icon="download" class="w-4 h-4" />
</template>
{{ $t('labels.downloadAsPNG') }}
{{ $t('general.download') }}
</NcButton>
</NcTooltip>
</div>