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" />
-