From 12a608cd4231f29d0ae088a8d13d0a8e92ddb92a Mon Sep 17 00:00:00 2001 From: xumi Date: Tue, 15 Feb 2022 23:54:52 +0800 Subject: [PATCH] =?UTF-8?q?[=E4=BF=AE=E5=A4=8D]=E6=A8=AA=E5=90=91=E5=AF=BC?= =?UTF-8?q?=E8=88=AA=E8=8F=9C=E5=8D=95=E5=AD=90=E8=8F=9C=E5=8D=95=E5=91=88?= =?UTF-8?q?=E7=8E=B0=E4=BD=8D=E7=BD=AE=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- example/docs/zh-CN/components/menu.md | 16 ++++++++++------ src/component/menu/index.less | 8 +++++++- src/component/subMenu/index.vue | 26 +++++++++++++++++++++++++- 3 files changed, 42 insertions(+), 8 deletions(-) diff --git a/example/docs/zh-CN/components/menu.md b/example/docs/zh-CN/components/menu.md index 1c0b36f1..52b09a8e 100644 --- a/example/docs/zh-CN/components/menu.md +++ b/example/docs/zh-CN/components/menu.md @@ -18,12 +18,16 @@ - - - - - - + + + + + + + + + + diff --git a/src/component/menu/index.less b/src/component/menu/index.less index 4e9f6ad7..24ec14cd 100644 --- a/src/component/menu/index.less +++ b/src/component/menu/index.less @@ -2,7 +2,13 @@ .layui-nav .layui-show.layui-anim-upbit .layui-show.layui-anim-upbit { top: 0px; - left: 94px; + left: calc(100% + 5px); +} + +.layui-nav .layui-show.layui-anim-upbit .left-nav.layui-show.layui-anim-upbit +, .layui-nav .layui-show.layui-anim-upbit .left-nav .layui-show.layui-anim-upbit { + top: 0px; + left: calc(-100% - 20px); } .layui-nav .layui-show.layui-anim-upbit .layui-nav-item { diff --git a/src/component/subMenu/index.vue b/src/component/subMenu/index.vue index e273de3c..6b6e2100 100644 --- a/src/component/subMenu/index.vue +++ b/src/component/subMenu/index.vue @@ -5,7 +5,7 @@ export default {