mirror of
https://github.com/youzan/vant.git
synced 2025-10-21 03:11:15 +00:00
docs: simplify $t to t
This commit is contained in:
@@ -1,26 +1,26 @@
|
||||
<template>
|
||||
<demo-section>
|
||||
<demo-block :title="$t('basicUsage')">
|
||||
<demo-block :title="t('basicUsage')">
|
||||
<van-sticky>
|
||||
<van-button type="primary" style="margin-left: 15px;">
|
||||
{{ $t('basicUsage') }}
|
||||
{{ t('basicUsage') }}
|
||||
</van-button>
|
||||
</van-sticky>
|
||||
</demo-block>
|
||||
|
||||
<demo-block :title="$t('offsetTop')">
|
||||
<demo-block :title="t('offsetTop')">
|
||||
<van-sticky :offset-top="50">
|
||||
<van-button type="info" style="margin-left: 115px;">
|
||||
{{ $t('offsetTop') }}
|
||||
{{ t('offsetTop') }}
|
||||
</van-button>
|
||||
</van-sticky>
|
||||
</demo-block>
|
||||
|
||||
<demo-block v-if="!isWeapp" :title="$t('setContainer')">
|
||||
<demo-block v-if="!isWeapp" :title="t('setContainer')">
|
||||
<div ref="container" style="height: 150px; background-color: #fff;">
|
||||
<van-sticky :container="container">
|
||||
<van-button type="warning" style="margin-left: 215px;">
|
||||
{{ $t('setContainer') }}
|
||||
{{ t('setContainer') }}
|
||||
</van-button>
|
||||
</van-sticky>
|
||||
</div>
|
||||
|
Reference in New Issue
Block a user