fix: 修复某些页面的表格滚动高度不正确的问题

This commit is contained in:
Xu Zhimeng 2023-07-07 17:45:51 +08:00
parent a7248af1b4
commit 3c92cbff86
5 changed files with 5 additions and 5 deletions

View File

@ -29,7 +29,7 @@
:loading="loading"
@change="handleTableChange"
:selectedRowKeys.sync="selectedRowKeys"
:scroll="{ y: 'calc(100vh - 365px)' }"
:scroll="{ y: 'calc(100vh - 395px)' }"
>
<template slot="index" slot-scope="{ index }">
{{ index + 1 }}

View File

@ -43,7 +43,7 @@
:dataSource="dataSource"
:pagination="ipagination"
:loading="loading"
:scroll="{ y: 'calc(100vh - 400px)' }"
:scroll="{ y: 'calc(100vh - 402px)' }"
@change="handleTableChange">
<span slot="action" slot-scope="text, record">
<a @click="handleEdit(record)">

View File

@ -21,7 +21,7 @@
:pagination="false"
:dataSource="dataSource"
:loading="loading"
:scroll="{ y: 'calc(100vh - 285px)'}"
:scroll="{ y: 'calc(100vh - 290px)'}"
@expand="expandSubmenu"
:expandedRowKeys="expandedRowKeys"
:rowSelection="{selectedRowKeys: selectedRowKeys, onChange: onSelectChange}"

View File

@ -29,7 +29,7 @@
:loading="loading"
@change="handleTableChange"
:selectedRowKeys.sync="selectedRowKeys"
:scroll="{ y: 'calc(100vh - 365px)' }"
:scroll="{ y: 'calc(100vh - 370px)' }"
>
<template slot="index" slot-scope="{ index }">
{{ index + 1 }}

View File

@ -29,7 +29,7 @@
:loading="loading"
@change="handleTableChange"
:selectedRowKeys.sync="selectedRowKeys"
:scroll="{ y: 'calc(100vh - 365px)' }"
:scroll="{ y: 'calc(100vh - 370px)' }"
>
<template slot="index" slot-scope="{ index }">
{{ index + 1 }}