🎨 feat(ui): add icon support for Kling (50) & Jimeng (51) channels and iconize type selector

- import Kling & Jimeng icons from @lobehub/icons
- extend getChannelIcon() to return corresponding icons for new channel types 50 (Kling) and 51 (Jimeng)
- enhance EditChannel type selector:
  • introduce useMemo‐based channelOptionList with leading icons
  • utilize getChannelIcon for consistent icon rendering in dropdown options
- minor refactor: add useMemo and getChannelIcon imports in EditChannel.js
This commit is contained in:
t0ng7u
2025-07-12 00:02:12 +08:00
parent 26ea562fdb
commit cf711d55a5
2 changed files with 23 additions and 3 deletions

View File

@@ -31,6 +31,8 @@ import {
Coze,
SiliconCloud,
FastGPT,
Kling,
Jimeng,
} from '@lobehub/icons';
import {
@@ -386,6 +388,10 @@ export function getChannelIcon(channelType) {
return <XAI size={iconSize} />;
case 49: // Coze
return <Coze size={iconSize} />;
case 50: // 可灵 Kling
return <Kling.Color size={iconSize} />;
case 51: // 即梦 Jimeng
return <Jimeng.Color size={iconSize} />;
case 8: // 自定义渠道
case 22: // 知识库FastGPT
return <FastGPT.Color size={iconSize} />;