mirror of
https://github.com/MoonTechLab/LunaTV.git
synced 2026-03-01 16:44:43 +08:00
refactor(components): 优化卡片组件并更新运行时配置
- 移除多个卡片组件的懒加载属性以提升首屏性能 - 使用ImagePlaceholder组件统一骨架屏实现 - 修复DemoCard组件中的拼写错误 - 标准化runtime.ts中的JSON格式 - 更新package.json中的包管理器配置
This commit is contained in:
@@ -58,7 +58,7 @@ const DemoCard = ({ id, title, poster, rate, type }: DemoCardProps) => {
|
||||
|
||||
return (
|
||||
<div
|
||||
className='group relative w-full rounded-lg bg-transparent flex flex-col cursor-pointer transition-all duration-300 ease-in-out'
|
||||
className='group relative w-full rounded-lg bg-transparen flex flex-col cursor-pointer transition-all duration-300 ease-in-out'
|
||||
onClick={handleClick}
|
||||
>
|
||||
{/* 海报图片区域 */}
|
||||
@@ -72,7 +72,6 @@ const DemoCard = ({ id, title, poster, rate, type }: DemoCardProps) => {
|
||||
alt={title}
|
||||
fill
|
||||
ref={imgRef}
|
||||
loading='lazy'
|
||||
className={`object-cover transition-transform duration-500 cubic-bezier(0.4,0,0.2,1) group-hover:scale-110
|
||||
${
|
||||
isLoaded
|
||||
|
||||
Reference in New Issue
Block a user