- Impostato i Font giusti e la corretta disposizione del testo e dei suoi margini.
- L'immagine del libro, se è piccolo, viene adattato alla dimensione fissa (vedere se va bene).
This commit is contained in:
@@ -25,6 +25,11 @@ export default defineComponent({
|
||||
default: '',
|
||||
},
|
||||
width: {
|
||||
type: Number,
|
||||
required: false,
|
||||
default: 50,
|
||||
},
|
||||
widthlines: {
|
||||
type: Number,
|
||||
required: false,
|
||||
default: 2,
|
||||
@@ -45,18 +50,18 @@ export default defineComponent({
|
||||
const { t } = useI18n();
|
||||
|
||||
// Converti le props in riferimenti reattivi
|
||||
const { value, format, width, height, fontsize } = toRefs(props);
|
||||
const { value, format, width, widthlines, height, fontsize } = toRefs(props);
|
||||
|
||||
// Funzione per disegnare il codice a barre
|
||||
const drawBarcode = () => {
|
||||
JsBarcode("#C" + value.value, value.value, {
|
||||
format: format.value,
|
||||
width: width.value,
|
||||
width: widthlines.value,
|
||||
height: height.value,
|
||||
displayValue: true,
|
||||
lineColor: "#000",
|
||||
font: "monospace",
|
||||
margin: 1,
|
||||
margin: 0,
|
||||
textMargin: 0,
|
||||
marginTop: 0,
|
||||
fontSize: fontsize.value,
|
||||
|
||||
Reference in New Issue
Block a user