[new feature] Tab: add name prop (#3762)

This commit is contained in:
neverland
2019-07-05 14:14:20 +08:00
committed by GitHub
parent 2389ac06ba
commit b802047e24
12 changed files with 243 additions and 84 deletions
+1 -1
View File
@@ -31,7 +31,7 @@ export default {
}
```
### Item Name
### Match by name
```html
<van-tabbar v-model="active">
+3 -3
View File
@@ -9,7 +9,7 @@
</van-tabbar>
</demo-block>
<demo-block :title="$t('itemName')">
<demo-block :title="$t('matchByName')">
<van-tabbar v-model="activeName">
<van-tabbar-item
name="home"
@@ -97,13 +97,13 @@ export default {
badge: '显示徽标',
customIcon: '自定义图标',
customColor: '自定义颜色',
itemName: '通过名称匹配'
matchByName: '通过名称匹配'
},
'en-US': {
badge: 'Show Badge',
customIcon: 'Custom Icon',
customColor: 'Custom Color',
itemName: 'Item Name'
matchByName: 'Match by name'
}
},