<div class="modal fade" tabindex="-1" role="dialog" id="uploadFile">
    <div class="modal-dialog modal-dialog-centered modal-dialog-scrollable">
        <div class="modal-content">
            <div class="modal-header">
                <h5>文件上传</h5>
                <button type="button" class="close" data-dismiss="modal">&times;</button>
            </div>
            <div class="modal-body">
                <div class="container-fluid">
                    <div class="text-center small row mb-1" v-if="uploadError && uploadError.length > 0">
                        <div class="col-3 text-danger">上传失败</div>
                        <div class="col-8">
                            <b v-for="err in uploadError">@{{ err }}<br></b>
                        </div>
                    </div>
                </div>
                <div>
                    <input type="file" class=" form-control-file" id="upLoadFile-input" ref="file" @focus="uploadError = null">
                </div>
                <div>
                    <span class="text-secondary mt-1">文件大小不能超过5MB</span>
                </div>
            </div>
            <div class="modal-footer">
                <button class="btn btn-success" data-dismiss="modal" >取消</button>
                <button class="btn btn-success" @click="uploadFile()">开始上传</button>
            </div>
        </div>
    </div>
</div>
