1、添加style样式:style="display: inline-block"
<el-upload
style="display: inline-block; margin-left: 10px"
element-loading-text="数据上传中..."
v-loading.fullscreen.lock="loading"
class="upload-demo"
ref="upload"
action=""
:limit="1"
:show-file-list="false"
:before-upload="function (file) { return handleUploadByExpert(file, scope.row)}"
>
<el-button size="mini" type="text">单个上传</el-button>
</el-upload>
2、添加全局样式:
<el-table-column prop="name" label="科目名称">
<template slot-scope="scope">
<span>{{scope.row.name}}-{{scope.row.code}}</span>
</template>
</el-table-column>