|
|
|
@ -138,8 +138,9 @@ const uploadSuccess = (response: any, uploadFile: any, uploadFiles: any) => { |
|
|
|
// console.log("uploadSuccess=fileList==>",fileList) |
|
|
|
} |
|
|
|
</script> |
|
|
|
<template>{{types}} |
|
|
|
<div> |
|
|
|
<template><!-- {'{types}} --> |
|
|
|
<div style="width: 100%; |
|
|
|
display: inline;"> |
|
|
|
<el-upload |
|
|
|
v-bind="props.control" |
|
|
|
:action="uploadUrl" |
|
|
|
@ -162,7 +163,8 @@ const uploadSuccess = (response: any, uploadFile: any, uploadFiles: any) => { |
|
|
|
<el-button type="primary" plain v-if="props.config?.btnText"> |
|
|
|
{{ props.config?.btnText }} |
|
|
|
</el-button> |
|
|
|
<i v-else class="icon-plus"><i class="fa fa-paperclip" ></i></i> |
|
|
|
<!-- <i v-else class="icon-plus"><i class="fa fa-paperclip" ></i></i> --> |
|
|
|
<el-button v-else style="color:grey;font-weight: bolder;"><el-icon style="margin-right: 7px;font-weight: bolder;"><Plus /></el-icon>上传文件</el-button> |
|
|
|
</template> |
|
|
|
<template #tip v-if="props.config?.tip"> |
|
|
|
<div class="el-upload__tip"> |
|
|
|
@ -172,6 +174,15 @@ const uploadSuccess = (response: any, uploadFile: any, uploadFiles: any) => { |
|
|
|
</el-upload> |
|
|
|
</div> |
|
|
|
</template> |
|
|
|
<style lang='scss' scoped> |
|
|
|
<style lang='scss' > |
|
|
|
.el-upload-list__item { |
|
|
|
border-radius: 4px; |
|
|
|
box-sizing: border-box; |
|
|
|
color: var(--el-text-color-regular); |
|
|
|
font-size: 14px; |
|
|
|
margin-bottom: 5px; |
|
|
|
position: relative; |
|
|
|
transition: all .5s cubic-bezier(.55,0,.1,1); |
|
|
|
|
|
|
|
} |
|
|
|
</style> |