This commit is contained in:
陈红丽 2024-12-16 14:27:16 +08:00
parent fb626ccf45
commit 6f5f94a049
4 changed files with 5 additions and 5 deletions

View File

@ -20,7 +20,7 @@
:columns="columns"
v-model:expandedRowKeys="expandKeys"
:style="{ minHeight: fwbHeight+'px' }"
:scroll="{x:'100%',y:fwbHeight}"
:scroll="{x:'max-content',y:fwbHeight+'px'}"
>
<template #bodyCell="{ column, record, index }">
<template v-if="column.key == 'action'">
@ -83,7 +83,7 @@
/**
* 定义参数变量
*/
const fwbHeight = document.body.clientHeight - 400;
const fwbHeight = document.body.clientHeight - 300;
const loading = ref(false);
const editVisible = ref(false);
const expandAllRows = ref(false);

View File

@ -17,7 +17,7 @@
:dataSource="lists"
@expand="getChild"
:style="{ minHeight: fwbHeight+'px' }"
:scroll="{x:'100%',y:fwbHeight}"
:scroll="{x:'max-content',y:fwbHeight}"
rowKey="areaCode"
>
<template #bodyCell="{ column, record, index }">

View File

@ -19,7 +19,7 @@
:dataSource="lists"
:columns="columns"
:style="{ minHeight: fwbHeight+'px' }"
:scroll="{x:'100%',y:fwbHeight}"
:scroll="{x:'max-content',y:fwbHeight+'px'}"
v-model:expandedRowKeys="expandKeys"
>
<template #bodyCell="{ column, record, index }">

View File

@ -19,7 +19,7 @@
:dataSource="lists"
:columns="columns"
:style="{ minHeight: fwbHeight + 'px' }"
:scroll="{ x: '100%', y: fwbHeight }"
:scroll="{ x: 'max-content', y: fwbHeight+'px' }"
v-model:expandedRowKeys="expandKeys"
>
<template #bodyCell="{ column, record, index }">