From fc8009b6bf41914ad1681d952d30120241160e1e Mon Sep 17 00:00:00 2001 From: chenjiahan Date: Mon, 17 Aug 2020 22:21:04 +0800 Subject: [PATCH] chore(CouponCell): improve bem --- src/coupon-cell/index.tsx | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/src/coupon-cell/index.tsx b/src/coupon-cell/index.tsx index f4d763ee7..a8d2bafcd 100644 --- a/src/coupon-cell/index.tsx +++ b/src/coupon-cell/index.tsx @@ -39,9 +39,7 @@ function CouponCell( slots: DefaultSlots, ctx: RenderContext ) { - const valueClass = props.coupons[+props.chosenCoupon] - ? 'van-coupon-cell--selected' - : ''; + const valueClass = props.coupons[+props.chosenCoupon] ? bem('selected') : ''; const value = formatValue(props); return (