diff --git a/src/tabbar-item/index.js b/src/tabbar-item/index.js
index 95190c94e..80b273532 100644
--- a/src/tabbar-item/index.js
+++ b/src/tabbar-item/index.js
@@ -20,6 +20,7 @@ export default createComponent({
icon: String,
name: [Number, String],
info: [Number, String],
+ badge: [Number, String],
iconPrefix: String,
},
@@ -70,7 +71,10 @@ export default createComponent({
{this.genIcon(active)}
-
+
{this.slots('default', { active })}
diff --git a/src/tabbar/README.md b/src/tabbar/README.md
index 6da4777e8..fd49ea700 100644
--- a/src/tabbar/README.md
+++ b/src/tabbar/README.md
@@ -60,8 +60,8 @@ export default {
Tab
Tab
- Tab
- Tab
+ Tab
+ Tab
```
@@ -71,7 +71,7 @@ Use `icon` slot to custom icon
```html
-
+
Custom
标签
标签
- 标签
- 标签
+ 标签
+ 标签
```
@@ -77,7 +77,7 @@ export default {
```html
-
+
自定义
{{ $t('tab') }}
{{ $t('tab') }}
-
+
{{ $t('tab') }}
-
+
{{ $t('tab') }}
@@ -41,7 +41,7 @@
-
+
{{ $t('custom') }}
@@ -80,7 +80,7 @@
export default {
i18n: {
'zh-CN': {
- badge: '提示信息',
+ badge: '徽标提示',
customIcon: '自定义图标',
customColor: '自定义颜色',
matchByName: '通过名称匹配',