mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-12 04:16:45 +08:00
修改上传图片格式
This commit is contained in:
@@ -20,7 +20,7 @@
|
|||||||
<div slot="error" class="image-slot" >
|
<div slot="error" class="image-slot" >
|
||||||
<i class="el-icon-upload"></i>
|
<i class="el-icon-upload"></i>
|
||||||
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
<div class="el-upload__text">将文件拖到此处,或<em>点击上传</em></div>
|
||||||
<div class="el-upload__tip" slot="tip">只能上传jpg/png文件,且不超过500kb</div>
|
<div class="el-upload__tip" slot="tip">只能上传jpg/png/bmp/jpeg文件,且不超过500kb</div>
|
||||||
</div>
|
</div>
|
||||||
</el-image>
|
</el-image>
|
||||||
<div v-else class="image" :style="`width:${width};height:${height};`">
|
<div v-else class="image" :style="`width:${width};height:${height};`">
|
||||||
@@ -82,7 +82,7 @@ export default {
|
|||||||
},
|
},
|
||||||
accept:{
|
accept:{
|
||||||
type:String,
|
type:String,
|
||||||
default:'.png,.jpg,.gif'
|
default:'.png,.jpg,.gif,.jpeg,.bmp'
|
||||||
},
|
},
|
||||||
value: {
|
value: {
|
||||||
type: String,
|
type: String,
|
||||||
|
|||||||
Reference in New Issue
Block a user