From 7c57f726a15ce1d5d75cde85960eb3c2181c5e95 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E9=BB=8E=E6=B0=B8=E9=A1=BA?= <971387674@qq.com> Date: Fri, 21 Apr 2023 11:05:24 +0800 Subject: [PATCH] =?UTF-8?q?=E6=B3=9B=E5=BE=AE=E8=96=AA=E8=B5=84=E6=A0=B8?= =?UTF-8?q?=E7=AE=97iframe=E8=A1=A8=E6=A0=BC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/atdTable/components/index.less | 17 ++++++++++++----- src/pages/rankMapTable/index.tsx | 2 ++ 2 files changed, 14 insertions(+), 5 deletions(-) diff --git a/src/pages/atdTable/components/index.less b/src/pages/atdTable/components/index.less index 65e40a2..fd705a0 100644 --- a/src/pages/atdTable/components/index.less +++ b/src/pages/atdTable/components/index.less @@ -156,17 +156,24 @@ } } -:global{ - .rankMapWrapper{ - .ant-table-thead>tr>th{ +:global { + .rankMapWrapper { + .ant-table-thead > tr > th { background: #ED7D31; } } + .bg_1_Cols { - background: #ED7D31!important; + background: #ED7D31 !important; } + + th.bg_1_Cols { + height: 48px; + line-height: 48px; + } + .bg_2_Cols { - background: #DEE0E3!important; + background: #DEE0E3 !important; } } diff --git a/src/pages/rankMapTable/index.tsx b/src/pages/rankMapTable/index.tsx index 66c0c79..468671a 100644 --- a/src/pages/rankMapTable/index.tsx +++ b/src/pages/rankMapTable/index.tsx @@ -19,6 +19,7 @@ const RankMapTable: React.FC = () => { ...item, align: "center", className: colsIndex === "1" ? "bg_1_Cols" : colsIndex === "2" ? "bg_2_Cols" : "", + width: colsIndex === "1" && "60px", render: (text: string, _: any) => { return { children: {text}, @@ -63,6 +64,7 @@ const RankMapTable: React.FC = () => { _.forEach(_.reduce(columns, (pre: any, cur: any) => ([...pre, cur["dataIndex"]]), []), item => { tmpV = changeData(list, item); }); + console.log(columns); setCols(columns); setDataSource(tmpV); }