From 07c81a193cef289ba05bfcba986c67102452619a Mon Sep 17 00:00:00 2001 From: xucz Date: Wed, 4 May 2022 15:34:11 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E6=A0=B7=E5=BC=8F=E4=BC=98=E5=8C=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/Board/index.tsx | 3 ++- src/layouts/components/Header.module.less | 2 +- src/pages/Dashboard/Base/components/RankList.tsx | 12 ++++++------ .../Dashboard/Detail/components/PurchaseTrend.tsx | 2 +- src/pages/List/Base/index.tsx | 9 +-------- src/pages/List/Select/index.tsx | 2 -- 6 files changed, 11 insertions(+), 19 deletions(-) diff --git a/src/components/Board/index.tsx b/src/components/Board/index.tsx index 3c38c98..9afbf5b 100644 --- a/src/components/Board/index.tsx +++ b/src/components/Board/index.tsx @@ -49,13 +49,14 @@ export const TrendIcon = ({ trend, trendNum }: { trend?: ETrend; trendNum?: stri ); -const Board = ({ title, count, desc, trend, trendNum, Icon, dark }: IBoardProps) => ( +const Board = ({ title, count, desc, trend, trendNum, Icon, dark, border }: IBoardProps) => ( {title}} header className={classnames({ [Style.boardPanelDark]: dark, })} + bordered={border} footer={
diff --git a/src/layouts/components/Header.module.less b/src/layouts/components/Header.module.less index 5e36a08..efb0b56 100644 --- a/src/layouts/components/Header.module.less +++ b/src/layouts/components/Header.module.less @@ -6,5 +6,5 @@ z-index: 101; display: flex; justify-content: space-between; - //border-bottom: 1px solid var(--td-gray-color-10); + border-bottom: 1px solid var(--td-component-stroke); } diff --git a/src/pages/Dashboard/Base/components/RankList.tsx b/src/pages/Dashboard/Base/components/RankList.tsx index 9f4fe40..ee8a3fc 100644 --- a/src/pages/Dashboard/Base/components/RankList.tsx +++ b/src/pages/Dashboard/Base/components/RankList.tsx @@ -20,7 +20,7 @@ const SALE_COLUMNS: TdPrimaryTableProps['columns'] = [ title: '排名', width: 80, fixed: 'left', - render: ({ rowIndex }) => ( + cell: ({ rowIndex }) => ( {rowIndex + 1} ), }, @@ -36,7 +36,7 @@ const SALE_COLUMNS: TdPrimaryTableProps['columns'] = [ colKey: 'growUp', width: 100, title: '较上周', - render: ({ row }) => , + cell: ({ row }) => , }, { align: 'center', @@ -56,7 +56,7 @@ const SALE_COLUMNS: TdPrimaryTableProps['columns'] = [ fixed: 'right', title: '操作', width: 80, - render: ({ row }) => ( + cell: ({ row }) => ( @@ -71,7 +71,7 @@ const PURCHASE_COLUMNS: TdPrimaryTableProps['columns'] = [ title: '排名', width: 80, fixed: 'left', - render: ({ rowIndex }) => ( + cell: ({ rowIndex }) => ( {rowIndex + 1} ), }, @@ -87,7 +87,7 @@ const PURCHASE_COLUMNS: TdPrimaryTableProps['columns'] = [ colKey: 'growUp', width: 100, title: '较上周', - render: ({ row }) => , + cell: ({ row }) => , }, { align: 'center', @@ -107,7 +107,7 @@ const PURCHASE_COLUMNS: TdPrimaryTableProps['columns'] = [ title: '操作', fixed: 'right', width: 80, - render: ({ row }) => ( + cell: ({ row }) => ( diff --git a/src/pages/Dashboard/Detail/components/PurchaseTrend.tsx b/src/pages/Dashboard/Detail/components/PurchaseTrend.tsx index fc40d42..519b089 100644 --- a/src/pages/Dashboard/Detail/components/PurchaseTrend.tsx +++ b/src/pages/Dashboard/Detail/components/PurchaseTrend.tsx @@ -27,7 +27,7 @@ const ProductTrend = ({ type, isSetup, description, name, icon }: IProductTrendP

{name}

{description}

- +