From 8d3454247b9f09f500bc27ae58fed139fea593a6 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=A1=E5=AE=85=E7=94=B7?= <530765310@qq.com> Date: Tue, 8 Aug 2023 05:20:58 +0000 Subject: [PATCH 1/7] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E4=B8=BB=E9=A2=98?= =?UTF-8?q?=E7=89=88=E5=9C=A8=E7=A7=BB=E5=8A=A8=E7=AB=AF=E9=80=89=E9=A1=B9?= =?UTF-8?q?=E5=81=8F=E7=A7=BB=E9=97=AE=E9=A2=98?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 御宅男 <530765310@qq.com> --- admin/css/admin.css | 8 +++++++- 1 file changed, 7 insertions(+), 1 deletion(-) diff --git a/admin/css/admin.css b/admin/css/admin.css index 60703fe..732cfee 100644 --- a/admin/css/admin.css +++ b/admin/css/admin.css @@ -465,7 +465,13 @@ body, -webkit-transition: all .3s; opacity: 0; } - +@media screen and (max-width: 450px) { + .pearone-color .layui-form-item .layui-input-inline { + float: left !important; + width: 190px !important; + margin: 0 10px 0 0!important; + } +} .select-color { margin-bottom: 30px; } -- Gitee From 72d1743395fed8c01f23d8f2c6a2d5ff6712fd39 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=A1=E5=AE=85=E7=94=B7?= <530765310@qq.com> Date: Tue, 8 Aug 2023 07:57:18 +0000 Subject: [PATCH 2/7] =?UTF-8?q?=E4=BF=AE=E6=AD=A3=E9=80=9A=E6=A0=8F?= =?UTF-8?q?=E6=A8=A1=E5=BC=8F=E5=BC=82=E5=B8=B8?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 御宅男 <530765310@qq.com> --- admin/css/admin.css | 9 +++++++++ 1 file changed, 9 insertions(+) diff --git a/admin/css/admin.css b/admin/css/admin.css index 732cfee..5e13a5a 100644 --- a/admin/css/admin.css +++ b/admin/css/admin.css @@ -172,6 +172,15 @@ body, display: none; } +@media screen and (max-width: 768px) { + .pear-admin.banner-layout .layui-header .layui-logo { + display: none; + } + .pear-admin.banner-layout .layui-header .layui-layout-left { + left: 0px; + } +} + /** 收缩布局 */ .pear-mini .layui-side .layui-logo .title { display: none; -- Gitee From f764a0b28bae6c312bbe0526d27ebc77cac6a3b0 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E5=BE=A1=E5=AE=85=E7=94=B7?= <530765310@qq.com> Date: Tue, 22 Aug 2023 01:06:44 +0000 Subject: [PATCH 3/7] =?UTF-8?q?=E4=BC=98=E5=8C=96=E9=A1=B6=E9=83=A8?= =?UTF-8?q?=E8=8F=9C=E5=8D=95=E8=BF=87=E5=A4=9A=E9=87=87=E7=94=A8=E6=9B=B4?= =?UTF-8?q?=E4=BC=98=E7=9A=84=E5=B1=95=E7=8E=B0=E6=96=B9=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Signed-off-by: 御宅男 <530765310@qq.com> --- component/pear/module/menu.js | 83 ++++++++++++++++++++++------------- 1 file changed, 53 insertions(+), 30 deletions(-) diff --git a/component/pear/module/menu.js b/component/pear/module/menu.js index 33cde7f..85cceba 100644 --- a/component/pear/module/menu.js +++ b/component/pear/module/menu.js @@ -57,31 +57,6 @@ layui.define(['table', 'jquery', 'element'], function (exports) { // 处理高度 $("#" + opt.elem).height(option.height) - setTimeout(function () { - $("#" + opt.control + " .control").on("mousewheel DOMMouseScroll", function (event) { - - var delta = (event.originalEvent.wheelDelta && (event.originalEvent.wheelDelta > 0 ? 1 : -1)) || // chrome & ie - (event.originalEvent.detail && (event.originalEvent.detail > 0 ? -1 : 1)); // firefox - - if (delta > 0) { - for (var num = 1; num < 20; num++) { - setTimeout(function () { - if ($("#" + opt.control + " .control ul").css('left').replace("px", "") < 0) { - $("#" + opt.control + " .control ul").css("left", "+=2px"); - } - }, 10) - } - } else if (delta < 0) { - if (((Number)($("#" + opt.control + " .control ul").css("left").replace("px", "")) + ($("#" + opt.control + " .control ul").width() - $("#" + opt.control + " .control").width())) > 0) { - for (var num = 1; num < 20; num++) { - setTimeout(function () { - $("#" + opt.control + " .control ul").css("left", "-=2px"); - }, 10) - } - } - } - }); - }, 1000) return new pearMenu(option); } @@ -322,7 +297,8 @@ layui.define(['table', 'jquery', 'element'], function (exports) { } function createMenuAndControl(option) { - var control = '