mirror of
https://codeup.aliyun.com/67762337eccfc218f6110e0e/vue/learning-system-portal.git
synced 2025-12-11 20:06:44 +08:00
修改上传图片格式
This commit is contained in:
@@ -20,7 +20,7 @@
|
||||
<div slot="error" class="image-slot" >
|
||||
<i class="el-icon-upload"></i>
|
||||
<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>
|
||||
</el-image>
|
||||
<div v-else class="image" :style="`width:${width};height:${height};`">
|
||||
@@ -82,7 +82,7 @@ export default {
|
||||
},
|
||||
accept:{
|
||||
type:String,
|
||||
default:'.png,.jpg,.gif'
|
||||
default:'.png,.jpg,.gif,.jpeg,.bmp'
|
||||
},
|
||||
value: {
|
||||
type: String,
|
||||
|
||||
Reference in New Issue
Block a user