fix: 修复layui样式,增加show.xx函数
This commit is contained in:
@@ -2156,8 +2156,8 @@ a {
|
|||||||
}
|
}
|
||||||
|
|
||||||
.layui-btn-xs {
|
.layui-btn-xs {
|
||||||
height: 28px;
|
height: 22px;
|
||||||
line-height: 28px;
|
line-height: 22px;
|
||||||
padding: 0 5px;
|
padding: 0 5px;
|
||||||
font-size: 12px;
|
font-size: 12px;
|
||||||
}
|
}
|
||||||
@@ -2279,7 +2279,6 @@ a {
|
|||||||
|
|
||||||
/* 多文件上传 */
|
/* 多文件上传 */
|
||||||
.layui-imagesbox {
|
.layui-imagesbox {
|
||||||
max-width: 810px;
|
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -2886,6 +2885,11 @@ xm-select > .xm-body .xm-tree-icon:hover {
|
|||||||
border-color: #FE232D!important;
|
border-color: #FE232D!important;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#firered .layui-form-checkbox[lay-skin="primary"] > .layui-icon-indeterminate {
|
||||||
|
border-color: #FE232D;
|
||||||
|
color: #fff;
|
||||||
|
background-color: #FE232D;
|
||||||
|
}
|
||||||
|
|
||||||
/* 皮肤设置 */
|
/* 皮肤设置 */
|
||||||
#orange .layui-btn-normal {
|
#orange .layui-btn-normal {
|
||||||
@@ -3117,6 +3121,12 @@ xm-select > .xm-body .xm-tree-icon:hover {
|
|||||||
color: #FAAD14;
|
color: #FAAD14;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#orange .layui-form-checkbox[lay-skin="primary"] > .layui-icon-indeterminate {
|
||||||
|
border-color: #faad14;
|
||||||
|
color: #fff;
|
||||||
|
background-color: #faad14;
|
||||||
|
}
|
||||||
|
|
||||||
/* 皮肤设置 */
|
/* 皮肤设置 */
|
||||||
#green .layui-btn-normal {
|
#green .layui-btn-normal {
|
||||||
background-color: #52C41A;
|
background-color: #52C41A;
|
||||||
@@ -3347,6 +3357,12 @@ xm-select > .xm-body .xm-tree-icon:hover {
|
|||||||
color: #52C41A;
|
color: #52C41A;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#green .layui-form-checkbox[lay-skin="primary"] > .layui-icon-indeterminate {
|
||||||
|
border-color: #52c41a;
|
||||||
|
color: #fff;
|
||||||
|
background-color: #52c41a;
|
||||||
|
}
|
||||||
|
|
||||||
/* 皮肤设置 */
|
/* 皮肤设置 */
|
||||||
#cyan .layui-btn-normal {
|
#cyan .layui-btn-normal {
|
||||||
background-color: #2F4056;
|
background-color: #2F4056;
|
||||||
@@ -3577,6 +3593,12 @@ xm-select > .xm-body .xm-tree-icon:hover {
|
|||||||
color: #2F4056;
|
color: #2F4056;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#cyan .layui-form-checkbox[lay-skin="primary"] > .layui-icon-indeterminate {
|
||||||
|
border-color: #2F4056;
|
||||||
|
color: #fff;
|
||||||
|
background-color: #2F4056;
|
||||||
|
}
|
||||||
|
|
||||||
/* 皮肤设置 */
|
/* 皮肤设置 */
|
||||||
#geek .layui-btn-normal {
|
#geek .layui-btn-normal {
|
||||||
background-color: #32A2D4;
|
background-color: #32A2D4;
|
||||||
@@ -3807,6 +3829,12 @@ xm-select > .xm-body .xm-tree-icon:hover {
|
|||||||
color: #32A2D4;
|
color: #32A2D4;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
#geek .layui-form-checkbox[lay-skin="primary"] > .layui-icon-indeterminate {
|
||||||
|
border-color: #32A2D4;
|
||||||
|
color: #fff;
|
||||||
|
background-color: #32A2D4;
|
||||||
|
}
|
||||||
|
|
||||||
.layui-nav-tree .layui-nav-child dd.layui-this,
|
.layui-nav-tree .layui-nav-child dd.layui-this,
|
||||||
.layui-nav-tree .layui-nav-child dd.layui-this a,
|
.layui-nav-tree .layui-nav-child dd.layui-this a,
|
||||||
.layui-nav-tree .layui-this,
|
.layui-nav-tree .layui-this,
|
||||||
|
|||||||
@@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
// 以下代码是配置layui扩展模块的目录,每个页面都需要引入
|
// 以下代码是配置layui扩展模块的目录,每个页面都需要引入
|
||||||
layui.config({
|
layui.config({
|
||||||
version: 'v1.1.8',
|
version: 'v1.1.9',
|
||||||
base: getProjectUrl() + 'module/'
|
base: getProjectUrl() + 'module/'
|
||||||
}).extend({
|
}).extend({
|
||||||
tags: 'tags/tags',
|
tags: 'tags/tags',
|
||||||
@@ -19,26 +19,72 @@ layui.config({
|
|||||||
tableMerge: 'soulTable/tableMerge',
|
tableMerge: 'soulTable/tableMerge',
|
||||||
tableFilter: 'soulTable/tableFilter',
|
tableFilter: 'soulTable/tableFilter',
|
||||||
excel: 'soulTable/excel',
|
excel: 'soulTable/excel',
|
||||||
}).use(['admin','jquery'], function () {
|
}).use(['admin', 'jquery', 'show'], function () {
|
||||||
var $ = layui.jquery; // jquery的
|
let $ = layui.jquery; // jquery的
|
||||||
var admin = layui.admin; // amdin模块的
|
let admin = layui.admin; // amdin模块的
|
||||||
});
|
});
|
||||||
|
|
||||||
// 获取当前项目的根路径,通过获取layui.js全路径截取assets之前的地址
|
// 获取当前项目的根路径,通过获取layui.js全路径截取assets之前的地址
|
||||||
function getProjectUrl() {
|
function getProjectUrl() {
|
||||||
|
|
||||||
var layuiDir = layui.cache.dir;
|
let layuiDir = layui.cache.dir;
|
||||||
if (!layuiDir) {
|
if (!layuiDir) {
|
||||||
var js = document.scripts, last = js.length - 1, src;
|
let js = document.scripts, last = js.length - 1, src;
|
||||||
for (var i = last; i > 0; i--) {
|
for (let i = last; i > 0; i--) {
|
||||||
if (js[i].readyState === 'interactive') {
|
if (js[i].readyState === 'interactive') {
|
||||||
src = js[i].src;
|
src = js[i].src;
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
var jsPath = src || js[last].src;
|
let jsPath = src || js[last].src;
|
||||||
layuiDir = jsPath.substring(0, jsPath.lastIndexOf('/') + 1);
|
layuiDir = jsPath.substring(0, jsPath.lastIndexOf('/') + 1);
|
||||||
}
|
}
|
||||||
|
|
||||||
return layuiDir.substring(0, layuiDir.indexOf('layui'));
|
return layuiDir.substring(0, layuiDir.indexOf('layui'));
|
||||||
}
|
}
|
||||||
|
|
||||||
|
layui.define(['notice'], function (exports) {
|
||||||
|
"use strict";
|
||||||
|
|
||||||
|
let MODULE_SHOW_NAME = {};
|
||||||
|
let notice = layui.notice, MOD_NAME = 'show';
|
||||||
|
|
||||||
|
// 正常消息通知
|
||||||
|
MODULE_SHOW_NAME.msg = function (msg) {
|
||||||
|
notice.success({
|
||||||
|
message: msg,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 错误消息通知
|
||||||
|
MODULE_SHOW_NAME.error = function (msg) {
|
||||||
|
notice.error({
|
||||||
|
message: msg,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 警告消息通知
|
||||||
|
MODULE_SHOW_NAME.warning = function (msg) {
|
||||||
|
notice.warning({
|
||||||
|
message: msg,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 信息消息通知
|
||||||
|
MODULE_SHOW_NAME.info = function (msg) {
|
||||||
|
notice.info({
|
||||||
|
message: msg,
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
// 消息通知
|
||||||
|
MODULE_SHOW_NAME.notice = function (title, msg, options = {}) {
|
||||||
|
notice.show({
|
||||||
|
title: title,
|
||||||
|
message: msg,
|
||||||
|
...options
|
||||||
|
});
|
||||||
|
}
|
||||||
|
|
||||||
|
exports(MOD_NAME, MODULE_SHOW_NAME);
|
||||||
|
})
|
||||||
File diff suppressed because one or more lines are too long
File diff suppressed because one or more lines are too long
@@ -1 +0,0 @@
|
|||||||
<li><a href="https://www.swiftadmin.net/video/3.html" target="_blank" title="swiftadmin框架视频教程"><strong>swiftadmin框架视频教程</strong><span>2022-07-21</span></a></li><li><a href="https://www.swiftadmin.net/service/2.html" target="_blank" title="[推荐]宝塔Linux面板安装教程7.9"><strong>[推荐]宝塔Linux面板安装教程7.9</strong><span>2022-04-29</span></a></li><li><a href="https://www.swiftadmin.net/service/1.html" target="_blank" title="PHP 8.1新特性公布 增加 Enums、Fsync功能"><strong>PHP 8.1新特性公布 增加 Enums、Fsync功能</strong><span>2021-11-30</span></a></li>
|
|
||||||
Reference in New Issue
Block a user