diff --git a/src/tabbar/README.md b/src/tabbar/README.md
index 47eb7f284..51cc9faf0 100644
--- a/src/tabbar/README.md
+++ b/src/tabbar/README.md
@@ -75,7 +75,7 @@ Use `icon` slot to custom icon
Tab
@@ -89,8 +89,8 @@ export default {
return {
active: 0,
icon: {
- normal: '//img.yzcdn.cn/icon-normal.png',
- active: '//img.yzcdn.cn/icon-active.png'
+ active: 'https://img.yzcdn.cn/vant/user-active.png',
+ inactive: 'https://img.yzcdn.cn/vant/user-inactive.png'
}
}
}
diff --git a/src/tabbar/README.zh-CN.md b/src/tabbar/README.zh-CN.md
index e47e43a2d..e2552ef9d 100644
--- a/src/tabbar/README.zh-CN.md
+++ b/src/tabbar/README.zh-CN.md
@@ -81,7 +81,7 @@ export default {
标签
@@ -95,8 +95,8 @@ export default {
return {
active: 0,
icon: {
- normal: '//img.yzcdn.cn/icon-normal.png',
- active: '//img.yzcdn.cn/icon-active.png'
+ active: 'https://img.yzcdn.cn/vant/user-active.png',
+ inactive: 'https://img.yzcdn.cn/vant/user-inactive.png'
}
}
}
diff --git a/src/tabbar/demo/index.vue b/src/tabbar/demo/index.vue
index 39d522a57..c30966a86 100644
--- a/src/tabbar/demo/index.vue
+++ b/src/tabbar/demo/index.vue
@@ -11,54 +11,19 @@
-
- {{ $t('tab') }}
-
-
- {{ $t('tab') }}
-
-
- {{ $t('tab') }}
-
-
- {{ $t('tab') }}
-
+ {{ $t('tab') }}
+ {{ $t('tab') }}
+ {{ $t('tab') }}
+ {{ $t('tab') }}
{{ $t('tab') }}
-
- {{ $t('tab') }}
-
-
- {{ $t('tab') }}
-
-
- {{ $t('tab') }}
-
+ {{ $t('tab') }}
+ {{ $t('tab') }}
+ {{ $t('tab') }}
@@ -67,7 +32,7 @@
{{ $t('custom') }}
-
+
{{ $t('tab') }}
@@ -76,11 +41,7 @@
-
+
{{ $t('tab') }}
{{ $t('tab') }}
{{ $t('tab') }}
@@ -115,8 +76,8 @@ export default {
active4: 0,
activeName: 'home',
icon: {
- normal: 'https://img.yzcdn.cn/public_files/2017/10/13/c547715be149dd3faa817e4a948b40c4.png',
- active: 'https://img.yzcdn.cn/public_files/2017/10/13/793c77793db8641c4c325b7f25bf130d.png'
+ active: 'https://img.yzcdn.cn/vant/user-active.png',
+ inactive: 'https://img.yzcdn.cn/vant/user-inactive.png'
}
};
}
diff --git a/src/tabbar/test/__snapshots__/demo.spec.js.snap b/src/tabbar/test/__snapshots__/demo.spec.js.snap
index fa27d8154..08cf7c656 100644
--- a/src/tabbar/test/__snapshots__/demo.spec.js.snap
+++ b/src/tabbar/test/__snapshots__/demo.spec.js.snap
@@ -41,36 +41,28 @@ exports[`renders demo correctly 1`] = `
-
- 标签
-
+ 标签
@@ -88,34 +80,28 @@ exports[`renders demo correctly 1`] = `
-
- 标签
-
+ 标签
-

+
3
自定义