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

View File

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

View File

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

View File

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

View File

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