chore: remote isWeapp mixin (#9236)

* chore: remote isWeapp mixin

* fix: demo locale
This commit is contained in:
neverland
2021-08-11 11:06:53 +08:00
committed by GitHub
parent 4c41908ac1
commit 735f7dd24a
24 changed files with 31 additions and 45 deletions
+3 -3
View File
@@ -119,7 +119,7 @@ const beforeChange = (name: number) => {
</van-tabs>
</demo-block>
<demo-block v-if="!isWeapp" :title="t('title7')">
<demo-block :title="t('title7')">
<van-tabs :active="active">
<van-tab v-for="index in 2" :key="index">
<template #title> <van-icon name="more-o" />{{ t('tab') }} </template>
@@ -144,7 +144,7 @@ const beforeChange = (name: number) => {
</van-tabs>
</demo-block>
<demo-block v-if="!isWeapp" :title="t('title10')">
<demo-block :title="t('title10')">
<van-tabs scrollspy sticky>
<van-tab :title="t('tab') + index" v-for="index in 8" :key="index">
{{ t('content') }} {{ index }}
@@ -152,7 +152,7 @@ const beforeChange = (name: number) => {
</van-tabs>
</demo-block>
<demo-block v-if="!isWeapp" :title="t('beforeChange')">
<demo-block :title="t('beforeChange')">
<van-tabs :before-change="beforeChange">
<van-tab :title="t('tab') + index" v-for="index in 4" :key="index">
{{ t('content') }} {{ index }}