From edfbfcf5dbd3e0f6c776506e2a83e68f9784c429 Mon Sep 17 00:00:00 2001 From: baorong Date: Wed, 18 Feb 2026 19:28:00 +0800 Subject: [PATCH] chore(code): adapt code to antd v6 --- src/components/DropOption/DropOption.js | 10 +-- src/components/Ellipsis/index.js | 26 +++---- src/components/Layout/Bread.js | 45 +++++------- src/components/Layout/Header.js | 73 +++++++++++--------- src/components/Layout/Menu.js | 44 ++++++------ src/layouts/PrimaryLayout.js | 2 +- src/pages/dashboard/components/numberCard.js | 6 +- src/pages/dashboard/index.js | 60 +++++++++------- src/pages/post/index.js | 31 ++++----- src/pages/user/components/Modal.js | 4 +- src/pages/user/index.js | 4 +- 11 files changed, 154 insertions(+), 151 deletions(-) diff --git a/src/components/DropOption/DropOption.js b/src/components/DropOption/DropOption.js index 1bb4ba2..c4df678 100644 --- a/src/components/DropOption/DropOption.js +++ b/src/components/DropOption/DropOption.js @@ -9,14 +9,10 @@ const DropOption = ({ buttonStyle, dropdownProps, }) => { - const menu = menuOptions.map(item => ( - {item.name} - )) + const items = menuOptions.map(item => ({ key: item.key, label: item.name })) + return ( - {menu}} - {...dropdownProps} - > + } {...dropdownProps}>