From c77257730c0a75603ca22e35ab02b9b025109d63 Mon Sep 17 00:00:00 2001 From: augushong Date: Wed, 27 Sep 2023 11:00:18 +0800 Subject: [PATCH] =?UTF-8?q?=E7=A7=BB=E9=99=A4=E6=97=A7=E7=89=88=E8=A1=A8?= =?UTF-8?q?=E6=A0=BC=E8=BD=AC=E5=8D=A1=E7=89=87=EF=BC=9B=E5=88=A0=E9=99=A4?= =?UTF-8?q?layui2.7=E7=9A=84=E9=81=97=E7=95=99=E9=97=AE=E9=A2=98=E4=BB=A3?= =?UTF-8?q?=E7=A0=81=EF=BC=9B=E8=B0=83=E6=95=B4=E4=BB=A3=E7=A0=81=E6=A0=BC?= =?UTF-8?q?=E5=BC=8F?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- public/static/admin/css/public.css | 89 +------------------ public/static/common/css/welcome.css | 18 ++-- .../static/plugs/ulthon-admin/ulthon-admin.js | 49 ---------- 3 files changed, 13 insertions(+), 143 deletions(-) diff --git a/public/static/admin/css/public.css b/public/static/admin/css/public.css index bae73b6..2a96c7e 100644 --- a/public/static/admin/css/public.css +++ b/public/static/admin/css/public.css @@ -513,94 +513,10 @@ table样式 white-space: nowrap; } -.data-item { - display: none; - line-height: 28px; -} - -@media screen and (max-width: 450px) { - .data-item { - display: block; - } - - .layui-form-item .layui-form-label { - float: unset; - text-align: left; - - } - - .layuimini-form>.layui-form-item .required:after { - right: unset; - left: 0; - margin-left: 0; - } - - .layui-input-block { - margin-left: 0; - } - - .layui-anim-upbit { - min-width: unset !important; - width: calc(100% - 20px); - overflow: auto - } - - .layui-table-page { - overflow: auto; - } - - .layui-form-pane .layui-form-item .layui-form-label { - float: left; - } - - .layui-table-page { - height: 45px - } - .layui-table-main .layui-table tr { - background-color: #eee; - border-radius: 15px; - padding: 15px; - margin-bottom: 15px; - display: block; - } - .layui-table-main .layui-table { - display: block; - } - - .layui-table-main tbody { - display: block; - } - - .layui-table-main td { - display: flex; - align-items: flex-start; - justify-content: space-between; - margin-right: 0; - border-bottom: 1px solid #fff; - min-height: 30px; - } - - - .layui-table-main .layui-table-cell { - width: auto; - padding: 0; - text-align: right; - } - - .layuimini-container .layui-table-box { - border: none; - } - - .layui-table-header { - display: none; - } - -} - .search-hide-item { display: none; } @@ -641,4 +557,7 @@ table样式 [data-toggle="copy-text"].copy-rendered { cursor: pointer; -} \ No newline at end of file +} + + +@media (max-width: 768px) {} \ No newline at end of file diff --git a/public/static/common/css/welcome.css b/public/static/common/css/welcome.css index 5dbd1de..66ee221 100644 --- a/public/static/common/css/welcome.css +++ b/public/static/common/css/welcome.css @@ -437,15 +437,7 @@ footer a { width: 58%; } -@media (max-width: 768px) { - .footer-nav-box { - width: 95%; - } - .footer-proto-box { - width: 95%; - } -} .site-footer ul, .site-footer li { @@ -773,4 +765,12 @@ footer a { .introduction .bottom .item { width: 80%; } -} \ No newline at end of file + + .footer-nav-box { + width: 95%; + } + + .footer-proto-box { + width: 95%; + } +} diff --git a/public/static/plugs/ulthon-admin/ulthon-admin.js b/public/static/plugs/ulthon-admin/ulthon-admin.js index 241455e..501072e 100644 --- a/public/static/plugs/ulthon-admin/ulthon-admin.js +++ b/public/static/plugs/ulthon-admin/ulthon-admin.js @@ -278,31 +278,6 @@ options.defaultToolbar = defaultToolbar; } - var table2card = function () { - - if (admin.checkMobile()) { - var domTable = $('[lay-id="' + options.id + '"]'); - - var colsHeader = []; - domTable.find('.layui-table-header').first().find('.layui-table-cell').each(function (index, cell) { - - if ($(cell).hasClass('laytable-cell-checkbox')) { - colsHeader.push('选择'); - } else { - colsHeader.push($(cell).find('span').first().text()); - } - }); - - domTable.find('.layui-table-main').find('tr').each(function (index, domTr) { - - $(domTr).find('td').each(function (indexTd, domTd) { - - $('
' + colsHeader[indexTd] + '
').insertBefore($(domTd).find('.layui-table-cell')); - }); - }); - } - - }; @@ -312,7 +287,6 @@ } options.done = function () { optionDone(); - table2card(); // 监听表格内的复制组件 admin.api.copyText('[lay-id=' + options.id + ']'); @@ -939,29 +913,6 @@ break; } } - - if (admin.checkMobile()) { - if (val.fixed !== undefined) { - val.fixed = false; - } - } - - // 重新整理配置参数,兼容templet在edit时缺少LAY_COL的问题,如果在layui2.8解决,那么应当删除这些代码 - - var endVal = { ...col[index] }; - endVal.endTemplet = endVal.templet; - endVal.templet = function (data) { - if (!data.LAY_COL) { - data.LAY_COL = this; - } - - return this.endTemplet(data); - }; - - cols[i][index] = endVal; - - - } } return cols;