mirror of
https://github.com/youzan/vant.git
synced 2025-10-20 18:54:24 +00:00
docs: simplify $t to t
This commit is contained in:
@@ -1,35 +1,35 @@
|
||||
<template>
|
||||
<demo-section>
|
||||
<demo-block :title="$t('basicUsage')">
|
||||
<demo-block :title="t('basicUsage')">
|
||||
<van-button type="primary" @click="showImagePreview">
|
||||
{{ $t('button1') }}
|
||||
{{ t('button1') }}
|
||||
</van-button>
|
||||
</demo-block>
|
||||
|
||||
<demo-block :title="$t('button2')">
|
||||
<demo-block :title="t('button2')">
|
||||
<van-button type="primary" @click="showImagePreview(1)">
|
||||
{{ $t('button2') }}
|
||||
{{ t('button2') }}
|
||||
</van-button>
|
||||
</demo-block>
|
||||
|
||||
<demo-block :title="$t('button4')">
|
||||
<demo-block :title="t('button4')">
|
||||
<van-button type="primary" @click="showImagePreview(0, 0, true)">
|
||||
{{ $t('button4') }}
|
||||
{{ t('button4') }}
|
||||
</van-button>
|
||||
</demo-block>
|
||||
|
||||
<demo-block :title="$t('button3')">
|
||||
<demo-block :title="t('button3')">
|
||||
<van-button type="primary" @click="showImagePreview(0, 3000)">
|
||||
{{ $t('button3') }}
|
||||
{{ t('button3') }}
|
||||
</van-button>
|
||||
</demo-block>
|
||||
|
||||
<demo-block :title="$t('componentCall')">
|
||||
<demo-block :title="t('componentCall')">
|
||||
<van-button type="primary" @click="componentCall">
|
||||
{{ $t('componentCall') }}
|
||||
{{ t('componentCall') }}
|
||||
</van-button>
|
||||
<van-image-preview v-model="show" :images="images" @change="onChange">
|
||||
<template #index>{{ $t('index', index) }}</template>
|
||||
<template #index>{{ t('index', index) }}</template>
|
||||
</van-image-preview>
|
||||
</demo-block>
|
||||
</demo-section>
|
||||
|
Reference in New Issue
Block a user