Compare commits

..

No commits in common. "dfb9392cda4c8476fd339951e0ecc6cc40bc52db" and "b8478e6451fb94fd9b2e7aa4572cefafc5ae31c6" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View File

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

View File

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