[update] 修改文件上传提示格式大小样式
This commit is contained in:
@@ -1,5 +1,5 @@
|
||||
<template>
|
||||
<div :id="containerId" style="position: relative">
|
||||
<div :id="containerId" class="upload-div" style="position: relative">
|
||||
<a-upload
|
||||
name="file"
|
||||
:action="uploadAction"
|
||||
@@ -27,8 +27,8 @@
|
||||
<a-icon type="upload" />
|
||||
{{ text ? text : $t('clickToUpload') }}
|
||||
</a-button>
|
||||
<p>{{ tips }}</p>
|
||||
</slot>
|
||||
<p class="tips">{{ tips }}</p>
|
||||
</template>
|
||||
</a-upload>
|
||||
|
||||
@@ -513,4 +513,18 @@ export default {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
.upload-div {
|
||||
&>span {
|
||||
display: inline-block;
|
||||
width: 100%;
|
||||
/deep/ .ant-upload {
|
||||
width: 100% !important;
|
||||
}
|
||||
}
|
||||
}
|
||||
.tips {
|
||||
width: 100%;
|
||||
word-break: break-all;
|
||||
}
|
||||
</style>
|
||||
|
||||
Reference in New Issue
Block a user