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" :columns="columns"
v-model:expandedRowKeys="expandKeys" v-model:expandedRowKeys="expandKeys"
:style="{ minHeight: fwbHeight+'px' }" :style="{ minHeight: fwbHeight+'px' }"
:scroll="{x:'100%',y:fwbHeight}" :scroll="{x:'max-content',y:fwbHeight+'px'}"
> >
<template #bodyCell="{ column, record, index }"> <template #bodyCell="{ column, record, index }">
<template v-if="column.key == 'action'"> <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 loading = ref(false);
const editVisible = ref(false); const editVisible = ref(false);
const expandAllRows = ref(false); const expandAllRows = ref(false);

View File

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

View File

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

View File

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