修改控制表格的高度,处理出现双滚动轴的问题

This commit is contained in:
renpy 2023-09-05 14:10:48 +08:00
parent 15ecb0a949
commit f8a20f1ab0
5 changed files with 5 additions and 5 deletions

View File

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

View File

@ -16,7 +16,7 @@
:pagination="ipagination" :pagination="ipagination"
:loading="loading" :loading="loading"
@change="handleTableChange" @change="handleTableChange"
: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

@ -30,7 +30,7 @@
:pagination="ipagination" :pagination="ipagination"
:loading="loading" :loading="loading"
@change="handleTableChange" @change="handleTableChange"
: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

@ -39,7 +39,7 @@
:pagination="ipagination" :pagination="ipagination"
:loading="loading" :loading="loading"
:rowSelection="{ selectedRowKeys: selectedRowKeys1, onChange: onSelectChange1, type: 'radio' }" :rowSelection="{ selectedRowKeys: selectedRowKeys1, onChange: onSelectChange1, type: 'radio' }"
:scroll="{ y: 'calc(100vh - 365px)' }" :scroll="{ y: 'calc(100vh - 370px)' }"
@change="handleTableChange" @change="handleTableChange"
> >
<span slot="action" slot-scope="text, record"> <span slot="action" slot-scope="text, record">

View File

@ -33,7 +33,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 }}