'use client' import React from 'react' /** * 预购进度单元格组件 * 在列表网格视图中显示订单计数和进度 */ export function PreorderProgressCell({ rowData }: any) { const orderCount = parseInt(rowData?.orderCount || '0', 10) || 0 const fakeOrderCount = parseInt(rowData?.fakeOrderCount || '0', 10) || 0 const fundingGoal = parseInt(rowData?.fundingGoal || '0', 10) || 100 const totalCount = orderCount + fakeOrderCount const percentage = fundingGoal > 0 ? Math.min(Math.round((totalCount / fundingGoal) * 100), 100) : 0 return (
预购进度 {totalCount} / {fundingGoal}
真实 {orderCount}
Fake {fakeOrderCount}
完成度 {percentage}%
) }