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] tabs组件导航区添加右侧slot功能及修改例子文件
---
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 24792d4..e18eb4a 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 3a3a79d..6aad844 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;
--
libgit2 0.21.4