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