给input标签设置 style=“opacity: 0;” 然后在外面嵌套一层div设置自己的样式,给到相对定位改变文字位置
<div class="" style="display: flex;flex-direction: row;margin:15px 6%;">
<p style="color: #fff;position: absolute;left:142px;top:59px;">选择文件</p>
<div class="" style="background-color: #5cb85c;color: #fff;width: 82px;height: 34px;">
<input ref="input" type="file" id="uploader" @change="handleFiles" style="opacity: 0;">
</div>
</div>