fix : 上传文件表格滚动时, 表头固定
This commit is contained in:
@@ -15,7 +15,7 @@
|
||||
<file-upload @getFile="getAttachment" :multiple="false"
|
||||
:disabled="isSingleFile" ref="fileUploadRef"/>
|
||||
<!-- :showFileList="showFileList" @delete="deleteAttachment"-->
|
||||
<fvTable style="width: 100%;max-height: 80px;" v-if="showSingleTable" :tableConfig="singleTableConfig"
|
||||
<fvTable style="width: 100%;max-height: 80px;" v-if="showSingleTable" height="80" :tableConfig="singleTableConfig"
|
||||
:data="singleFileList" :isSettingCol="false" :pagination="false">
|
||||
<template #empty>
|
||||
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
|
||||
@@ -28,7 +28,7 @@
|
||||
<el-form-item label="其他文件" label-width="125">
|
||||
<file-upload @getFile="getOtherFile"/>
|
||||
<!-- <el-card style="width: 100%;box-shadow: none">-->
|
||||
<fvTable style="width: 100%;max-height: 300px;" v-if="showTable" :tableConfig="tableConfig"
|
||||
<fvTable style="width: 100%;max-height: 300px;" v-if="showTable" height="300" :tableConfig="tableConfig"
|
||||
:data="allFileList" :isSettingCol="false" :pagination="false">
|
||||
<template #empty>
|
||||
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
|
||||
@@ -97,7 +97,6 @@ const tableConfig = reactive({
|
||||
label: '序号',
|
||||
align: 'center',
|
||||
width: '80',
|
||||
fixed:true
|
||||
},
|
||||
{
|
||||
prop: 'originalFileName',
|
||||
@@ -160,7 +159,6 @@ const singleTableConfig = reactive({
|
||||
label: '序号',
|
||||
align: 'center',
|
||||
width: '80',
|
||||
fixed:true
|
||||
},
|
||||
{
|
||||
prop: 'originalFileName',
|
||||
|
||||
Reference in New Issue
Block a user