代码拉取完成,页面将自动刷新
{
label: '图标',
prop: 'pic',
type: 'upload',
listType: 'picture-card',
accept: 'image/png, image/jpeg',
limit: 1,
fileSize: 1024 * 10,
span: 24,
propsHttp: {
res: 'data',
url: 'link'
},
tip: '只能上传jpg/png图标,且不超过10M',
action: '/mro-resource/oss/endpoint/put-file'
},
]
没显示预览图
图片地址是啥
此处可能存在不合适展示的内容,页面不予展示。您可通过相关编辑功能自查并修改。
如您确认内容无涉及 不当用语 / 纯广告导流 / 暴力 / 低俗色情 / 侵权 / 盗版 / 虚假 / 无价值内容或违法国家有关法律法规的内容,可点击提交进行申诉,我们将尽快为您处理。
图片上传成功后就变成了一个小点
<template>
<el-row>
<el-col :span="15">
<basic-container>
<avue-form ref="form" :option="regionOption" v-model="regionForm" @submit="handleSubmit">
</avue-form>
</el-col>
</el-row>
</template>
regionOption: {
labelWidth: 100,
column: [
{
label: '图标',
prop: 'pic',
type: 'upload',
listType: 'picture-img',
accept: 'image/png, image/jpeg',
limit: 1,
fileSize: 1024 * 10,
span: 24,
propsHttp: {
res: 'data',
url: 'link',
home: 'domain'
},
tip: '只能上传jpg/png图标,且不超过10M',
action: '/mro-resource/oss/endpoint/put-file'
}]}
登录 后才可以发表评论