mirror of
https://gitee.com/vant-contrib/vant.git
synced 2025-04-06 03:57:59 +08:00
fix(CouponList): incorrect Tabs v-model (#9052)
This commit is contained in:
parent
34d4937f2b
commit
53969c455f
@ -222,7 +222,7 @@ export default defineComponent({
|
|||||||
return () => (
|
return () => (
|
||||||
<div class={bem()}>
|
<div class={bem()}>
|
||||||
{renderExchangeBar()}
|
{renderExchangeBar()}
|
||||||
<Tabs v-model={state.tab} class={bem('tab')} border={false}>
|
<Tabs v-model={[state.tab, 'active']} class={bem('tab')} border={false}>
|
||||||
{renderCouponTab()}
|
{renderCouponTab()}
|
||||||
{renderDisabledTab()}
|
{renderDisabledTab()}
|
||||||
</Tabs>
|
</Tabs>
|
||||||
|
@ -24,9 +24,7 @@ exports[`should be the sames as the last snapshot when render coupon list 1`] =
|
|||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-tabs van-tabs--line van-coupon-list__tab"
|
<div class="van-tabs van-tabs--line van-coupon-list__tab">
|
||||||
modelvalue="0"
|
|
||||||
>
|
|
||||||
<div class="van-tabs__wrap">
|
<div class="van-tabs__wrap">
|
||||||
<div role="tablist"
|
<div role="tablist"
|
||||||
class="van-tabs__nav van-tabs__nav--line"
|
class="van-tabs__nav van-tabs__nav--line"
|
||||||
@ -304,9 +302,7 @@ exports[`should have two "van-coupon-list__empty" classes when render coupon lis
|
|||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-tabs van-tabs--line van-coupon-list__tab"
|
<div class="van-tabs van-tabs--line van-coupon-list__tab">
|
||||||
modelvalue="0"
|
|
||||||
>
|
|
||||||
<div class="van-tabs__wrap">
|
<div class="van-tabs__wrap">
|
||||||
<div role="tablist"
|
<div role="tablist"
|
||||||
class="van-tabs__nav van-tabs__nav--line"
|
class="van-tabs__nav van-tabs__nav--line"
|
||||||
@ -404,9 +400,7 @@ exports[`should render list-footer slot correctly 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-tabs van-tabs--line van-coupon-list__tab"
|
<div class="van-tabs van-tabs--line van-coupon-list__tab">
|
||||||
modelvalue="0"
|
|
||||||
>
|
|
||||||
<div class="van-tabs__wrap">
|
<div class="van-tabs__wrap">
|
||||||
<div role="tablist"
|
<div role="tablist"
|
||||||
class="van-tabs__nav van-tabs__nav--line"
|
class="van-tabs__nav van-tabs__nav--line"
|
||||||
@ -506,9 +500,7 @@ exports[`should use custom src when using empty-image prop 1`] = `
|
|||||||
</div>
|
</div>
|
||||||
</button>
|
</button>
|
||||||
</div>
|
</div>
|
||||||
<div class="van-tabs van-tabs--line van-coupon-list__tab"
|
<div class="van-tabs van-tabs--line van-coupon-list__tab">
|
||||||
modelvalue="0"
|
|
||||||
>
|
|
||||||
<div class="van-tabs__wrap">
|
<div class="van-tabs__wrap">
|
||||||
<div role="tablist"
|
<div role="tablist"
|
||||||
class="van-tabs__nav van-tabs__nav--line"
|
class="van-tabs__nav van-tabs__nav--line"
|
||||||
|
Loading…
x
Reference in New Issue
Block a user