From 660e3bf24a69d29543b46dd73df4c492fd9028e5 Mon Sep 17 00:00:00 2001 From: afc163 Date: Tue, 8 Jul 2025 11:04:09 +0800 Subject: [PATCH] refactor: replace RadioGroup with Segmented and update Card props --- src/pages/list/basic-list/index.tsx | 27 ++++++++++++++++----------- 1 file changed, 16 insertions(+), 11 deletions(-) diff --git a/src/pages/list/basic-list/index.tsx b/src/pages/list/basic-list/index.tsx index 1a3cbee0..05c8b2d0 100644 --- a/src/pages/list/basic-list/index.tsx +++ b/src/pages/list/basic-list/index.tsx @@ -11,8 +11,8 @@ import { List, Modal, Progress, - Radio, Row, + Segmented, } from 'antd'; import dayjs from 'dayjs'; import type { FC } from 'react'; @@ -27,8 +27,6 @@ import { } from './service'; import useStyles from './style.style'; -const RadioButton = Radio.Button; -const RadioGroup = Radio.Group; const { Search } = Input; const Info: FC<{ title: React.ReactNode; @@ -139,15 +137,20 @@ export const BasicList: FC = () => { }; const extraContent = (
- - 全部 - 进行中 - 等待中 - + ({})} + variant="filled" />
); @@ -204,13 +207,15 @@ export const BasicList: FC = () => {