fix : 上传文件表格滚动时, 表头固定

This commit is contained in:
2024-07-13 14:18:47 +08:00
parent 3e1db9c1a4
commit b1309fae57
11 changed files with 11 additions and 23 deletions

View File

@@ -2,7 +2,7 @@
<el-form :label-position="labelAlign">
<el-form-item :label="title?'其他文件':''" v-if="fileListShow === 'READ' || fileListShow === 'EDIT'" :label-position="labelAlign" :label-width="title?95:''">
<file-upload @getFile="getOtherFile" v-if="fileListShow === 'EDIT'"/>
<fvTable style="width: 100%;max-height: 300px;" v-if="processViewer" :tableConfig="tableConfig"
<fvTable style="width: 100%;max-height: 300px;" v-if="processViewer" height="300" :tableConfig="tableConfig"
:data="_value" :isSettingCol="false" :pagination="false">
<template #empty>
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
@@ -51,7 +51,6 @@ const tableConfig = reactive({
label: '序号',
align: 'center',
width: 85,
fixed:true
},
{
prop: 'originalFileName',

View File

@@ -41,7 +41,7 @@
<baseTitle title="附件列表"></baseTitle>
<el-col :span="24">
<el-form-item>
<fvTable style="width: 100%;max-height: 300px;" v-if="showTable" :tableConfig="fileTable"
<fvTable style="width: 100%;max-height: 300px;" height="300" v-if="showTable" :tableConfig="fileTable"
:data="formData.files" :isSettingCol="false" :pagination="false">
<template #empty>
<el-empty :image-size="90" description="暂无数据" style="padding: 0"/>
@@ -166,7 +166,6 @@ const fileTable = reactive({
label: '序号',
align: 'center',
width: '80',
fixed:true
},
{
prop: 'originalFileName',