chore: prettier all demos

This commit is contained in:
陈嘉涵
2020-01-19 15:39:00 +08:00
parent 207e80f396
commit 82208c42b8
55 changed files with 646 additions and 498 deletions

View File

@@ -1,21 +1,36 @@
<template>
<demo-section>
<demo-block :title="$t('alert1')">
<van-button type="primary" @click="onClickAlert">{{ $t('alert1') }}</van-button>
<van-button type="primary" @click="onClickAlert2">{{ $t('alert2') }}</van-button>
<van-button type="primary" @click="onClickAlert">
{{ $t('alert1') }}
</van-button>
<van-button type="primary" @click="onClickAlert2">
{{ $t('alert2') }}
</van-button>
</demo-block>
<demo-block :title="$t('confirm')">
<van-button type="primary" @click="onClickConfirm">{{ $t('confirm') }}</van-button>
<van-button type="primary" @click="onClickConfirm">
{{ $t('confirm') }}
</van-button>
</demo-block>
<demo-block :title="$t('asyncClose')">
<van-button type="primary" @click="onClickAsyncClose">{{ $t('asyncClose') }}</van-button>
<van-button type="primary" @click="onClickAsyncClose">
{{ $t('asyncClose') }}
</van-button>
</demo-block>
<demo-block :title="$t('componentCall')">
<van-button type="primary" @click="show = true">{{ $t('componentCall') }}</van-button>
<van-dialog v-model="show" :title="$t('title')" show-cancel-button :lazy-render="false">
<van-button type="primary" @click="show = true">
{{ $t('componentCall') }}
</van-button>
<van-dialog
v-model="show"
:title="$t('title')"
show-cancel-button
:lazy-render="false"
>
<img :src="image" />
</van-dialog>
</demo-block>