fix(测试跟踪): 预览备注图片显示异常

--bug=1017054 --user=宋昌昌 【测试跟踪】预览备注中图片显示异常 https://www.tapd.cn/55049933/s/1301615
This commit is contained in:
song-cc-rock 2022-11-22 17:44:19 +08:00 committed by jianxing
parent e49cc59632
commit c7c1b6382e
1 changed files with 4 additions and 5 deletions

View File

@ -217,11 +217,11 @@ export default {
let imgTag = document.createElement("img"); let imgTag = document.createElement("img");
imgTag.src = url; imgTag.src = url;
imgTag.classList.add("el-image-viewer__img"); imgTag.classList.add("el-image-viewer__img");
imgTag.style.transformStyle = "scale(1) rotate(0deg)"; imgTag.style.marginLeft = "10px";
imgTag.style.marginLeft = "0px"; imgTag.style.marginTop = "10px";
imgTag.style.marginTop = "0px";
imgTag.style.maxHeight = "100%"; imgTag.style.maxHeight = "100%";
imgTag.style.maxWidth = "100%"; imgTag.style.maxWidth = "100%";
imgTag.style['transform'] = 'scale(1) rotate(0deg)';
// el-image-viewer__canvasdiv // el-image-viewer__canvasdiv
let canvas = document.createElement("div"); let canvas = document.createElement("div");
canvas.classList.add("el-image-viewer__canvas"); canvas.classList.add("el-image-viewer__canvas");
@ -243,8 +243,8 @@ export default {
wrap.addEventListener("click", function () { wrap.addEventListener("click", function () {
wrap.remove(); wrap.remove();
}); });
wrap.appendChild(canvas);
wrap.appendChild(mask); wrap.appendChild(mask);
wrap.appendChild(canvas);
// body // body
let first = document.body.firstChild; let first = document.body.firstChild;
// div // div
@ -272,5 +272,4 @@ export default {
:deep(.v-note-op .v-left-item.transition .add-image-link-wrapper .add-image-link .op-btn.sure) { :deep(.v-note-op .v-left-item.transition .add-image-link-wrapper .add-image-link .op-btn.sure) {
background: #783887; background: #783887;
} }
</style> </style>