From ca2ff331196a468e2c9fc08e6bb0b6ce9ad95319 Mon Sep 17 00:00:00 2001 From: sight <1453017105@qq.com> Date: Sat, 9 Apr 2022 14:49:59 +0800 Subject: [PATCH] =?UTF-8?q?fix(tab):=20=E4=BF=AE=E5=A4=8D=E7=BA=B5?= =?UTF-8?q?=E5=90=91=E6=8E=92=E5=88=97=E6=A0=B7=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../component/src/component/tab/index.less | 23 ++++++++++++++++++- 1 file changed, 22 insertions(+), 1 deletion(-) diff --git a/package/component/src/component/tab/index.less b/package/component/src/component/tab/index.less index ff0d111d..3e5b0b25 100644 --- a/package/component/src/component/tab/index.less +++ b/package/component/src/component/tab/index.less @@ -82,6 +82,25 @@ border: none; border-radius: 0; display: list-item; + margin-right: -1px; + margin-left: -1px; +} + + +.layui-tab-title.is-right { + border-left: 1px solid @global-neutral-color-3; +} + +.layui-tab-title.is-left { + border-right: 1px solid @global-neutral-color-3; +} + +.layui-tab-title.is-right .layui-this { + border-left-color: #FFF; +} + +.layui-tab-title.is-left .layui-this { + border-right-color: #FFF; } .layui-tab-title .layui-this { @@ -129,7 +148,9 @@ border-bottom: 2px solid @global-checked-color; } -.layui-tab-brief>.layui-tab-head.is-right>.layui-tab-title, +.layui-tab-brief>.layui-tab-head.is-right>.layui-tab-title{ + border-left: 1px solid @global-neutral-color-3; +} .layui-tab-brief>.layui-tab-head.is-left>.layui-tab-title { border-right: 1px solid @global-neutral-color-3; }