mirror of
				https://github.com/pure-admin/vue-pure-admin.git
				synced 2025-11-03 13:44:47 +08:00 
			
		
		
		
	perf: 系统管理中表格均改为自适应内容区高度,需将@pureadmin/table升级到最新版
				
					
				
			This commit is contained in:
		
							parent
							
								
									56368c1163
								
							
						
					
					
						commit
						39833ce917
					
				@ -34,7 +34,7 @@
 | 
				
			|||||||
    "@logicflow/core": "^1.2.7",
 | 
					    "@logicflow/core": "^1.2.7",
 | 
				
			||||||
    "@logicflow/extension": "^1.2.7",
 | 
					    "@logicflow/extension": "^1.2.7",
 | 
				
			||||||
    "@pureadmin/descriptions": "^1.1.1",
 | 
					    "@pureadmin/descriptions": "^1.1.1",
 | 
				
			||||||
    "@pureadmin/table": "^2.2.0",
 | 
					    "@pureadmin/table": "^2.3.0",
 | 
				
			||||||
    "@pureadmin/utils": "^1.9.2",
 | 
					    "@pureadmin/utils": "^1.9.2",
 | 
				
			||||||
    "@vueuse/core": "^10.1.2",
 | 
					    "@vueuse/core": "^10.1.2",
 | 
				
			||||||
    "@vueuse/motion": "^2.0.0",
 | 
					    "@vueuse/motion": "^2.0.0",
 | 
				
			||||||
 | 
				
			|||||||
							
								
								
									
										8328
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										8328
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -90,6 +90,8 @@ const {
 | 
				
			|||||||
        <pure-table
 | 
					        <pure-table
 | 
				
			||||||
          ref="tableRef"
 | 
					          ref="tableRef"
 | 
				
			||||||
          border
 | 
					          border
 | 
				
			||||||
 | 
					          adaptive
 | 
				
			||||||
 | 
					          :adaptiveConfig="{ offsetBottom: 32 }"
 | 
				
			||||||
          align-whole="center"
 | 
					          align-whole="center"
 | 
				
			||||||
          row-key="id"
 | 
					          row-key="id"
 | 
				
			||||||
          showOverflowTooltip
 | 
					          showOverflowTooltip
 | 
				
			||||||
 | 
				
			|||||||
@ -109,6 +109,7 @@ const {
 | 
				
			|||||||
          table-layout="auto"
 | 
					          table-layout="auto"
 | 
				
			||||||
          :loading="loading"
 | 
					          :loading="loading"
 | 
				
			||||||
          :size="size"
 | 
					          :size="size"
 | 
				
			||||||
 | 
					          adaptive
 | 
				
			||||||
          :data="dataList"
 | 
					          :data="dataList"
 | 
				
			||||||
          :columns="dynamicColumns"
 | 
					          :columns="dynamicColumns"
 | 
				
			||||||
          :pagination="pagination"
 | 
					          :pagination="pagination"
 | 
				
			||||||
 | 
				
			|||||||
@ -39,7 +39,7 @@ const {
 | 
				
			|||||||
<template>
 | 
					<template>
 | 
				
			||||||
  <div class="main">
 | 
					  <div class="main">
 | 
				
			||||||
    <tree class="w-[17%] float-left" />
 | 
					    <tree class="w-[17%] float-left" />
 | 
				
			||||||
    <div class="float-right w-[81%]">
 | 
					    <div class="float-right w-[82%]">
 | 
				
			||||||
      <el-form
 | 
					      <el-form
 | 
				
			||||||
        ref="formRef"
 | 
					        ref="formRef"
 | 
				
			||||||
        :inline="true"
 | 
					        :inline="true"
 | 
				
			||||||
@ -97,6 +97,7 @@ const {
 | 
				
			|||||||
        <template v-slot="{ size, dynamicColumns }">
 | 
					        <template v-slot="{ size, dynamicColumns }">
 | 
				
			||||||
          <pure-table
 | 
					          <pure-table
 | 
				
			||||||
            border
 | 
					            border
 | 
				
			||||||
 | 
					            adaptive
 | 
				
			||||||
            align-whole="center"
 | 
					            align-whole="center"
 | 
				
			||||||
            table-layout="auto"
 | 
					            table-layout="auto"
 | 
				
			||||||
            :loading="loading"
 | 
					            :loading="loading"
 | 
				
			||||||
 | 
				
			|||||||
@ -87,7 +87,10 @@ onMounted(async () => {
 | 
				
			|||||||
</script>
 | 
					</script>
 | 
				
			||||||
 | 
					
 | 
				
			||||||
<template>
 | 
					<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]">
 | 
					    <div class="flex items-center h-[34px]">
 | 
				
			||||||
      <p class="flex-1 ml-2 font-bold text-base truncate" title="部门列表">
 | 
					      <p class="flex-1 ml-2 font-bold text-base truncate" title="部门列表">
 | 
				
			||||||
        部门列表
 | 
					        部门列表
 | 
				
			||||||
 | 
				
			|||||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user