feat: multi-module iteration

This commit is contained in:
2026-08-04 21:38:49 +08:00
parent 9d96c73246
commit 71f508e02b
1366 changed files with 202004 additions and 0 deletions
+14
View File
@@ -0,0 +1,14 @@
type CouponBadgeProps = {
amount: number | string;
className?: string;
/** 权益标签文案,默认「餐券」;首页使用「好客权益」 */
label?: string;
};
export default function CouponBadge({ amount, className = '', label = '餐券' }: CouponBadgeProps) {
return (
<span className={`coupon-badge ${className}`.trim()}>
¥{amount}{label}
</span>
);
}