docs: simplify $t to t
This commit is contained in:
@@ -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"
|
||||
|
||||
Reference in New Issue
Block a user