Преглед на файлове

perf(views): 优化协议配置相关的表格样式

wangcong преди 1 месец
родител
ревизия
c5b40414bb

+ 1 - 1
src/views/gateway-protocol/GatewayProtocol.vue

@@ -195,7 +195,7 @@ const handleOk = () => {
       </div>
     </div>
     <ATable
-      class="protocol-table"
+      class="hvac-table protocol-table"
       :data-source="protocolList"
       :columns="columns"
       row-key="id"

+ 1 - 26
src/views/setup-protocol/ProtocolContent.vue

@@ -660,6 +660,7 @@ defineExpose({
       </div>
     </div>
     <ATable
+      class="hvac-table"
       :data-source="paramTableDataSource"
       row-key="id"
       :row-selection="{ selectedRowKeys: selectedParamIds, onChange: handleParamSelectChange }"
@@ -981,32 +982,6 @@ defineExpose({
   }
 }
 
-:deep(.ant-table-wrapper) .ant-table-container {
-  .ant-table-thead > tr > th {
-    color: #333;
-    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;
-    }
-  }
-}
-
 .protocol-recognize-result {
   height: 24px;
   padding: 2px 8px;

+ 1 - 0
src/views/setup-protocol/SelectStandardParams.vue

@@ -186,6 +186,7 @@ defineExpose({
           </AInput>
         </div>
         <ATable
+          class="hvac-table"
           :data-source="paramList"
           row-key="id"
           :row-selection="{