From 8e4f708f254db4600751853ea984d1685817feb5 Mon Sep 17 00:00:00 2001 From: 梁灏 Date: Mon, 27 Mar 2017 15:24:48 +0800 Subject: [PATCH] update Tabs --- examples/routers/tabs.vue | 4 ++-- src/components/tabs/tabs.vue | 8 ++++---- 2 files changed, 6 insertions(+), 6 deletions(-) diff --git a/examples/routers/tabs.vue b/examples/routers/tabs.vue index e18eb4a..43cee49 100644 --- a/examples/routers/tabs.vue +++ b/examples/routers/tabs.vue @@ -9,8 +9,8 @@ - {{tab.content}} - + {{tab.content}} + diff --git a/src/components/tabs/tabs.vue b/src/components/tabs/tabs.vue index e1c4146..b883f34 100644 --- a/src/components/tabs/tabs.vue +++ b/src/components/tabs/tabs.vue @@ -12,7 +12,7 @@ -
+
@@ -61,7 +61,7 @@ barWidth: 0, barOffset: 0, activeKey: this.value, - showSlot:false + showSlot: false }; }, computed: { @@ -228,8 +228,8 @@ this.updateStatus(); } }, - mounted(){ - this.showSlot = this.$slots.default !== undefined; + mounted () { + this.showSlot = this.$slots.extra !== undefined; } }; -- libgit2 0.21.4