优化
This commit is contained in:
parent
fb626ccf45
commit
6f5f94a049
@ -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);
|
||||
|
@ -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 }">
|
||||
|
@ -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 }">
|
||||
|
@ -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 }">
|
||||
|
Loading…
Reference in New Issue
Block a user