From cea56b7a1506583055f6b63cc2367924772c3007 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BC=A0=E6=95=8F?= Date: Tue, 17 Oct 2017 21:41:03 -0500 Subject: [PATCH] [bug fix]: fix tab component when has a lot of text, show ellipsis (#217) --- packages/vant-css/src/tab.css | 2 ++ 1 file changed, 2 insertions(+) diff --git a/packages/vant-css/src/tab.css b/packages/vant-css/src/tab.css index 5d0dc60eb..235cdb5c5 100644 --- a/packages/vant-css/src/tab.css +++ b/packages/vant-css/src/tab.css @@ -1,4 +1,5 @@ @import './common/var.css'; +@import './mixins/ellipsis.css'; .van-tabs { position: relative; @@ -83,6 +84,7 @@ cursor: pointer; text-align: center; flex: 1; + @mixin multi-ellipsis 1; &--active { color: $red;