Commit 70908e184d8fe2e6aa086eee066bbf820b83debc
1 parent
1c501d77
上传图片组件大小不一致问题
Showing
1 changed file
with
1 additions
and
1 deletions
ant-design-vue-jeecg/src/components/jeecg/JImageUpload.vue
... | ... | @@ -15,7 +15,7 @@ |
15 | 15 | @change="handleChange" |
16 | 16 | @preview="handlePreview" |
17 | 17 | :class="!isMultiple?'imgupload':''"> |
18 | - <div style="width:104px;height:104px"> | |
18 | + <div :style="{'width':(!isMultiple?'104px':'auto'),'height':(!isMultiple?'104px':'auto')}"> | |
19 | 19 | <img v-if="!isMultiple && picUrl" :src="getAvatarView()" style="width:100%;height:100%"/> |
20 | 20 | <div v-else class="iconp"> |
21 | 21 | <a-icon :type="uploadLoading ? 'loading' : 'plus'" /> |
... | ... |