feat: 完善后台设计语言细节
- 统一说明文案层级:Typography.Paragraph 次要文案迁移到 admin-section-description - 状态色补齐边框与中间调令牌,Alert/错误条/Descriptions 与 StatusTag 同源 - 咨询详情描述列表去表格线,改为键值展示并统一令牌 - 新增 BrandMark,侧栏与登录页标识改用品牌首字 - 信任内容改用列表行,空状态、表格骨架屏、主按钮脏检查落地 - design.md 同步令牌映射、切换控件选型与组件清单
This commit is contained in:
1 parent
2f26828f09
commit
3ef46b0aa8
25 files changed
+836
-393
No files matched your search
@@ -0,0 +1,29 @@
|
||||
import { Skeleton } from "antd";
|
||||
|
||||
export function TableSkeleton({ rows = 4 }: { rows?: number }) {
|
||||
return (
|
||||
<div className="admin-table-skeleton" role="status" aria-live="polite">
|
||||
{Array.from({ length: rows }).map((_, index) => (
|
||||
<div key={index} className="admin-table-skeleton__row">
|
||||
<Skeleton.Input active size="small" block />
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
|
||||
export function ListSkeleton({ rows = 3 }: { rows?: number }) {
|
||||
return (
|
||||
<div className="admin-list-skeleton" role="status" aria-live="polite">
|
||||
{Array.from({ length: rows }).map((_, index) => (
|
||||
<div key={index} className="admin-list-skeleton__row">
|
||||
<Skeleton.Input active size="small" className="admin-list-skeleton__thumb" />
|
||||
<div className="admin-list-skeleton__body">
|
||||
<Skeleton.Input active size="small" block />
|
||||
<Skeleton.Input active size="small" block />
|
||||
</div>
|
||||
</div>
|
||||
))}
|
||||
</div>
|
||||
);
|
||||
}
|
||||
Reference in new issue
Block a user