From 2a3ee90e918a27f12b008eb87ce5bb1c11440bd2 Mon Sep 17 00:00:00 2001 From: airyland Date: Mon, 27 Feb 2017 12:26:38 +0800 Subject: [PATCH] tabbar: Fix slots undefined. Close #1000 --- src/components/tabbar/metas.yml | 5 +++++ src/components/tabbar/tabbar-item.vue | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/tabbar/metas.yml b/src/components/tabbar/metas.yml index 02bf9eda9..58557ae8a 100755 --- a/src/components/tabbar/metas.yml +++ b/src/components/tabbar/metas.yml @@ -48,6 +48,11 @@ tabbar-item: en: triggers when tabbar item is click zh-CN: 点击菜单项时触发 changes: + v2.1.1-rc.4: + en: + - '[fix] fix this.$slots undefined #1000 @asingingfish' + zh-CN: + - '[fix] 修复 this.$slots 不存在 #1000 @asingingfish' v2.1.1-rc.1: en: - '[fix] fix variable @tabbar-text-active-color #982 @marsal1212' diff --git a/src/components/tabbar/tabbar-item.vue b/src/components/tabbar/tabbar-item.vue index 476bd25a7..d5204f1ed 100755 --- a/src/components/tabbar/tabbar-item.vue +++ b/src/components/tabbar/tabbar-item.vue @@ -18,7 +18,7 @@ export default { components: { Badge }, - created () { + beforeMount () { if (!this.$slots.icon) { this.simple = true }