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
+11 -11
View File
@@ -1,25 +1,25 @@
<template>
<demo-section>
<demo-block :title="$t('basicUsage')">
<van-notice-bar :text="$t('text')" left-icon="volume-o" />
<demo-block :title="t('basicUsage')">
<van-notice-bar :text="t('text')" left-icon="volume-o" />
</demo-block>
<demo-block :title="$t('unscrollable')">
<van-notice-bar :scrollable="false" :text="$t('text')" />
<demo-block :title="t('unscrollable')">
<van-notice-bar :scrollable="false" :text="t('text')" />
</demo-block>
<demo-block :title="$t('wrapable')">
<van-notice-bar wrapable :scrollable="false" :text="$t('text')" />
<demo-block :title="t('wrapable')">
<van-notice-bar wrapable :scrollable="false" :text="t('text')" />
</demo-block>
<demo-block :title="$t('mode')">
<van-notice-bar mode="closeable" :text="$t('text')" />
<van-notice-bar mode="link" :text="$t('text')" />
<demo-block :title="t('mode')">
<van-notice-bar mode="closeable" :text="t('text')" />
<van-notice-bar mode="link" :text="t('text')" />
</demo-block>
<demo-block :title="$t('customStyle')">
<demo-block :title="t('customStyle')">
<van-notice-bar
:text="$t('text')"
:text="t('text')"
color="#1989fa"
background="#ecf9ff"
left-icon="info-o"