style: 清理代码多余空白符 (#2606)

* style: 清理代码多余空白符

* update

---------

Co-authored-by: corededitor <107152508+corededitor@users.noreply.github.com>
This commit is contained in:
贤心
2025-03-31 00:08:14 +08:00
committed by GitHub
parent 9b0fa5d882
commit 5d42aaa981
36 changed files with 1051 additions and 1081 deletions

View File

@@ -1,5 +1,3 @@
<!DOCTYPE html>
<html>
<head>

View File

@@ -1,5 +1,3 @@
<!DOCTYPE html>
<html>
<head>

View File

@@ -3,17 +3,17 @@
* MIT Licensed
*/
layui.define(function(){
layui.define(function() {
var mods = []
var builtin = layui.cache.builtin;
layui.each(builtin, function(modName){
layui.each(builtin, function(modName) {
(modName === 'all' || modName === 'layui.all') || mods.push(modName);
});
layui.cache.startTime = new Date().getTime();
return mods;
}(), function(exports){
}(), function(exports) {
"use strict";
var MOD_NAME = 'all';
@@ -21,7 +21,7 @@ layui.define(function(){
// 外部接口
var all = {
config: {},
time: function(){
time: function() {
var time = new Date().getTime() - layui.cache.startTime;
delete layui.cache.startTime;
return time;

View File

@@ -3,7 +3,7 @@
* MIT Licensed
*/
layui.define(['jquery', 'lay'], function(exports){
layui.define(['jquery', 'lay'], function(exports) {
"use strict";
var $ = layui.$;
@@ -17,14 +17,14 @@ layui.define(['jquery', 'lay'], function(exports){
config: {}, // 全局配置项
// 设置全局项
set: function(options){
set: function(options) {
var that = this;
that.config = $.extend({}, that.config, options);
return that;
},
// 事件
on: function(events, callback){
on: function(events, callback) {
return layui.onevent.call(this, MOD_NAME, events, callback);
}
};
@@ -46,7 +46,7 @@ layui.define(['jquery', 'lay'], function(exports){
var ELEM_IND = 'layui-carousel-ind';
// 构造器
var Class = function(options){
var Class = function(options) {
var that = this;
that.config = $.extend({}, that.config, carousel.config, options);
that.render();

View File

@@ -3,7 +3,7 @@
* 颜色选择组件
*/
layui.define(['jquery', 'lay'], function(exports){
layui.define(['jquery', 'lay'], function(exports) {
"use strict";
var $ = layui.$;
@@ -12,26 +12,26 @@ layui.define(['jquery', 'lay'], function(exports){
var device = layui.device();
var clickOrMousedown = (device.mobile ? 'click' : 'mousedown');
//外部接口
// 外部接口
var colorpicker = {
config: {}
,index: layui.colorpicker ? (layui.colorpicker.index + 10000) : 0
config: {},
index: layui.colorpicker ? (layui.colorpicker.index + 10000) : 0,
//设置全局项
,set: function(options){
// 设置全局项
set: function(options) {
var that = this;
that.config = $.extend({}, that.config, options);
return that;
}
},
//事件
,on: function(events, callback){
// 事件
on: function(events, callback) {
return layui.onevent.call(this, 'colorpicker', events, callback);
}
};
// 操作当前实例
var thisModule = function(){
var thisModule = function() {
var that = this;
var options = that.config;
var id = options.id;

View File

@@ -3,7 +3,7 @@
* 下拉菜单组件
*/
layui.define(['jquery', 'laytpl', 'lay', 'util'], function(exports){
layui.define(['jquery', 'laytpl', 'lay', 'util'], function(exports) {
"use strict";
var $ = layui.$;

View File

@@ -3,7 +3,7 @@
* 常用元素操作组件
*/
layui.define('jquery', function(exports){
layui.define('jquery', function(exports) {
'use strict';
var $ = layui.$;

View File

@@ -3,15 +3,16 @@
*/
layui.define('jquery', function(exports){
layui.define('jquery', function(exports) {
"use strict";
var $ = layui.$, Flow = function(options){}
,ELEM_MORE = 'layui-flow-more'
,ELEM_LOAD = '<i class="layui-anim layui-anim-rotate layui-anim-loop layui-icon ">&#xe63e;</i>';
var $ = layui.$;
var Flow = function(options) {};
var ELEM_MORE = 'layui-flow-more';
var ELEM_LOAD = '<i class="layui-anim layui-anim-rotate layui-anim-loop layui-icon ">&#xe63e;</i>';
//主方法
Flow.prototype.load = function(options){
// 主方法
Flow.prototype.load = function(options) {
var that = this, page = 0, lock, isOver, lazyimg, timer;
options = options || {};

View File

@@ -1,7 +1,7 @@
/** lay 基础模块 | MIT Licensed */
;!function(window){ // gulp build: lay-header
(function(window) {
"use strict";
var MOD_NAME = 'lay'; // 模块名
@@ -967,4 +967,4 @@
});
}
}(window, window.document); // gulp build: lay-footer
})(window);

View File

@@ -1,6 +1,6 @@
/** laydate 日期与时间控件 | MIT Licensed */
// @ts-expect-error
;!function(window, document){ // gulp build: laydate-header
(function(window, document) {
"use strict";
var isLayui = window.layui && layui.define;
@@ -2756,4 +2756,4 @@
}()
);
}(window, window.document);
})(window, window.document);

View File

@@ -3,7 +3,7 @@
* 通用 Web 弹出层组件
*/
//@ts-ignore
;!function(window, undefined){
(function(window, undefined) {
"use strict";
var isLayui = window.layui && layui.define;
@@ -1915,4 +1915,4 @@ window.layui && layui.define ? (
}()
);
}(window);
})(window);

View File

@@ -2,7 +2,7 @@
* laypage 分页组件
*/
layui.define(function(exports){
layui.define(function(exports) {
"use strict";
var doc = document;

View File

@@ -2,7 +2,7 @@
* 用于打包聚合版,该文件不会存在于构建后的目录
*/
layui.define(function(exports){
layui.define(function(exports) {
var cache = layui.cache;
layui.config({
dir: cache.dir.replace(/lay\/dest\/$/, '')

View File

@@ -1,27 +0,0 @@
/**
* layui 移动模块入口
* 构建后则为移动模块集合
*/
if(!layui['layui.mobile']){
layui.config({
base: layui.cache.dir + 'lay/modules/mobile/'
}).extend({
'layer-mobile': 'layer-mobile'
,'zepto': 'zepto'
,'upload-mobile': 'upload-mobile'
,'layim-mobile': 'layim-mobile'
});
}
layui.define([
'layer-mobile'
,'zepto'
,'layim-mobile'
], function(exports){
exports('mobile', {
layer: layui['layer-mobile'] //弹层
,layim: layui['layim-mobile'] //WebIM
});
});

View File

@@ -2,7 +2,7 @@
* rate 评分评星组件
*/
layui.define(['jquery', 'lay'],function(exports){
layui.define(['jquery', 'lay'],function(exports) {
"use strict";
var $ = layui.jquery;
@@ -13,15 +13,15 @@ layui.define(['jquery', 'lay'],function(exports){
config: {},
index: layui.rate ? (layui.rate.index + 10000) : 0,
//设置全局项
set: function(options){
// 设置全局项
set: function(options) {
var that = this;
that.config = $.extend({}, that.config, options);
return that;
},
//事件
on: function(events, callback){
// 事件
on: function(events, callback) {
return layui.onevent.call(this, MOD_NAME, events, callback);
}
}

View File

@@ -2,7 +2,7 @@
* slider 滑块组件
*/
layui.define(['jquery', 'lay'], function(exports){
layui.define(['jquery', 'lay'], function(exports) {
'use strict';
var $ = layui.$;
@@ -14,14 +14,14 @@ layui.define(['jquery', 'lay'], function(exports){
index: layui.slider ? (layui.slider.index + 10000) : 0,
// 设置全局项
set: function(options){
set: function(options) {
var that = this;
that.config = $.extend({}, that.config, options);
return that;
},
// 事件
on: function(events, callback){
on: function(events, callback) {
return layui.onevent.call(this, MOD_NAME, events, callback);
}
};

View File

@@ -3,7 +3,7 @@
* 表格组件
*/
layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports){
layui.define(['lay', 'laytpl', 'laypage', 'form', 'util'], function(exports) {
"use strict";
var $ = layui.$;

View File

@@ -2,7 +2,7 @@
* transfer 穿梭框组件
*/
layui.define(['laytpl', 'form'], function(exports){
layui.define(['laytpl', 'form'], function(exports) {
"use strict";
var $ = layui.$;
@@ -18,14 +18,14 @@ layui.define(['laytpl', 'form'], function(exports){
index: layui[MOD_NAME] ? (layui[MOD_NAME].index + 10000) : 0,
// 设置全局项
set: function(options){
set: function(options) {
var that = this;
that.config = $.extend({}, that.config, options);
return that;
},
// 事件
on: function(events, callback){
on: function(events, callback) {
return layui.onevent.call(this, MOD_NAME, events, callback);
}
};

View File

@@ -2,7 +2,7 @@
* tree 树组件
*/
layui.define(['form','util'], function(exports){
layui.define(['form','util'], function(exports) {
"use strict";
var $ = layui.$;

View File

@@ -3,7 +3,7 @@
* 上传组件
*/
layui.define(['lay', 'layer'], function(exports){
layui.define(['lay', 'layer'], function(exports) {
"use strict";
var $ = layui.$;

View File

@@ -2,7 +2,7 @@
* util 工具组件
*/
layui.define('jquery', function(exports){
layui.define('jquery', function(exports) {
"use strict";
var $ = layui.$;