mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
chore(CouponCell): improve bem
This commit is contained in:
parent
d069a0d0df
commit
fc8009b6bf
@ -39,9 +39,7 @@ function CouponCell(
|
||||
slots: DefaultSlots,
|
||||
ctx: RenderContext<CouponCellProps>
|
||||
) {
|
||||
const valueClass = props.coupons[+props.chosenCoupon]
|
||||
? 'van-coupon-cell--selected'
|
||||
: '';
|
||||
const valueClass = props.coupons[+props.chosenCoupon] ? bem('selected') : '';
|
||||
const value = formatValue(props);
|
||||
|
||||
return (
|
||||
|
Loading…
x
Reference in New Issue
Block a user