+ {assets.map((asset) => {
+ const active = checked.has(asset.id);
+ return (
+
toggle(asset)}
+ style={{
+ cursor: 'pointer',
+ border: active ? '2px solid #8b5cf6' : '1px solid #edf0f5',
+ borderRadius: 12,
+ overflow: 'hidden',
+ background: '#fff',
+ boxShadow: active ? '0 8px 20px rgba(139,92,246,0.18)' : '0 4px 12px rgba(15,23,42,0.04)',
+ position: 'relative',
+ }}
+ >
+
+ {asset.previewUrl ? (
+
})
+ ) : (
+
+ )}
+
+ {active && (
+
+
+
+ )}
+
+ {asset.name || '未命名素材'}
+
+ Active
+ {asset.projectName}
+
+
+