From 79472624b52925356d7a39e04844fd67ff01b560 Mon Sep 17 00:00:00 2001 From: Zeke Zhang <958414905@qq.com> Date: Thu, 31 Oct 2024 23:12:01 +0800 Subject: [PATCH] style(TableSkeleton): optimize style --- .../core/client/src/schema-component/antd/table-v2/Table.tsx | 2 +- .../src/schema-component/antd/table-v2/TableSkeleton.tsx | 4 ++-- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/packages/core/client/src/schema-component/antd/table-v2/Table.tsx b/packages/core/client/src/schema-component/antd/table-v2/Table.tsx index 82caba977e..3cc0eee120 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/Table.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/Table.tsx @@ -463,7 +463,7 @@ const BodyCellComponent = (props) => { const style = useMemo(() => Object.assign({ ...props.style }, valueMap), [props.style, valueMap]); const skeletonStyle = { height: '1em', - backgroundColor: 'rgba(0, 0, 0, 0.06)', + backgroundColor: token.colorFillSecondary, borderRadius: `${token.borderRadiusSM}px`, }; diff --git a/packages/core/client/src/schema-component/antd/table-v2/TableSkeleton.tsx b/packages/core/client/src/schema-component/antd/table-v2/TableSkeleton.tsx index b62379eb04..8d1d55c1dd 100644 --- a/packages/core/client/src/schema-component/antd/table-v2/TableSkeleton.tsx +++ b/packages/core/client/src/schema-component/antd/table-v2/TableSkeleton.tsx @@ -62,14 +62,14 @@ export const TableSkeleton: React.FC = ({ rows = 5, columns .skeleton-loading { height: ${token.controlHeight / 2}px; - background: ${token.colorFillQuaternary}; + background: ${token.colorFillSecondary}; border-radius: ${token.borderRadiusSM}px; } .skeleton-checkbox { width: ${token.controlHeight / 2}px; height: ${token.controlHeight / 2}px; - background: ${token.colorFillQuaternary}; + background: ${token.colorFillSecondary}; border-radius: ${token.borderRadiusSM}px; }