Jelajahi Sumber

chore(styles): 添加全局“表格”样式

wangcong 1 bulan lalu
induk
melakukan
8b6610f007
1 mengubah file dengan 36 tambahan dan 0 penghapusan
  1. 36 0
      src/styles/global.scss

+ 36 - 0
src/styles/global.scss

@@ -27,6 +27,42 @@
   color: var(--antd-color-text);
 }
 
+.hvac-table.ant-table-wrapper .ant-table-container {
+  .ant-table-thead > tr > th {
+    font-weight: 600;
+    color: #000;
+    background: #f5f6f7;
+    border-bottom: none;
+  }
+
+  .ant-table-thead
+    > tr
+    > th.ant-table-cell:not(:last-child, .ant-table-selection-column, .ant-table-row-expand-icon-cell, [colspan]) {
+    &::before {
+      background-color: transparent;
+    }
+
+    &.table-column-item-required::before {
+      position: initial;
+      width: auto;
+      font-size: 14px;
+      line-height: 24px;
+      color: #f56c6c;
+      content: '*';
+      transform: initial;
+    }
+  }
+
+  .ant-table-column-sorters,
+  .ant-table-filter-column {
+    justify-content: flex-start;
+
+    > .ant-table-column-title {
+      flex: none;
+    }
+  }
+}
+
 // 默认按钮颜色
 .default-button {
   color: var(--antd-color-primary-hover);