fix(platform): 用户工作台 - 统一资源卡片并修正项目列表与预览交互

This commit is contained in:
ddCat
2026-08-06 23:01:08 +08:00
parent 61f0dfb9c6
commit 7d4384fa1f
12 changed files with 529 additions and 202 deletions

View File

@@ -0,0 +1,12 @@
import type { ReactNode } from "react";
import { cn } from "@/lib/utils";
/** 资产库卡片的共同外壳;页面只负责业务动作和卡片内的信息层级。 */
export function AssetLibraryCard({ children, className, selected = false }: { children: ReactNode; className?: string; selected?: boolean }) {
return <article className={cn("library-card library-card-surface asset-library-card group", selected && "is-selected", className)}>{children}</article>;
}
export function AssetLibraryCardMedia({ children, className }: { children: ReactNode; className?: string }) {
return <div className={cn("library-card-media", className)}>{children}</div>;
}