修复图片组件

This commit is contained in:
yanran200830
2024-10-31 11:37:41 +08:00
parent 56ee90ed30
commit 11a9972329
4 changed files with 124558 additions and 111686 deletions

File diff suppressed because one or more lines are too long

View File

@@ -36,6 +36,10 @@
<i class="iconfont">&#xe76a;</i> <i class="iconfont">&#xe76a;</i>
<span>圆形</span> <span>圆形</span>
</div> </div>
<div class="ep-draggable-item item" tid="defaultModule.image">
<i class="iconfont">&#xe76a;</i>
<span>图片</span>
</div>
</div> </div>
<div class="title">常用元素</div> <div class="title">常用元素</div>
<div class="left-item__wrapper" id="custom-provider"> <div class="left-item__wrapper" id="custom-provider">
@@ -459,7 +463,8 @@
top: 58.5, top: 58.5,
src: src, src: src,
width: 100, width: 100,
height: 100 height: 100,
fit: 'contain'
} }
}) })
const el = this.hiprintTemplate.printPanels[0].printElements.at(-1) const el = this.hiprintTemplate.printPanels[0].printElements.at(-1)

View File

@@ -41,7 +41,7 @@ export const customProvider = function () {
$(`body>#codewrapper-${elId}`).remove() $(`body>#codewrapper-${elId}`).remove()
const resizeObserver = new ResizeObserver(() => { const resizeObserver = new ResizeObserver(() => {
JsBarcode('#' + elId, printData.labelCode, { JsBarcode('#' + elId, printData.labelCode, {
format: "CODE128B", format: "CODE128B",
width: 2, width: 2,
height: parseInt(hinnn.pt.toPx(options.height - 22).toString()) * 0.6, height: parseInt(hinnn.pt.toPx(options.height - 22).toString()) * 0.6,
@@ -119,6 +119,7 @@ export const customProvider = function () {
title: '图片', title: '图片',
type: 'image', type: 'image',
options: { options: {
contain: 'contain',
src: 'http://lyshunong.oss-cn-beijing.aliyuncs.com/image/material/a6e14259412606502e49f1abd866039.png', src: 'http://lyshunong.oss-cn-beijing.aliyuncs.com/image/material/a6e14259412606502e49f1abd866039.png',
} }
} }

File diff suppressed because one or more lines are too long