[Doc] Demo: use v-slot shorthand (#3574)

This commit is contained in:
neverland
2019-06-20 17:40:57 +08:00
committed by GitHub
parent d9f2ad6759
commit 5b12d80d97
20 changed files with 36 additions and 39 deletions
+2 -2
View File
@@ -103,12 +103,12 @@
@buy-clicked="onBuyClicked"
@add-cart="onAddCartClicked"
>
<template v-slot:sku-header-price="{ price }">
<template #sku-header-price="{ price }">
<div class="van-sku__goods-price">
<span class="van-sku__price-symbol"></span><span class="van-sku__price-num">{{ price }}</span>
</div>
</template>
<template v-slot:sku-actions="{ skuEventBus }">
<template #sku-actions="{ skuEventBus }">
<div class="van-sku-actions">
<van-button
square