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/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",
 | 
			
		||||
 | 
			
		||||
							
								
								
									
										8648
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
							
						
						
									
										8648
									
								
								pnpm-lock.yaml
									
									
									
										generated
									
									
									
								
							
										
											
												File diff suppressed because it is too large
												Load Diff
											
										
									
								
							@ -90,6 +90,8 @@ const {
 | 
			
		||||
        <pure-table
 | 
			
		||||
          ref="tableRef"
 | 
			
		||||
          border
 | 
			
		||||
          adaptive
 | 
			
		||||
          :adaptiveConfig="{ offsetBottom: 32 }"
 | 
			
		||||
          align-whole="center"
 | 
			
		||||
          row-key="id"
 | 
			
		||||
          showOverflowTooltip
 | 
			
		||||
 | 
			
		||||
@ -109,6 +109,7 @@ const {
 | 
			
		||||
          table-layout="auto"
 | 
			
		||||
          :loading="loading"
 | 
			
		||||
          :size="size"
 | 
			
		||||
          adaptive
 | 
			
		||||
          :data="dataList"
 | 
			
		||||
          :columns="dynamicColumns"
 | 
			
		||||
          :pagination="pagination"
 | 
			
		||||
 | 
			
		||||
@ -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"
 | 
			
		||||
 | 
			
		||||
@ -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="部门列表">
 | 
			
		||||
        部门列表
 | 
			
		||||
 | 
			
		||||
		Loading…
	
	
			
			x
			
			
		
	
		Reference in New Issue
	
	Block a user