From 31788dca22e4b573d8176d0a678385b184ec8910 Mon Sep 17 00:00:00 2001 From: Yao Date: Tue, 3 Jul 2018 11:13:17 +0800 Subject: [PATCH] =?UTF-8?q?[improvement]=20Tab:=20=E4=BC=98=E5=8C=96?= =?UTF-8?q?=E7=BB=84=E4=BB=B6=E5=AE=BD=E5=BA=A6=E6=A0=B7=E5=BC=8F=20(#336)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit * tab 改为 100% 宽度 * build dist --- dist/tab/index.wxss | 2 +- packages/tab/index.pcss | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/dist/tab/index.wxss b/dist/tab/index.wxss index dd1320a6..3c9c2c44 100644 --- a/dist/tab/index.wxss +++ b/dist/tab/index.wxss @@ -1 +1 @@ -.zan-tab{height:45px}.zan-tab__bd{width:750rpx;display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;border-bottom:1rpx solid #e5e5e5;background:#fff}.zan-tab__bd--fixed{position:fixed;top:0;z-index:2}.zan-tab__item{-webkit-box-flex:1;flex:1;display:inline-block;padding:0 5px;line-height:0;box-sizing:border-box;overflow:hidden;text-align:center}.zan-tab__title{display:inline-block;max-width:100%;height:44px;line-height:44px;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;word-break:keep-all;font-size:14px;color:#666}.zan-tab__item--selected .zan-tab__title{color:#f44;border-bottom:2px solid #f44}.zan-tab__bd--scroll{display:block;white-space:nowrap}.zan-tab__bd--scroll .zan-tab__item{min-width:80px} \ No newline at end of file +.zan-tab{height:45px}.zan-tab__bd{width:100%;display:-webkit-box;display:flex;-webkit-box-orient:horizontal;-webkit-box-direction:normal;flex-direction:row;border-bottom:1rpx solid #e5e5e5;background:#fff}.zan-tab__bd--fixed{position:fixed;top:0;z-index:2}.zan-tab__item{-webkit-box-flex:1;flex:1;display:inline-block;padding:0 5px;line-height:0;box-sizing:border-box;overflow:hidden;text-align:center}.zan-tab__title{display:inline-block;max-width:100%;height:44px;line-height:44px;overflow:hidden;text-overflow:ellipsis;box-sizing:border-box;word-break:keep-all;font-size:14px;color:#666}.zan-tab__item--selected .zan-tab__title{color:#f44;border-bottom:2px solid #f44}.zan-tab__bd--scroll{display:block;white-space:nowrap}.zan-tab__bd--scroll .zan-tab__item{min-width:80px} \ No newline at end of file diff --git a/packages/tab/index.pcss b/packages/tab/index.pcss index 15984d8b..9a88bd46 100644 --- a/packages/tab/index.pcss +++ b/packages/tab/index.pcss @@ -2,7 +2,7 @@ height: 45px; } .zan-tab__bd { - width: 750rpx; + width: 100%; display: flex; flex-direction: row; border-bottom: 1rpx solid #e5e5e5;