修复样式bug
This commit is contained in:
@@ -351,5 +351,28 @@ table.hiprint-printElement-tableTarget {
|
|||||||
.temuBarCode {
|
.temuBarCode {
|
||||||
display: flex;
|
display: flex;
|
||||||
flex-direction: column;
|
flex-direction: column;
|
||||||
padding: 1pt 3pt;
|
justify-content: space-between;
|
||||||
|
align-items: center;
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
padding: 10pt 10pt;
|
||||||
|
border: 1pt solid #000;
|
||||||
|
}
|
||||||
|
|
||||||
|
.temuBarCode-code {
|
||||||
|
width: 100%;
|
||||||
|
height: 100%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.temuBarCode-top,
|
||||||
|
.temuBarCode-bottom {
|
||||||
|
display: flex;
|
||||||
|
align-items: center;
|
||||||
|
justify-content: space-between;
|
||||||
|
width: 90%;
|
||||||
|
}
|
||||||
|
|
||||||
|
.temuBarCode-middle {
|
||||||
|
width: 80%;
|
||||||
|
height: 60%;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -21,6 +21,7 @@
|
|||||||
}
|
}
|
||||||
|
|
||||||
.temuBarCode-code {
|
.temuBarCode-code {
|
||||||
|
width: 100%;
|
||||||
height: 100%;
|
height: 100%;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
@@ -15,8 +15,8 @@ export const customProvider = function (options) {
|
|||||||
$('body').append('<svg id="' + elId + '" width="100%" display="block" height="100%" class="hibarcode_imgcode" preserveAspectRatio="none slice"></svg>')
|
$('body').append('<svg id="' + elId + '" width="100%" display="block" height="100%" class="hibarcode_imgcode" preserveAspectRatio="none slice"></svg>')
|
||||||
|
|
||||||
console.log(options.width * 0.8)
|
console.log(options.width * 0.8)
|
||||||
JsBarcode('#'+ elId, '1234567890', {
|
JsBarcode('#'+ elId, '96778555251', {
|
||||||
format: "code128",
|
format: "CODE128",
|
||||||
width: 2,
|
width: 2,
|
||||||
height: options.height * 0.6,
|
height: options.height * 0.6,
|
||||||
margin: 0,
|
margin: 0,
|
||||||
|
|||||||
Reference in New Issue
Block a user