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
+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}