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