docs: simplify $t to t

This commit is contained in:
chenjiahan
2020-03-21 14:46:02 +08:00
parent 10f32d6619
commit d8fa4b9495
80 changed files with 918 additions and 950 deletions
+4 -4
View File
@@ -1,9 +1,9 @@
<template>
<demo-section>
<demo-block :title="$t('basicUsage')">
<demo-block :title="t('basicUsage')">
<van-button
type="primary"
:text="$t('showOverlay')"
:text="t('showOverlay')"
style="margin-left: 16px;"
@click="show = true"
/>
@@ -11,10 +11,10 @@
<van-overlay :show="show" @click="show = false" />
</demo-block>
<demo-block :title="$t('embeddedContent')">
<demo-block :title="t('embeddedContent')">
<van-button
type="primary"
:text="$t('embeddedContent')"
:text="t('embeddedContent')"
style="margin-left: 16px;"
@click="showEmbedded = true"
/>