feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面
This commit is contained in:
@@ -21,7 +21,7 @@ import React, { lazy, Suspense } from 'react';
|
||||
import i18next from 'i18next';
|
||||
// React 18-compatible LobeHub icons lack these brands; use generic icons.
|
||||
import { Lock, Bot as FastGPT, Image as Jimeng } from 'lucide-react';
|
||||
import { Modal, Tag, Typography } from '@douyinfe/semi-ui';
|
||||
import { Modal, Tag, Typography } from '@/components/ui';
|
||||
import { copy, getCurrencySymbol, showSuccess } from './utils';
|
||||
import { visit } from 'unist-util-visit';
|
||||
import OpenAI from '@lobehub/icons/es/OpenAI/components/Mono';
|
||||
@@ -85,7 +85,7 @@ import {
|
||||
export function getLucideIcon(key, selected = false) {
|
||||
const size = 16;
|
||||
const strokeWidth = 2;
|
||||
const SELECTED_COLOR = 'var(--semi-color-primary)';
|
||||
const SELECTED_COLOR = 'var(--ui-color-primary)';
|
||||
const iconColor = selected ? SELECTED_COLOR : 'currentColor';
|
||||
const commonProps = {
|
||||
size,
|
||||
@@ -663,13 +663,13 @@ export const renderGroupOption = (item) => {
|
||||
alignItems: 'center',
|
||||
padding: '8px 16px',
|
||||
cursor: disabled ? 'not-allowed' : 'pointer',
|
||||
backgroundColor: focused ? 'var(--semi-color-fill-0)' : 'transparent',
|
||||
backgroundColor: focused ? 'var(--ui-color-fill-0)' : 'transparent',
|
||||
opacity: disabled ? 0.5 : 1,
|
||||
...(selected && {
|
||||
backgroundColor: 'var(--semi-color-primary-light-default)',
|
||||
backgroundColor: 'var(--ui-color-primary-light-default)',
|
||||
}),
|
||||
'&:hover': {
|
||||
backgroundColor: !disabled && 'var(--semi-color-fill-1)',
|
||||
backgroundColor: !disabled && 'var(--ui-color-fill-1)',
|
||||
},
|
||||
};
|
||||
|
||||
@@ -724,10 +724,10 @@ export const renderModelOption = (item) => {
|
||||
alignItems: 'center',
|
||||
padding: '8px 16px',
|
||||
cursor: locked ? 'not-allowed' : 'pointer',
|
||||
backgroundColor: focused ? 'var(--semi-color-fill-0)' : 'transparent',
|
||||
backgroundColor: focused ? 'var(--ui-color-fill-0)' : 'transparent',
|
||||
opacity: locked ? 0.6 : 1,
|
||||
...(selected && {
|
||||
backgroundColor: 'var(--semi-color-primary-light-default)',
|
||||
backgroundColor: 'var(--ui-color-primary-light-default)',
|
||||
}),
|
||||
};
|
||||
|
||||
|
||||
Reference in New Issue
Block a user