From d9caf505c1b1687b4d80531f222cc2ca3574521e Mon Sep 17 00:00:00 2001 From: dengqichen Date: Mon, 8 Dec 2025 17:16:20 +0800 Subject: [PATCH] =?UTF-8?q?=E5=A2=9E=E5=8A=A0=E6=9C=8D=E5=8A=A1=E5=99=A8?= =?UTF-8?q?=E9=98=88=E5=80=BC=E8=A7=84=E5=88=99?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../src/components/LucideIconSelect/index.tsx | 64 +++++++++---------- .../List/components/CategoryManageDialog.tsx | 2 +- 2 files changed, 33 insertions(+), 33 deletions(-) diff --git a/frontend/src/components/LucideIconSelect/index.tsx b/frontend/src/components/LucideIconSelect/index.tsx index d8f7dbbf..4a785cba 100644 --- a/frontend/src/components/LucideIconSelect/index.tsx +++ b/frontend/src/components/LucideIconSelect/index.tsx @@ -60,16 +60,38 @@ const LucideIconSelect: React.FC = ({ 选择图标 -
- {/* 搜索框 */} -
- - setSearch(e.target.value)} - className="pl-10" - /> +
+ {/* 搜索框和当前选中 */} +
+
+ + setSearch(e.target.value)} + className="pl-10" + /> +
+ {/* 当前选中 */} + {value && ( +
+ 当前选中: +
+ + {value} +
+ +
+ )}
{/* 分类标签 */} @@ -130,28 +152,6 @@ const LucideIconSelect: React.FC = ({
- - {/* 当前选中 */} - {value && ( -
- 当前选中: -
- - {value} -
- -
- )}
diff --git a/frontend/src/pages/Resource/Server/List/components/CategoryManageDialog.tsx b/frontend/src/pages/Resource/Server/List/components/CategoryManageDialog.tsx index 0d9519bf..c9c25d28 100644 --- a/frontend/src/pages/Resource/Server/List/components/CategoryManageDialog.tsx +++ b/frontend/src/pages/Resource/Server/List/components/CategoryManageDialog.tsx @@ -341,7 +341,7 @@ export const CategoryManageDialog: React.FC = ({ className="pl-8" />
-