perf: 系统管理中表格均改为自适应内容区高度,需将@pureadmin/table升级到最新版

This commit is contained in:
xiaoxian521 2023-06-09 14:01:46 +08:00
parent 56368c1163
commit 39833ce917
6 changed files with 2575 additions and 6086 deletions

View File

@ -34,7 +34,7 @@
"@logicflow/core": "^1.2.7",
"@logicflow/extension": "^1.2.7",
"@pureadmin/descriptions": "^1.1.1",
"@pureadmin/table": "^2.2.0",
"@pureadmin/table": "^2.3.0",
"@pureadmin/utils": "^1.9.2",
"@vueuse/core": "^10.1.2",
"@vueuse/motion": "^2.0.0",

File diff suppressed because it is too large Load Diff

View File

@ -90,6 +90,8 @@ const {
<pure-table
ref="tableRef"
border
adaptive
:adaptiveConfig="{ offsetBottom: 32 }"
align-whole="center"
row-key="id"
showOverflowTooltip

View File

@ -109,6 +109,7 @@ const {
table-layout="auto"
:loading="loading"
:size="size"
adaptive
:data="dataList"
:columns="dynamicColumns"
:pagination="pagination"

View File

@ -39,7 +39,7 @@ const {
<template>
<div class="main">
<tree class="w-[17%] float-left" />
<div class="float-right w-[81%]">
<div class="float-right w-[82%]">
<el-form
ref="formRef"
:inline="true"
@ -97,6 +97,7 @@ const {
<template v-slot="{ size, dynamicColumns }">
<pure-table
border
adaptive
align-whole="center"
table-layout="auto"
:loading="loading"

View File

@ -87,7 +87,10 @@ onMounted(async () => {
</script>
<template>
<div class="h-full min-h-[780px] bg-bg_color overflow-auto">
<div
class="h-full bg-bg_color overflow-auto"
:style="{ minHeight: `calc(100vh - 133px)` }"
>
<div class="flex items-center h-[34px]">
<p class="flex-1 ml-2 font-bold text-base truncate" title="部门列表">
部门列表