caiyiling 2024-09-11 17:02:17 +08:00
parent 9e83d51037
commit 86c05070b3
2 changed files with 6 additions and 3 deletions

View File

@ -486,9 +486,13 @@ export default {
}
/deep/ .el-upload-list__item {
transition: none !important;
width: 140px;
height: 140px;
margin: 0 10px 5px 0;
}
/deep/ .el-upload-list__item-thumbnail {
/* 图片在方框内显示长边 */
width: 100%;
object-fit: scale-down !important;
}
}

View File

@ -907,11 +907,10 @@ export default {
this.$refs[refName].$viewer.show()
} else {
this.imagesList = [this.OSSclientConfig.basePath + url]
if(this.$refs[url] instanceof Array){
let refName = type ? `${url}_${type}` : url
if(this.$refs[refName] instanceof Array){
this.$refs[refName][0].$viewer.show()
}else{
let refName = type ? `${url}_${type}` : url
this.$refs[refName].$viewer.show()
}
}