From c4eb5dcffd6ba38e939559ab35e10916900fa39c Mon Sep 17 00:00:00 2001
From: H <21418592@qq.com>
Date: Mon, 27 Mar 2017 13:28:37 +0800
Subject: [PATCH] =?UTF-8?q?tabs=E7=BB=84=E4=BB=B6=E5=AF=BC=E8=88=AA?=
=?UTF-8?q?=E5=8C=BA=E6=B7=BB=E5=8A=A0=E5=8F=B3=E4=BE=A7slot=E5=8A=9F?=
=?UTF-8?q?=E8=83=BD=E5=8F=8A=E4=BF=AE=E6=94=B9=E4=BE=8B=E5=AD=90=E6=96=87?=
=?UTF-8?q?=E4=BB=B6?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
examples/routers/tabs.vue | 32 ++++++++++++++++++++++++++------
src/components/tabs/tabs.vue | 7 ++++++-
src/styles/components/tabs.less | 4 ++++
3 files changed, 36 insertions(+), 7 deletions(-)
diff --git a/examples/routers/tabs.vue b/examples/routers/tabs.vue
index 24792d4b..e18eb4a0 100644
--- a/examples/routers/tabs.vue
+++ b/examples/routers/tabs.vue
@@ -1,14 +1,31 @@
-
- 标签一的内容
- 标签二的内容
- 标签三的内容
-
+
+
+
+ 标签一的内容
+ 标签二的内容
+ 标签三的内容
+
+
+
+
+ {{tab.content}}
+
+
+
+
-
diff --git a/src/styles/components/tabs.less b/src/styles/components/tabs.less
index 3a3a79d1..6aad844e 100644
--- a/src/styles/components/tabs.less
+++ b/src/styles/components/tabs.less
@@ -54,6 +54,10 @@
white-space: nowrap;
}
+ &-nav-right{
+ float: right;
+ }
+
&-nav {
padding-left: 0;
margin: 0;