From b121cc19a4fbfc3c21aaf108bad274c03af89409 Mon Sep 17 00:00:00 2001 From: sight <1453017105@qq.com> Date: Sat, 27 Aug 2022 13:54:16 +0800 Subject: [PATCH] =?UTF-8?q?=F0=9F=90=9B(component):=20[tab]position=20?= =?UTF-8?q?=E4=B8=BA=20left,right=20=E6=97=B6=20content=20=E5=AE=BD?= =?UTF-8?q?=E5=BA=A6=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- package/component/src/component/tab/index.less | 12 ++++++++++-- 1 file changed, 10 insertions(+), 2 deletions(-) diff --git a/package/component/src/component/tab/index.less b/package/component/src/component/tab/index.less index b96561f0..dc5b93f4 100644 --- a/package/component/src/component/tab/index.less +++ b/package/component/src/component/tab/index.less @@ -1,4 +1,5 @@ .layui-tab { + display: flex; margin: 10px 0; text-align: left !important; } @@ -7,14 +8,20 @@ overflow: hidden; } +.layui-tab.is-left { + flex-direction: row; +} + .layui-tab.is-right { - display: flex; flex-direction: row-reverse; justify-content: space-between } +.layui-tab.is-top { + flex-direction: column; +} + .layui-tab.is-bottom { - display: flex; flex-direction: column-reverse } @@ -316,6 +323,7 @@ .layui-tab-content { padding: 15px 0; + flex: 1; } .layui-tab.is-right>.layui-tab-content,