[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

View File

@@ -4,7 +4,7 @@
<van-notice-bar>{{ $t('tips') }}</van-notice-bar>
<demo-block :title="$t('basicUsage')">
<van-swipe-cell>
<template v-slot:left>
<template #left>
<van-button
square
type="danger"
@@ -16,7 +16,7 @@
:title="$t('title')"
:value="$t('content')"
/>
<template v-slot:right>
<template #right>
<van-button
square
type="danger"
@@ -28,7 +28,7 @@
<demo-block :title="$t('title2')">
<van-swipe-cell :on-close="onClose">
<template v-slot:left>
<template #left>
<van-button
square
type="danger"
@@ -40,7 +40,7 @@
:title="$t('title')"
:value="$t('content')"
/>
<template v-slot:right>
<template #right>
<van-button
square
type="danger"