[new feature] add i18n support (#310)
* fix: Tabbar icon line-height * [new feature] progress add showPivot prop * [new feature] TabItem support vue-router * [new feature] update document header style * [Doc] add toast english ducoment * [new feature] add i18n support * feat: Extract demos from markdown * feat: Base components demos * [new feature] complete demo extract & translate * [fix] text cases * fix: add deepAssign test cases * fix: changelog detail * [new feature] AddressEdit support i18n
This commit is contained in:
@@ -10,15 +10,15 @@
|
||||
<div class="van-pull-refresh__head">
|
||||
<slot name="normal" v-if="status === 'normal'"></slot>
|
||||
<slot name="pulling" v-if="status === 'pulling'">
|
||||
<span class="van-pull-refresh__text">{{ pullingText }}</span>
|
||||
<span class="van-pull-refresh__text">{{ pullingText || $t('pullingText') }}</span>
|
||||
</slot>
|
||||
<slot name="loosing" v-if="status === 'loosing'">
|
||||
<span class="van-pull-refresh__text">{{ loosingText }}</span>
|
||||
<span class="van-pull-refresh__text">{{ loosingText || $t('loosingText') }}</span>
|
||||
</slot>
|
||||
<slot name="loading" v-if="status === 'loading'">
|
||||
<div class="van-pull-refresh__loading">
|
||||
<van-loading />
|
||||
<span>{{ loadingText }}</span>
|
||||
<span>{{ loadingText || $t('loadingText') }}</span>
|
||||
</div>
|
||||
</slot>
|
||||
</div>
|
||||
@@ -29,27 +29,21 @@
|
||||
<script>
|
||||
import Loading from '../loading';
|
||||
import scrollUtils from '../utils/scroll';
|
||||
import { i18n } from '../locale';
|
||||
|
||||
export default {
|
||||
name: 'van-pull-refresh',
|
||||
|
||||
mixins: [i18n],
|
||||
|
||||
props: {
|
||||
pullingText: String,
|
||||
loosingText: String,
|
||||
loadingText: String,
|
||||
value: {
|
||||
type: Boolean,
|
||||
required: true
|
||||
},
|
||||
pullingText: {
|
||||
type: String,
|
||||
default: '下拉即可刷新...'
|
||||
},
|
||||
loosingText: {
|
||||
type: String,
|
||||
default: '释放即可刷新...'
|
||||
},
|
||||
loadingText: {
|
||||
type: String,
|
||||
default: '加载中...'
|
||||
},
|
||||
animationDuration: {
|
||||
type: Number,
|
||||
default: 300
|
||||
|
||||
Reference in New Issue
Block a user