Browse Source

取消表格最大高度

duy 2 years ago
parent
commit
1537f1be21
1 changed files with 3 additions and 6 deletions
  1. 3 6
      src/global/components/hc-table/index.vue

+ 3 - 6
src/global/components/hc-table/index.vue

@@ -11,7 +11,7 @@
                   @cell-dblclick="tableCellDblClick"
                   @cell-contextmenu="tableCellContextmenu"
                   style="width: 100%;"
-                  :max-height="maXheight"
+                
                  :cell-style="{ textAlign: 'center' }"
                  :header-cell-style="{ 'text-align': 'center' }" >
             <el-table-column type="selection" width="50" v-if="isCheck"/>
@@ -62,10 +62,7 @@ const props = defineProps({
         type: Boolean,
         default: false
     },
-    maXheight:{
-        type:Number,
-        default:700
-    }
+  
 })
 
 //初始变量
@@ -74,7 +71,7 @@ const columns = ref(props.column)
 const tableData = ref(props.datas)
 const isLoading = ref(props.loading)
 const isBorder = ref(props.border)
-const maXheight= ref(props.maXheight)
+
 //监听
 watch(() => [
     props.datas,