Skip to content

Commit

Permalink
docs(tabbar): taro add punctuation
Browse files Browse the repository at this point in the history
  • Loading branch information
Drjingfubo committed Jan 30, 2023
1 parent 111612e commit 34390f9
Showing 1 changed file with 5 additions and 3 deletions.
8 changes: 5 additions & 3 deletions src/packages/__VUE/tabbar/doc.taro.md
Original file line number Diff line number Diff line change
Expand Up @@ -120,12 +120,14 @@ app.use(TabbarItem);
<nut-tabbar @tab-switch="tabSwitch">
<nut-tabbar-item tab-title="标签">
<template #icon="props">
<img :src="props.active ? icon.active : icon.unactive" alt="" />
<img v-if="props.active" :src="icon.active" />
<img v-else :src="icon.unactive" />
</template>
</nut-tabbar-item>
<nut-tabbar-item tab-title="标签">
<template #icon="props">
<img :src="props.active ? icon.active : icon.unactive" alt="" />
<img v-if="props.active" :src="icon.active" />
<img v-else :src="icon.unactive" />
</template>
</nut-tabbar-item>
<nut-tabbar-item tab-title="标签">
Expand Down Expand Up @@ -235,7 +237,7 @@ app.use(TabbarItem);
<script>
import { Home,Category,Find,Cart,My} from '@nutui/icons-vue-taro';
export default{
components: {Home,Category,Find,Cart, My }
components: {Home,Category,Find,Cart, My },
setup(){
return{
Home,Category,Find,Cart, My
Expand Down

0 comments on commit 34390f9

Please sign in to comment.