feat: 参考原型图 ui优化提交 个人端-用户中心 相关的页面

This commit is contained in:
zhanjunhao
2026-11-04 19:59:06 +08:00
parent f1aa0399aa
commit 78fe73d0db
576 changed files with 18075 additions and 18912 deletions
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
*/
import React, { useState, useCallback } from 'react';
import { Modal } from '@douyinfe/semi-ui';
import { Modal } from '@/components/ui';
import { X, Shield, Scale, ScrollText, ExternalLink } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import DocumentRenderer from './index';
+1 -1
View File
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
*/
import React from 'react';
import { Avatar } from '@douyinfe/semi-ui';
import { Avatar } from '@/components/ui';
import { Bot as FastGPT, Image as Jimeng } from 'lucide-react';
import OpenAI from '@lobehub/icons/es/OpenAI';
import Claude from '@lobehub/icons/es/Claude';
+1 -1
View File
@@ -39,7 +39,7 @@ runInNewContext(code, {
exports: module.exports,
require(name) {
if (name === 'react') return React;
if (name === '@douyinfe/semi-ui') return { Avatar: 'avatar' };
if (name === '@/components/ui') return { Avatar: 'avatar' };
if (name === 'lucide-react') return { Bot: Mono, Image: Mono };
assert.ok(name.startsWith('@lobehub/icons/es/'), name);
return Object.assign(Mono, { Color, Avatar });
+1 -1
View File
@@ -25,7 +25,7 @@ import {
Empty,
Tag,
Tooltip,
} from '@douyinfe/semi-ui';
} from '@/components/ui';
import { Lock } from 'lucide-react';
import { useTranslation } from 'react-i18next';
import { useModelSelector } from '../../hooks/models/useModelSelector';
+1
View File
@@ -51,6 +51,7 @@ export default function PageBackground({
const pulse = animate ? 'animate-pulse motion-reduce:animate-none' : '';
return (
<div
data-page-background
className={`absolute inset-0 overflow-hidden pointer-events-none ${className}`}
aria-hidden='true'
>
+1 -1
View File
@@ -31,7 +31,7 @@ For commercial licensing, please contact support@quantumnous.com
* steps[].done 传布尔值即启用进度跟踪,不传则渲染为纯阅读步骤。
*/
import React, { useCallback, useEffect, useMemo, useState } from 'react';
import { Button, SideSheet } from '@douyinfe/semi-ui';
import { Button, SideSheet } from '@/components/ui';
import { useTranslation } from 'react-i18next';
import {
BookOpenText,
+12 -32
View File
@@ -6,21 +6,21 @@
--pg-ink: var(--text-primary);
--pg-muted: var(--text-secondary);
--pg-line: var(--border-subtle);
--pg-accent: var(--semi-color-primary);
--pg-accent-deep: var(--semi-color-primary-active, var(--semi-color-primary));
--pg-tint: color-mix(in srgb, var(--semi-color-primary) 8%, transparent);
--pg-accent: var(--ui-color-primary);
--pg-accent-deep: var(--ui-color-primary-active, var(--ui-color-primary));
--pg-tint: color-mix(in srgb, var(--ui-color-primary) 8%, transparent);
--pg-tint-strong: color-mix(
in srgb,
var(--semi-color-primary) 14%,
var(--ui-color-primary) 14%,
transparent
);
--pg-tint-line: color-mix(
in srgb,
var(--semi-color-primary) 28%,
var(--ui-color-primary) 28%,
transparent
);
--pg-ok: var(--semi-color-success);
--pg-ok-tint: color-mix(in srgb, var(--semi-color-success) 14%, transparent);
--pg-ok: var(--ui-color-success);
--pg-ok-tint: color-mix(in srgb, var(--ui-color-success) 14%, transparent);
}
/* ===== 进度胶囊 ===== */
@@ -34,7 +34,7 @@
border-radius: 999px;
background: color-mix(
in srgb,
var(--semi-color-primary) 4%,
var(--ui-color-primary) 4%,
var(--surface-card)
);
color: var(--pg-ink);
@@ -56,7 +56,7 @@
.page-guide-step-head:focus-visible,
.page-guide-step-cta:focus-visible {
outline: 2px solid
color-mix(in srgb, var(--semi-color-primary) 55%, transparent);
color-mix(in srgb, var(--ui-color-primary) 55%, transparent);
outline-offset: 2px;
}
@@ -109,28 +109,8 @@
}
/* ===== 抽屉 ===== */
.page-guide-drawer .semi-sidesheet-inner {
max-width: 100%;
}
.page-guide-drawer .semi-sidesheet-body {
padding: 14px 22px 20px;
overflow-y: auto;
}
/* 抽屉滚动条:复用品牌滚动条 token(同 app-scrollbar 的取色来源) */
.page-guide-drawer .semi-sidesheet-body::-webkit-scrollbar {
width: 6px;
}
.page-guide-drawer .semi-sidesheet-body::-webkit-scrollbar-thumb {
border-radius: 999px;
background: var(--brand-scroll);
}
.page-guide-drawer .semi-sidesheet-body::-webkit-scrollbar-thumb:hover {
background: var(--brand-scroll-hover);
}
.page-guide-head {
display: flex;
@@ -184,7 +164,7 @@
border-color: var(--pg-tint-line);
background: color-mix(
in srgb,
var(--semi-color-primary) 5%,
var(--ui-color-primary) 5%,
var(--surface-card)
);
}
@@ -226,7 +206,7 @@
.page-guide-step.is-next .page-guide-step-ic {
border-color: transparent;
background: var(--pg-accent);
color: var(--semi-color-white, var(--surface-card));
color: var(--ui-color-white, var(--surface-card));
font-weight: 600;
}
@@ -368,7 +348,7 @@
}
30% {
box-shadow: 0 0 0 4px
color-mix(in srgb, var(--semi-color-primary) 45%, transparent);
color-mix(in srgb, var(--ui-color-primary) 45%, transparent);
}
}
@@ -0,0 +1,48 @@
/*
Copyright (C) 2025 QuantumNous
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import React from 'react';
import { Breadcrumb } from 'antd';
import { useLocation } from 'react-router-dom';
import { useTranslation } from 'react-i18next';
const pageTitles = {
'/user-center/key-management': '密钥管理',
'/user-center/dashboard': '数据看板',
'/user-center/usage-record': '使用记录',
'/user-center/service-dashboard': '服务监控',
'/user-center/topup': '在线充值',
'/user-center/settings': '个人设置',
'/user-center/invite': '邀请有奖',
'/user-center/invoice': '发票管理',
'/user-center/weyai-download': '下载 WeyAi 桌面端',
};
export default function UserCenterBreadcrumb() {
const { pathname } = useLocation();
const { t } = useTranslation();
const title = pageTitles[pathname.replace(/\/$/, '')];
if (!title) return null;
return (
<Breadcrumb
className='ui-dashboard-breadcrumb ui-user-center-breadcrumb'
items={[{ title: t('用户中心') }, { title: t(title) }]}
/>
);
}
@@ -0,0 +1,47 @@
/*
Copyright (C) 2025 QuantumNous
This program is free software: you can redistribute it and/or modify
it under the terms of the GNU Affero General Public License as
published by the Free Software Foundation, either version 3 of the
License, or (at your option) any later version.
This program is distributed in the hope that it will be useful,
but WITHOUT ANY WARRANTY; without even the implied warranty of
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
GNU Affero General Public License for more details.
You should have received a copy of the GNU Affero General Public License
along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import React from 'react';
import UserCenterBreadcrumb from './UserCenterBreadcrumb';
/**
* 个人端子页面统一标题区:面包屑 + 28px 标题 + 14px 副标题(+ 可选右侧操作)。
* 几何与配色见 src/styles/user-center.css,来源为原型图.zip 中的
* 使用记录、在线充值、个人设置截图。只负责呈现,不承载业务状态。
*/
export default function UserCenterPageHeader({
title,
subtitle,
extra,
breadcrumb,
className = '',
}) {
return (
<header className={`uc-page-header ${className}`.trim()}>
{breadcrumb === undefined ? <UserCenterBreadcrumb /> : breadcrumb}
<div className='uc-page-header-main'>
<div className='uc-page-header-text'>
<h1 className='uc-page-title'>{title}</h1>
{subtitle ? <p className='uc-page-subtitle'>{subtitle}</p> : null}
</div>
{extra ? <div className='uc-page-header-extra'>{extra}</div> : null}
</div>
</header>
);
}
@@ -19,7 +19,7 @@ For commercial licensing, please contact support@quantumnous.com
import React, { useState } from 'react';
import { useTranslation } from 'react-i18next';
import { Button, Modal } from '@douyinfe/semi-ui';
import { Button, Modal } from '@/components/ui';
import { useSecureVerification } from '../../../hooks/common/useSecureVerification';
import { createApiCalls } from '../../../services/secureVerification';
import SecureVerificationModal from '../modals/SecureVerificationModal';
+27 -27
View File
@@ -76,7 +76,7 @@ export const IllustrationNoResult = ({ style = {} }) => (
y1='70'
x2='105'
y2='100'
stroke='var(--semi-color-danger)'
stroke='var(--ui-color-danger)'
strokeWidth='4'
strokeLinecap='round'
/>
@@ -85,7 +85,7 @@ export const IllustrationNoResult = ({ style = {} }) => (
y1='70'
x2='75'
y2='100'
stroke='var(--semi-color-danger)'
stroke='var(--ui-color-danger)'
strokeWidth='4'
strokeLinecap='round'
/>
@@ -186,7 +186,7 @@ export const IllustrationNoResultDark = ({ style = {} }) => (
y1='70'
x2='105'
y2='100'
stroke='var(--semi-color-danger)'
stroke='var(--ui-color-danger)'
strokeWidth='4'
strokeLinecap='round'
/>
@@ -195,7 +195,7 @@ export const IllustrationNoResultDark = ({ style = {} }) => (
y1='70'
x2='75'
y2='100'
stroke='var(--semi-color-danger)'
stroke='var(--ui-color-danger)'
strokeWidth='4'
strokeLinecap='round'
/>
@@ -237,12 +237,12 @@ export const IllustrationNotFound = ({ style = {} }) => (
>
<defs>
<linearGradient id='notFoundGrad1' x1='0%' y1='0%' x2='100%' y2='100%'>
<stop offset='0%' stopColor='var(--semi-color-warning)' />
<stop offset='100%' stopColor='var(--semi-color-danger)' />
<stop offset='0%' stopColor='var(--ui-color-warning)' />
<stop offset='100%' stopColor='var(--ui-color-danger)' />
</linearGradient>
<linearGradient id='notFoundGrad2' x1='0%' y1='0%' x2='100%' y2='100%'>
<stop offset='0%' stopColor='color-mix(in srgb, var(--semi-color-warning) 15%, #fff)' />
<stop offset='100%' stopColor='color-mix(in srgb, var(--semi-color-danger) 25%, #fff)' />
<stop offset='0%' stopColor='color-mix(in srgb, var(--ui-color-warning) 15%, #fff)' />
<stop offset='100%' stopColor='color-mix(in srgb, var(--ui-color-danger) 25%, #fff)' />
</linearGradient>
</defs>
{/* 背景 */}
@@ -280,7 +280,7 @@ export const IllustrationNotFound = ({ style = {} }) => (
{/* 装饰星星 */}
<path
d='M40 40 L42 48 L50 50 L42 52 L40 60 L38 52 L30 50 L38 48 Z'
fill='var(--semi-color-warning)'
fill='var(--ui-color-warning)'
opacity='0.6'
>
<animate
@@ -292,7 +292,7 @@ export const IllustrationNotFound = ({ style = {} }) => (
</path>
<path
d='M160 60 L161.5 66 L168 68 L161.5 70 L160 76 L158.5 70 L152 68 L158.5 66 Z'
fill='var(--semi-color-danger)'
fill='var(--ui-color-danger)'
opacity='0.5'
>
<animate
@@ -320,8 +320,8 @@ export const IllustrationNotFoundDark = ({ style = {} }) => (
x2='100%'
y2='100%'
>
<stop offset='0%' stopColor='var(--semi-color-warning)' />
<stop offset='100%' stopColor='var(--semi-color-danger)' />
<stop offset='0%' stopColor='var(--ui-color-warning)' />
<stop offset='100%' stopColor='var(--ui-color-danger)' />
</linearGradient>
<linearGradient
id='notFoundGradDark2'
@@ -330,8 +330,8 @@ export const IllustrationNotFoundDark = ({ style = {} }) => (
x2='100%'
y2='100%'
>
<stop offset='0%' stopColor='color-mix(in srgb, var(--semi-color-warning) 30%, #000)' />
<stop offset='100%' stopColor='color-mix(in srgb, var(--semi-color-danger) 30%, #000)' />
<stop offset='0%' stopColor='color-mix(in srgb, var(--ui-color-warning) 30%, #000)' />
<stop offset='100%' stopColor='color-mix(in srgb, var(--ui-color-danger) 30%, #000)' />
</linearGradient>
</defs>
<circle
@@ -370,7 +370,7 @@ export const IllustrationNotFoundDark = ({ style = {} }) => (
</text>
<path
d='M40 40 L42 48 L50 50 L42 52 L40 60 L38 52 L30 50 L38 48 Z'
fill='var(--semi-color-warning)'
fill='var(--ui-color-warning)'
opacity='0.7'
>
<animate
@@ -382,7 +382,7 @@ export const IllustrationNotFoundDark = ({ style = {} }) => (
</path>
<path
d='M160 60 L161.5 66 L168 68 L161.5 70 L160 76 L158.5 70 L152 68 L158.5 66 Z'
fill='var(--semi-color-danger)'
fill='var(--ui-color-danger)'
opacity='0.6'
>
<animate
@@ -405,7 +405,7 @@ export const IllustrationNoAccess = ({ style = {} }) => (
>
<defs>
<linearGradient id='noAccessGrad1' x1='0%' y1='0%' x2='100%' y2='100%'>
<stop offset='0%' stopColor='var(--semi-color-danger)' />
<stop offset='0%' stopColor='var(--ui-color-danger)' />
<stop offset='100%' stopColor='var(--brand-gradient-via)' />
</linearGradient>
<linearGradient id='noAccessGrad2' x1='0%' y1='0%' x2='100%' y2='100%'>
@@ -436,7 +436,7 @@ export const IllustrationNoAccess = ({ style = {} }) => (
strokeLinecap='round'
/>
{/* 装饰 */}
<circle cx='45' cy='70' r='4' fill='var(--semi-color-danger)' opacity='0.4'>
<circle cx='45' cy='70' r='4' fill='var(--ui-color-danger)' opacity='0.4'>
<animate
attributeName='r'
values='4;6;4'
@@ -470,7 +470,7 @@ export const IllustrationNoAccessDark = ({ style = {} }) => (
x2='100%'
y2='100%'
>
<stop offset='0%' stopColor='var(--semi-color-danger)' />
<stop offset='0%' stopColor='var(--ui-color-danger)' />
<stop offset='100%' stopColor='var(--brand-gradient-to)' />
</linearGradient>
<linearGradient
@@ -480,7 +480,7 @@ export const IllustrationNoAccessDark = ({ style = {} }) => (
x2='100%'
y2='100%'
>
<stop offset='0%' stopColor='color-mix(in srgb, var(--semi-color-danger) 30%, #000)' />
<stop offset='0%' stopColor='color-mix(in srgb, var(--ui-color-danger) 30%, #000)' />
<stop offset='100%' stopColor='color-mix(in srgb, var(--brand-gradient-via) 25%, #000)' />
</linearGradient>
</defs>
@@ -508,7 +508,7 @@ export const IllustrationNoAccessDark = ({ style = {} }) => (
fill='none'
strokeLinecap='round'
/>
<circle cx='45' cy='70' r='4' fill='var(--semi-color-danger)' opacity='0.5'>
<circle cx='45' cy='70' r='4' fill='var(--ui-color-danger)' opacity='0.5'>
<animate
attributeName='r'
values='4;6;4'
@@ -537,11 +537,11 @@ export const IllustrationConstruction = ({ style = {} }) => (
>
<defs>
<linearGradient id='constructGrad1' x1='0%' y1='0%' x2='100%' y2='100%'>
<stop offset='0%' stopColor='var(--semi-color-success)' />
<stop offset='0%' stopColor='var(--ui-color-success)' />
<stop offset='100%' stopColor='var(--accent-teal)' />
</linearGradient>
<linearGradient id='constructGrad2' x1='0%' y1='0%' x2='100%' y2='100%'>
<stop offset='0%' stopColor='color-mix(in srgb, var(--semi-color-success) 15%, #fff)' />
<stop offset='0%' stopColor='color-mix(in srgb, var(--ui-color-success) 15%, #fff)' />
<stop offset='100%' stopColor='color-mix(in srgb, var(--accent-teal) 15%, #fff)' />
</linearGradient>
</defs>
@@ -626,7 +626,7 @@ export const IllustrationConstruction = ({ style = {} }) => (
opacity='0.7'
/>
{/* 装饰 */}
<circle cx='150' cy='50' r='4' fill='var(--semi-color-success)' opacity='0.5'>
<circle cx='150' cy='50' r='4' fill='var(--ui-color-success)' opacity='0.5'>
<animate
attributeName='opacity'
values='0.5;1;0.5'
@@ -660,7 +660,7 @@ export const IllustrationConstructionDark = ({ style = {} }) => (
x2='100%'
y2='100%'
>
<stop offset='0%' stopColor='var(--semi-color-success)' />
<stop offset='0%' stopColor='var(--ui-color-success)' />
<stop offset='100%' stopColor='var(--accent-teal)' />
</linearGradient>
<linearGradient
@@ -670,7 +670,7 @@ export const IllustrationConstructionDark = ({ style = {} }) => (
x2='100%'
y2='100%'
>
<stop offset='0%' stopColor='color-mix(in srgb, var(--semi-color-success) 25%, #000)' />
<stop offset='0%' stopColor='color-mix(in srgb, var(--ui-color-success) 25%, #000)' />
<stop offset='100%' stopColor='color-mix(in srgb, var(--accent-teal) 25%, #000)' />
</linearGradient>
</defs>
@@ -750,7 +750,7 @@ export const IllustrationConstructionDark = ({ style = {} }) => (
fill='url(#constructGradDark1)'
opacity='0.7'
/>
<circle cx='150' cy='50' r='4' fill='var(--semi-color-success)' opacity='0.6'>
<circle cx='150' cy='50' r='4' fill='var(--ui-color-success)' opacity='0.6'>
<animate
attributeName='opacity'
values='0.6;1;0.6'
+1 -1
View File
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
*/
import React from 'react';
import { Icon } from '@douyinfe/semi-ui';
import { Icon } from '@/components/ui';
const LinuxDoIcon = (props) => {
function CustomIcon() {
+1 -1
View File
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
*/
import React from 'react';
import { Icon } from '@douyinfe/semi-ui';
import { Icon } from '@/components/ui';
const OIDCIcon = (props) => {
function CustomIcon() {
+1 -1
View File
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
*/
import React from 'react';
import { Icon } from '@douyinfe/semi-ui';
import { Icon } from '@/components/ui';
const WeChatIcon = () => {
function CustomIcon() {
@@ -36,9 +36,9 @@ import {
import React from 'react';
import { useDebouncedCallback } from 'use-debounce';
import clsx from 'clsx';
import { Button, Tooltip, Toast } from '@douyinfe/semi-ui';
import { Button, Tooltip, Toast } from '@/components/ui';
import { copy, rehypeSplitWordsIntoSpans } from '../../../helpers';
import { IconCopy } from '@douyinfe/semi-icons';
import { IconCopy } from '@/components/ui/icons';
import { useTranslation } from 'react-i18next';
import ImagePreviewModal from '../../playground/ImagePreviewModal';
@@ -131,9 +131,9 @@ export function Mermaid(props) {
cursor: 'pointer',
overflow: 'auto',
padding: '12px',
border: '1px solid var(--semi-color-border)',
border: '1px solid var(--ui-color-border)',
borderRadius: '8px',
backgroundColor: 'var(--semi-color-bg-1)',
backgroundColor: 'var(--ui-color-bg-1)',
margin: '12px 0',
position: 'relative',
minHeight: isLoading ? '100px' : 'auto',
@@ -150,7 +150,7 @@ export function Mermaid(props) {
display: 'flex',
alignItems: 'center',
gap: '8px',
color: 'var(--semi-color-text-2)',
color: 'var(--ui-color-text-2)',
fontSize: '12px',
}}
>
@@ -158,8 +158,8 @@ export function Mermaid(props) {
style={{
width: '14px',
height: '14px',
border: '2px solid var(--semi-color-border)',
borderTop: '2px solid var(--semi-color-primary)',
border: '2px solid var(--ui-color-border)',
borderTop: '2px solid var(--ui-color-primary)',
borderRadius: '50%',
animation: 'spin 1s linear infinite',
}}
@@ -229,8 +229,8 @@ export function PreCode(props) {
ref={ref}
style={{
position: 'relative',
backgroundColor: 'var(--semi-color-fill-0)',
border: '1px solid var(--semi-color-border)',
backgroundColor: 'var(--ui-color-fill-0)',
border: '1px solid var(--ui-color-border)',
borderRadius: '6px',
padding: '12px',
margin: '12px 0',
@@ -274,10 +274,10 @@ export function PreCode(props) {
}}
style={{
padding: '4px',
backgroundColor: 'var(--semi-color-bg-2)',
backgroundColor: 'var(--ui-color-bg-2)',
borderRadius: '4px',
cursor: 'pointer',
border: '1px solid var(--semi-color-border)',
border: '1px solid var(--ui-color-border)',
boxShadow: '0 1px 2px rgba(0, 0, 0, 0.1)',
}}
/>
@@ -291,18 +291,18 @@ export function PreCode(props) {
{htmlCode.length > 0 && (
<div
style={{
border: '1px solid var(--semi-color-border)',
border: '1px solid var(--ui-color-border)',
borderRadius: '8px',
padding: '16px',
margin: '12px 0',
backgroundColor: 'var(--semi-color-bg-1)',
backgroundColor: 'var(--ui-color-bg-1)',
}}
>
<div
style={{
marginBottom: '8px',
fontSize: '12px',
color: 'var(--semi-color-text-2)',
color: 'var(--ui-color-text-2)',
}}
>
HTML预览:
@@ -380,7 +380,7 @@ function CustomCode(props) {
overflowY: 'hidden',
display: 'block',
padding: '8px 12px',
backgroundColor: 'var(--semi-color-fill-0)',
backgroundColor: 'var(--ui-color-fill-0)',
borderRadius: '4px',
fontSize: '13px',
lineHeight: '1.4',
@@ -511,7 +511,7 @@ function MarkdownContentImpl(props) {
style={{
color: isUserMessage
? '#87CEEB'
: 'var(--semi-color-primary)',
: 'var(--ui-color-primary)',
textDecoration: 'none',
}}
onMouseEnter={(e) => {
@@ -530,7 +530,7 @@ function MarkdownContentImpl(props) {
fontSize: '24px',
fontWeight: 'bold',
margin: '20px 0 12px 0',
color: isUserMessage ? 'white' : 'var(--semi-color-text-0)',
color: isUserMessage ? 'white' : 'var(--ui-color-text-0)',
}}
/>
),
@@ -541,7 +541,7 @@ function MarkdownContentImpl(props) {
fontSize: '20px',
fontWeight: 'bold',
margin: '18px 0 10px 0',
color: isUserMessage ? 'white' : 'var(--semi-color-text-0)',
color: isUserMessage ? 'white' : 'var(--ui-color-text-0)',
}}
/>
),
@@ -552,7 +552,7 @@ function MarkdownContentImpl(props) {
fontSize: '18px',
fontWeight: 'bold',
margin: '16px 0 8px 0',
color: isUserMessage ? 'white' : 'var(--semi-color-text-0)',
color: isUserMessage ? 'white' : 'var(--ui-color-text-0)',
}}
/>
),
@@ -563,7 +563,7 @@ function MarkdownContentImpl(props) {
fontSize: '16px',
fontWeight: 'bold',
margin: '14px 0 6px 0',
color: isUserMessage ? 'white' : 'var(--semi-color-text-0)',
color: isUserMessage ? 'white' : 'var(--ui-color-text-0)',
}}
/>
),
@@ -574,7 +574,7 @@ function MarkdownContentImpl(props) {
fontSize: '14px',
fontWeight: 'bold',
margin: '12px 0 4px 0',
color: isUserMessage ? 'white' : 'var(--semi-color-text-0)',
color: isUserMessage ? 'white' : 'var(--ui-color-text-0)',
}}
/>
),
@@ -585,7 +585,7 @@ function MarkdownContentImpl(props) {
fontSize: '13px',
fontWeight: 'bold',
margin: '10px 0 4px 0',
color: isUserMessage ? 'white' : 'var(--semi-color-text-0)',
color: isUserMessage ? 'white' : 'var(--ui-color-text-0)',
}}
/>
),
@@ -595,12 +595,12 @@ function MarkdownContentImpl(props) {
style={{
borderLeft: isUserMessage
? '4px solid rgba(255, 255, 255, 0.5)'
: '4px solid var(--semi-color-primary)',
: '4px solid var(--ui-color-primary)',
paddingLeft: '16px',
margin: '12px 0',
backgroundColor: isUserMessage
? 'rgba(255, 255, 255, 0.1)'
: 'var(--semi-color-fill-0)',
: 'var(--ui-color-fill-0)',
padding: '8px 16px',
borderRadius: '0 4px 4px 0',
fontStyle: 'italic',
@@ -647,7 +647,7 @@ function MarkdownContentImpl(props) {
borderCollapse: 'collapse',
border: isUserMessage
? '1px solid rgba(255, 255, 255, 0.3)'
: '1px solid var(--semi-color-border)',
: '1px solid var(--ui-color-border)',
borderRadius: '6px',
overflow: 'hidden',
}}
@@ -661,10 +661,10 @@ function MarkdownContentImpl(props) {
padding: '8px 12px',
backgroundColor: isUserMessage
? 'rgba(255, 255, 255, 0.2)'
: 'var(--semi-color-fill-1)',
: 'var(--ui-color-fill-1)',
border: isUserMessage
? '1px solid rgba(255, 255, 255, 0.3)'
: '1px solid var(--semi-color-border)',
: '1px solid var(--ui-color-border)',
fontWeight: 'bold',
textAlign: 'left',
color: isUserMessage ? 'white' : 'inherit',
@@ -678,7 +678,7 @@ function MarkdownContentImpl(props) {
padding: '8px 12px',
border: isUserMessage
? '1px solid rgba(255, 255, 255, 0.3)'
: '1px solid var(--semi-color-border)',
: '1px solid var(--ui-color-border)',
color: isUserMessage ? 'white' : 'inherit',
}}
/>
@@ -727,7 +727,7 @@ export function MarkdownRenderer(props) {
fontSize: `${fontSize}px`,
fontFamily: fontFamily,
lineHeight: '1.6',
color: 'var(--semi-color-text-0)',
color: 'var(--ui-color-text-0)',
...style,
}}
dir='auto'
@@ -740,15 +740,15 @@ export function MarkdownRenderer(props) {
alignItems: 'center',
gap: '8px',
padding: '16px',
color: 'var(--semi-color-text-2)',
color: 'var(--ui-color-text-2)',
}}
>
<div
style={{
width: '16px',
height: '16px',
border: '2px solid var(--semi-color-border)',
borderTop: '2px solid var(--semi-color-primary)',
border: '2px solid var(--ui-color-border)',
borderTop: '2px solid var(--ui-color-primary)',
borderRadius: '50%',
animation: 'spin 1s linear infinite',
}}
+39 -52
View File
@@ -2,7 +2,7 @@
.markdown-body {
font-family: inherit;
line-height: 1.6;
color: var(--semi-color-text-0);
color: var(--ui-color-text-0);
overflow-wrap: break-word;
word-wrap: break-word;
word-break: break-word;
@@ -92,26 +92,24 @@
transform: rotate(360deg);
}
}
/* 代码高亮主题 - 适配Semi Design */
.hljs {
display: block;
overflow-x: auto;
padding: 0;
background: transparent;
color: var(--semi-color-text-0);
color: var(--ui-color-text-0);
}
.hljs-comment,
.hljs-quote {
color: var(--semi-color-text-2);
color: var(--ui-color-text-2);
font-style: italic;
}
.hljs-keyword,
.hljs-selector-tag,
.hljs-subst {
color: var(--semi-color-primary);
color: var(--ui-color-primary);
font-weight: bold;
}
@@ -120,18 +118,18 @@
.hljs-variable,
.hljs-template-variable,
.hljs-tag .hljs-attr {
color: var(--semi-color-warning);
color: var(--ui-color-warning);
}
.hljs-string,
.hljs-doctag {
color: var(--semi-color-success);
color: var(--ui-color-success);
}
.hljs-title,
.hljs-section,
.hljs-selector-id {
color: var(--semi-color-primary);
color: var(--ui-color-primary);
font-weight: bold;
}
@@ -141,42 +139,42 @@
.hljs-type,
.hljs-class .hljs-title {
color: var(--semi-color-info);
color: var(--ui-color-info);
font-weight: bold;
}
.hljs-tag,
.hljs-name,
.hljs-attribute {
color: var(--semi-color-primary);
color: var(--ui-color-primary);
font-weight: normal;
}
.hljs-regexp,
.hljs-link {
color: var(--semi-color-tertiary);
color: var(--ui-color-tertiary);
}
.hljs-symbol,
.hljs-bullet {
color: var(--semi-color-warning);
color: var(--ui-color-warning);
}
.hljs-built_in,
.hljs-builtin-name {
color: var(--semi-color-info);
color: var(--ui-color-info);
}
.hljs-meta {
color: var(--semi-color-text-2);
color: var(--ui-color-text-2);
}
.hljs-deletion {
background: var(--semi-color-danger-light-default);
background: var(--ui-color-danger-light-default);
}
.hljs-addition {
background: var(--semi-color-success-light-default);
background: var(--ui-color-success-light-default);
}
.hljs-emphasis {
@@ -205,7 +203,7 @@ pre {
}
pre:hover {
border-color: var(--semi-color-primary) !important;
border-color: var(--ui-color-primary) !important;
box-shadow: 0 2px 8px rgba(0, 0, 0, 0.1);
}
@@ -230,17 +228,6 @@ pre:hover .copy-code-button {
}
/* 确保按钮可点击 */
.copy-code-button .semi-button {
pointer-events: auto !important;
cursor: pointer !important;
transition: all 0.2s ease;
}
.copy-code-button .semi-button:hover {
background-color: var(--semi-color-fill-1) !important;
border-color: var(--semi-color-primary) !important;
transform: scale(1.05);
}
/* ===== 服务大盘描述区域表格增强样式 ===== */
.service-dashboard-description .markdown-body table {
@@ -438,17 +425,17 @@ pre:hover .copy-code-button {
left: -8px;
top: -8px;
font-size: 24px;
color: var(--semi-color-primary);
color: var(--ui-color-primary);
opacity: 0.3;
}
/* 列表样式增强 */
.markdown-body ul li::marker {
color: var(--semi-color-primary);
color: var(--ui-color-primary);
}
.markdown-body ol li::marker {
color: var(--semi-color-primary);
color: var(--ui-color-primary);
font-weight: bold;
}
@@ -459,7 +446,7 @@ pre:hover .copy-code-button {
background: linear-gradient(
to right,
transparent,
var(--semi-color-border),
var(--ui-color-border),
transparent
);
margin: 24px 0;
@@ -476,12 +463,12 @@ pre:hover .copy-code-button {
/* 内联代码样式 */
.markdown-body code:not(pre code) {
background-color: var(--semi-color-fill-1);
background-color: var(--ui-color-fill-1);
padding: 2px 6px;
border-radius: 4px;
font-size: 0.9em;
color: var(--semi-color-primary);
border: 1px solid var(--semi-color-border);
color: var(--ui-color-primary);
border: 1px solid var(--ui-color-border);
}
/* 标题锚点样式 */
@@ -507,11 +494,11 @@ pre:hover .copy-code-button {
/* 键盘按键样式 */
.markdown-body kbd {
background-color: var(--semi-color-fill-0);
border: 1px solid var(--semi-color-border);
background-color: var(--ui-color-fill-0);
border: 1px solid var(--ui-color-border);
border-radius: 3px;
box-shadow: 0 1px 0 var(--semi-color-border);
color: var(--semi-color-text-0);
box-shadow: 0 1px 0 var(--ui-color-border);
color: var(--ui-color-text-0);
display: inline-block;
font-family: 'Consolas', 'Monaco', 'Courier New', monospace;
font-size: 0.85em;
@@ -523,7 +510,7 @@ pre:hover .copy-code-button {
/* 详情折叠样式 */
.markdown-body details {
border: 1px solid var(--semi-color-border);
border: 1px solid var(--ui-color-border);
border-radius: 6px;
padding: 12px;
margin: 12px 0;
@@ -532,17 +519,17 @@ pre:hover .copy-code-button {
.markdown-body summary {
cursor: pointer;
font-weight: bold;
color: var(--semi-color-primary);
color: var(--ui-color-primary);
margin-bottom: 8px;
}
.markdown-body summary:hover {
color: var(--semi-color-primary-hover);
color: var(--ui-color-primary-hover);
}
/* 脚注样式 */
.markdown-body .footnote-ref {
color: var(--semi-color-primary);
color: var(--ui-color-primary);
text-decoration: none;
font-weight: bold;
}
@@ -553,32 +540,32 @@ pre:hover .copy-code-button {
/* 警告块样式 */
.markdown-body .warning {
background-color: var(--semi-color-warning-light-default);
border-left: 4px solid var(--semi-color-warning);
background-color: var(--ui-color-warning-light-default);
border-left: 4px solid var(--ui-color-warning);
padding: 12px 16px;
margin: 12px 0;
border-radius: 0 6px 6px 0;
}
.markdown-body .info {
background-color: var(--semi-color-info-light-default);
border-left: 4px solid var(--semi-color-info);
background-color: var(--ui-color-info-light-default);
border-left: 4px solid var(--ui-color-info);
padding: 12px 16px;
margin: 12px 0;
border-radius: 0 6px 6px 0;
}
.markdown-body .success {
background-color: var(--semi-color-success-light-default);
border-left: 4px solid var(--semi-color-success);
background-color: var(--ui-color-success-light-default);
border-left: 4px solid var(--ui-color-success);
padding: 12px 16px;
margin: 12px 0;
border-radius: 0 6px 6px 0;
}
.markdown-body .danger {
background-color: var(--semi-color-danger-light-default);
border-left: 4px solid var(--semi-color-danger);
background-color: var(--ui-color-danger-light-default);
border-left: 4px solid var(--ui-color-danger);
padding: 12px 16px;
margin: 12px 0;
border-radius: 0 6px 6px 0;
@@ -17,7 +17,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>.
For commercial licensing, please contact support@quantumnous.com
*/
import React from 'react';
import { Modal, Button, Typography } from '@douyinfe/semi-ui';
import { Modal, Button, Typography } from '@/components/ui';
import { useTranslation } from 'react-i18next';
import {
Gift,
@@ -168,12 +168,12 @@ const NewUserGiftModal = ({ visible, onClose, quota }) => {
</div>
<style jsx='true'>{`
.new-user-gift-modal .semi-modal-content {
.new-user-gift-modal .ant-modal-content {
border-radius: 20px;
overflow: hidden;
padding: 0;
}
.new-user-gift-modal .semi-modal-body {
.new-user-gift-modal .ant-modal-body {
padding: 0;
}
`}</style>
@@ -26,7 +26,7 @@ import {
Typography,
Tabs,
TabPane,
} from '@douyinfe/semi-ui';
} from '@/components/ui';
/**
* 通用安全验证模态框组件
@@ -249,14 +249,14 @@ const SecureVerificationModal = ({
alignItems: 'center',
justifyContent: 'center',
borderRadius: '50%',
background: 'var(--semi-color-primary-light-default)',
background: 'var(--ui-color-primary-light-default)',
}}
>
<svg
style={{
width: 28,
height: 28,
color: 'var(--semi-color-primary)',
color: 'var(--ui-color-primary)',
}}
fill='currentColor'
viewBox='0 0 20 20'
@@ -19,7 +19,7 @@ For commercial licensing, please contact support@quantumnous.com
import React from 'react';
import { useTranslation } from 'react-i18next';
import { Modal, Button, Input, Typography } from '@douyinfe/semi-ui';
import { Modal, Button, Input, Typography } from '@/components/ui';
/**
* 可复用的两步验证模态框组件
@@ -24,7 +24,7 @@ import {
Radio,
Button,
Typography,
} from '@douyinfe/semi-ui';
} from '@/components/ui';
import { useTranslation } from 'react-i18next';
import { useNavigate } from 'react-router-dom';
import {
@@ -337,65 +337,6 @@ const UserSurveyModal = ({ visible, onClose, onSuccess }) => {
</Button>
</div>
</div>
<style jsx='true'>{`
.user-survey-modal .semi-modal-content {
border-radius: 20px;
overflow: hidden;
}
.survey-radio-group .semi-radio {
margin-bottom: 8px;
padding: 12px 16px;
border-radius: 12px;
border: 2px solid transparent;
background: rgba(249, 250, 251, 0.8);
transition: all 0.2s ease;
}
.dark .survey-radio-group .semi-radio {
background: rgba(31, 41, 55, 0.5);
}
.survey-radio-group .semi-radio:hover {
background: rgba(243, 244, 246, 1);
border-color: color-mix(in srgb, var(--brand-primary) 30%, transparent);
}
.dark .survey-radio-group .semi-radio:hover {
background: rgba(55, 65, 81, 0.8);
border-color: color-mix(in srgb, var(--brand-primary) 40%, transparent);
}
.survey-radio-group .semi-radio.semi-radio-checked {
background: linear-gradient(
135deg,
color-mix(in srgb, var(--brand-primary) 10%, transparent) 0%,
color-mix(in srgb, var(--brand-gradient-via) 10%, transparent) 100%
);
border-color: color-mix(in srgb, var(--brand-primary) 50%, transparent);
}
.dark .survey-radio-group .semi-radio.semi-radio-checked {
background: linear-gradient(
135deg,
color-mix(in srgb, var(--brand-primary) 20%, transparent) 0%,
color-mix(in srgb, var(--brand-gradient-via) 20%, transparent) 100%
);
border-color: color-mix(in srgb, var(--brand-primary) 60%, transparent);
}
.survey-radio-group .semi-radio .semi-radio-inner-display {
border-color: #d1d5db;
}
.survey-radio-group
.semi-radio.semi-radio-checked
.semi-radio-inner-display {
border-color: var(--brand-primary);
background: var(--brand-primary);
}
`}</style>
</Modal>
);
};
+3 -3
View File
@@ -18,10 +18,10 @@ For commercial licensing, please contact support@quantumnous.com
*/
import React, { useState } from 'react';
import { Card, Divider, Button } from '@douyinfe/semi-ui';
import { Card, Divider, Button } from '@/components/ui';
import PropTypes from 'prop-types';
import { useIsMobile } from '../../../hooks/common/useIsMobile';
import { IconEyeOpened, IconEyeClosed } from '@douyinfe/semi-icons';
import { IconEyeOpened, IconEyeClosed } from '@/components/ui/icons';
/**
* CardPro 高级卡片组件
@@ -147,7 +147,7 @@ const CardPro = ({
return (
<div
className={`flex w-full pt-4 border-t ${isMobile ? 'justify-center' : 'justify-between items-center'}`}
style={{ borderColor: 'var(--semi-color-border)' }}
style={{ borderColor: 'var(--ui-color-border)' }}
>
{paginationArea}
</div>
+7 -7
View File
@@ -28,8 +28,8 @@ import {
Empty,
Button,
Collapsible,
} from '@douyinfe/semi-ui';
import { IconChevronDown, IconChevronUp } from '@douyinfe/semi-icons';
} from '@/components/ui';
import { IconChevronDown, IconChevronUp } from '@/components/ui/icons';
import PropTypes from 'prop-types';
import { useIsMobile } from '../../../hooks/common/useIsMobile';
import { useMinimumLoadingTime } from '../../../hooks/common/useMinimumLoadingTime';
@@ -37,7 +37,7 @@ import { useMinimumLoadingTime } from '../../../hooks/common/useMinimumLoadingTi
/**
* CardTable 响应式表格组件
*
* 在桌面端渲染 Semi-UI 的 Table 组件,在移动端则将每一行数据渲染成 Card 形式。
* 在桌面端渲染 Ant Design Table,在移动端则将每一行数据渲染成 Card 形式。
* 该组件与 Table 组件的大部分 API 保持一致,只需将原 Table 换成 CardTable 即可。
*/
const CardTable = ({
@@ -143,7 +143,7 @@ const CardTable = ({
<div
key={idx}
className='flex justify-between items-center py-1 border-b last:border-b-0 border-dashed'
style={{ borderColor: 'var(--semi-color-border)' }}
style={{ borderColor: 'var(--ui-color-border)' }}
>
<Skeleton.Title style={{ width: 80, height: 14 }} />
<Skeleton.Title
@@ -197,7 +197,7 @@ const CardTable = ({
{selectionEnabled && (
<div
className='flex items-center pb-1 mb-1 border-b border-dashed'
style={{ borderColor: 'var(--semi-color-border)' }}
style={{ borderColor: 'var(--ui-color-border)' }}
>
<Checkbox
checked={selectedKeys.includes(rowKeyVal)}
@@ -237,7 +237,7 @@ const CardTable = ({
<div
key={col.key || colIdx}
className='flex justify-between items-start py-1 border-b last:border-b-0 border-dashed'
style={{ borderColor: 'var(--semi-color-border)' }}
style={{ borderColor: 'var(--ui-color-border)' }}
>
<span className='font-medium text-gray-600 mr-2 whitespace-nowrap select-none'>
{title}
@@ -288,7 +288,7 @@ const CardTable = ({
return (
<div className='flex flex-col gap-2'>
{selectionEnabled && selectableKeys.length > 0 && (
<div className='flex items-center justify-between px-3 py-2 rounded-xl bg-semi-color-fill-0'>
<div className='flex items-center justify-between px-3 py-2 rounded-xl bg-ui-color-fill-0'>
<Checkbox
checked={allSelected}
indeterminate={!allSelected && selectedKeys.length > 0}
@@ -19,7 +19,7 @@ For commercial licensing, please contact support@quantumnous.com
import React from 'react';
import { useTranslation } from 'react-i18next';
import { Card, Button, Typography, Tag } from '@douyinfe/semi-ui';
import { Card, Button, Typography, Tag } from '@/components/ui';
import { copy, showSuccess } from '../../../helpers';
/**
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
*/
import React from 'react';
import { Button } from '@douyinfe/semi-ui';
import { Button } from '@/components/ui';
import PropTypes from 'prop-types';
import { useIsMobile } from '../../../hooks/common/useIsMobile';
+5 -5
View File
@@ -35,8 +35,8 @@ import {
Col,
Divider,
Tooltip,
} from '@douyinfe/semi-ui';
import { IconPlus, IconDelete, IconAlertTriangle } from '@douyinfe/semi-icons';
} from '@/components/ui';
import { IconPlus, IconDelete, IconAlertTriangle } from '@/components/ui/icons';
const { Text } = Typography;
@@ -463,8 +463,8 @@ const JSONEditor = ({
className='absolute right-2 top-1/2 transform -translate-y-1/2'
style={{
color: isLastDuplicate
? 'var(--semi-color-danger)'
: 'var(--semi-color-warning)',
? 'var(--ui-color-danger)'
: 'var(--ui-color-warning)',
fontSize: '14px',
}}
/>
@@ -568,7 +568,7 @@ const JSONEditor = ({
<Tooltip content={t('重复的键名')}>
<IconAlertTriangle
className='absolute right-2 top-1/2 transform -translate-y-1/2'
style={{ color: 'var(--semi-color-warning)', fontSize: '14px' }}
style={{ color: 'var(--ui-color-warning)', fontSize: '14px' }}
/>
</Tooltip>
)}
+1 -1
View File
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
*/
import React, { useEffect, useRef, useState } from 'react';
import { InputNumber, withField } from '@douyinfe/semi-ui';
import { InputNumber, withField } from '@/components/ui';
import { useTranslation } from 'react-i18next';
import { getQuotaPerUnit } from '../../../helpers';
+1 -1
View File
@@ -18,7 +18,7 @@ For commercial licensing, please contact support@quantumnous.com
*/
import React from 'react';
import { Space, Tag, Typography, Popover } from '@douyinfe/semi-ui';
import { Space, Tag, Typography, Popover } from '@/components/ui';
const { Text } = Typography;
+21 -21
View File
@@ -1,14 +1,14 @@
.rich-text-editor {
border: 1px solid var(--semi-color-border);
border: 1px solid var(--ui-color-border);
border-radius: 4px;
overflow: hidden;
background: var(--semi-color-bg-2);
background: var(--ui-color-bg-2);
}
.rich-text-editor.is-invalid {
border-color: var(--semi-color-danger);
border-color: var(--ui-color-danger);
}
.rich-text-editor:focus-within {
border-color: var(--semi-color-primary);
border-color: var(--ui-color-primary);
}
.rich-text-toolbar {
display: flex;
@@ -16,8 +16,8 @@
align-items: center;
gap: 4px;
padding: 8px;
border-bottom: 1px solid var(--semi-color-border);
background: var(--semi-color-fill-0);
border-bottom: 1px solid var(--ui-color-border);
background: var(--ui-color-fill-0);
}
.rich-text-toolbar button,
.rich-text-toolbar select {
@@ -30,7 +30,7 @@
border: 0;
border-radius: 4px;
background: transparent;
color: var(--semi-color-text-1);
color: var(--ui-color-text-1);
cursor: pointer;
}
.rich-text-toolbar select {
@@ -39,12 +39,12 @@
}
.rich-text-toolbar button:hover,
.rich-text-toolbar button[aria-pressed='true'] {
background: var(--semi-color-primary-light-default);
color: var(--semi-color-primary);
background: var(--ui-color-primary-light-default);
color: var(--ui-color-primary);
}
.rich-text-toolbar button:focus-visible,
.rich-text-toolbar select:focus-visible {
outline: 2px solid var(--semi-color-primary);
outline: 2px solid var(--ui-color-primary);
outline-offset: 1px;
}
.rich-text-toolbar button:disabled {
@@ -56,14 +56,14 @@
padding: 16px;
outline: none;
line-height: 1.9;
color: var(--semi-color-text-0);
color: var(--ui-color-text-0);
overflow-wrap: anywhere;
}
.rich-text-content .ql-editor > * + * {
margin-top: 12px;
}
.rich-text-content .ql-editor.ql-blank::before {
color: var(--semi-color-text-2);
color: var(--ui-color-text-2);
font-style: normal;
pointer-events: none;
white-space: pre-wrap;
@@ -84,20 +84,20 @@
padding-left: 0;
}
.rich-text-content blockquote {
border-left: 3px solid var(--semi-color-border);
border-left: 3px solid var(--ui-color-border);
padding-left: 16px;
color: var(--semi-color-text-2);
color: var(--ui-color-text-2);
}
.rich-text-content img {
max-width: 100%;
height: auto;
}
.rich-text-count {
border-top: 1px solid var(--semi-color-border);
border-top: 1px solid var(--ui-color-border);
padding: 4px 12px;
text-align: right;
font-size: 12px;
color: var(--semi-color-text-2);
color: var(--ui-color-text-2);
}
.rich-text-content.ql-container,
@@ -106,11 +106,11 @@
font-size: 14px;
}
.rich-text-editor.is-invalid:focus-within {
border-color: var(--semi-color-danger);
border-color: var(--ui-color-danger);
}
.rich-text-toolbar select option {
background: var(--semi-color-bg-2);
color: var(--semi-color-text-0);
background: var(--ui-color-bg-2);
color: var(--ui-color-text-0);
}
.rich-text-content .ql-editor img {
display: inline-block;
@@ -119,7 +119,7 @@
.rich-text-image-error {
padding: 8px 12px;
font-size: 12px;
color: var(--semi-color-danger);
border-top: 1px solid var(--semi-color-border);
color: var(--ui-color-danger);
border-top: 1px solid var(--ui-color-border);
line-height: 1.6;
}
@@ -30,8 +30,8 @@ import {
Checkbox,
Skeleton,
Tooltip,
} from '@douyinfe/semi-ui';
import { IconChevronDown, IconChevronUp } from '@douyinfe/semi-icons';
} from '@/components/ui';
import { IconChevronDown, IconChevronUp } from '@/components/ui/icons';
/**
* 通用可选择按钮组组件
@@ -127,7 +127,7 @@ const SelectableButtonGroup = ({
fontWeight: 400,
cursor: 'pointer',
fontSize: '12px',
color: 'var(--semi-color-text-2)',
color: 'var(--ui-color-text-2)',
display: 'flex',
alignItems: 'center',
justifyContent: 'center',
@@ -146,8 +146,8 @@ const SelectableButtonGroup = ({
display: 'flex',
alignItems: 'center',
justifyContent: 'flex-start',
border: '1px solid var(--semi-color-border)',
borderRadius: 'var(--semi-border-radius-medium)',
border: '1px solid var(--ui-color-border)',
borderRadius: 'var(--ui-border-radius-medium)',
padding: '0 12px',
gap: '6px',
}}