Jelajahi Sumber

表格暂无数据高度调整

marymelisa 4 tahun lalu
induk
melakukan
47fd61bd4f
1 mengubah file dengan 27 tambahan dan 0 penghapusan
  1. 27 0
      src/assets/styles/mixin.less

+ 27 - 0
src/assets/styles/mixin.less

@@ -2104,6 +2104,12 @@ input:-internal-autofill-selected {
                 max-height: calc(100vh - 378px);
                 background: @m-black2;
             }
+            .ant-table-placeholder {
+                height: calc(100vh - 378px);
+                .ant-empty.ant-empty-normal {
+                    margin: 0;
+                }
+            }
             
         }
     }
@@ -2113,6 +2119,9 @@ input:-internal-autofill-selected {
                 min-height: calc(100vh - 138px);
                 max-height: calc(100vh - 138px);
             }
+            .ant-table-placeholder {
+                height: calc(100vh - 138px);
+            }
         }
     }
     .noPlaceHolder {
@@ -2147,6 +2156,9 @@ input:-internal-autofill-selected {
                 max-height: calc(100vh - 407px);
                 background: @m-black2;
             }
+            .ant-table-placeholder {
+                height:  calc(100vh - 407px);
+            }
         }
     }
     .secondTabTableNoBottom {
@@ -2156,6 +2168,9 @@ input:-internal-autofill-selected {
                 max-height: calc(100vh - 167px);
                 background: @m-black2;
             }
+            .ant-table-placeholder {
+                height:  calc(100vh - 167px);
+            }
         }
     }
 }
@@ -2168,6 +2183,9 @@ input:-internal-autofill-selected {
                 max-height: calc(100vh - 443px);
                 background: @m-black2;
             }
+            .ant-table-placeholder {
+                height:  calc(100vh - 443px);
+            }
         }
     }
     .condSecondTabTableNoBottom {
@@ -2177,6 +2195,9 @@ input:-internal-autofill-selected {
                 max-height: calc(100vh - 196px);
                 background: @m-black2;
             }
+            .ant-table-placeholder {
+                height:  calc(100vh - 196px);
+            }
         }
     }
     .condSecondTabTableHalfTop {
@@ -2194,6 +2215,9 @@ input:-internal-autofill-selected {
                     }
                 }
             }
+            .ant-table-placeholder {
+                height:  calc((100vh - 443px)/2 - 13px);
+            }
         }
     }
     .halfBottom {
@@ -2214,6 +2238,9 @@ input:-internal-autofill-selected {
                 max-height: calc((100vh - 196px)/2 - 16px);
                 background: @m-black2;
             }
+            .ant-table-placeholder {
+                height: calc((100vh - 196px)/2 - 16px);
+            }
         }
     }
 }