初始上传

This commit is contained in:
2026-04-04 17:27:12 +08:00
parent 4d80d28eb4
commit b7e11774ee
11191 changed files with 1588469 additions and 0 deletions

File diff suppressed because it is too large Load Diff

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,2 @@
/** layui-v2.5.5 MIT License By https://www.layui.com */
html #layuicss-skincodecss{display:none;position:absolute;width:1989px}.layui-code-h3,.layui-code-view{position:relative;font-size:12px}.layui-code-view{display:block;margin:10px 0;padding:0;border:1px solid #e2e2e2;border-left-width:6px;background-color:#F2F2F2;color:#333;font-family:Courier New}.layui-code-h3{padding:0 10px;height:32px;line-height:32px;border-bottom:1px solid #e2e2e2}.layui-code-h3 a{position:absolute;right:10px;top:0;color:#999}.layui-code-view .layui-code-ol{position:relative;overflow:auto}.layui-code-view .layui-code-ol li{position:relative;margin-left:45px;line-height:20px;padding:0 5px;border-left:1px solid #e2e2e2;list-style-type:decimal-leading-zero;*list-style-type:decimal;background-color:#fff}.layui-code-view pre{margin:0}.layui-code-notepad{border:1px solid #0C0C0C;border-left-color:#3F3F3F;background-color:#0C0C0C;color:#C2BE9E}.layui-code-notepad .layui-code-h3{border-bottom:none}.layui-code-notepad .layui-code-ol li{background-color:#3F3F3F;border-left:none}

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 11 KiB

File diff suppressed because one or more lines are too long

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 701 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.7 KiB

File diff suppressed because it is too large Load Diff

File diff suppressed because it is too large Load Diff

View File

@@ -0,0 +1,289 @@
/**
* layui_dropdown
* v2.3.5
* by Microanswer
* http://layuidropdown.microanswer.cn/
**/
html #layuicss-dropdown_css, html #layuicss-mDropdown_css {
display: none;
position: absolute;
width: 1989px
}
.layu-dropdown-root {
position: fixed;
outline: 0;
overflow: hidden
}
.layu-dropdown-pointer {
width: 0;
height: 0;
position: absolute;
display: block;
overflow: hidden;
background: url(data:image/png;base64,iVBORw0KGgoAAAANSUhEUgAAAEAAAAAgBAMAAABQs2O3AAAAAXNSR0IB2cksfwAAAAlwSFlzAAAOxAAADsQBlSsOGwAAABVQTFRFAAAAgICAgICAgICAhISE8PDw////jUnEegAAAAd0Uk5TAB/2/////74r3wgAAACOSURBVHicfcztDYAgDEVR2MCwgXEDwwbGDYwbyP4jyJfYlvbdvzc5zrH8ti8OFeKxou+384JEiPeDiAykhIgMpASICiCiAoDogE10wCQGYBEDMAgC6AQBVIIBGsEAhRDATAhgIiZAEhMgCAXghAIwQgUooQKEMICfMIBBmMBHmEAnANAIADQCAYVwCCjEC5fhzAE36RUGAAAAAElFTkSuQmCC) bottom center no-repeat;
background-size: 100% 50%;
-webkit-transform-origin: center center;
-moz-transform-origin: center center;
-ms-transform-origin: center center;
-o-transform-origin: center center;
transform-origin: center center
}
.layu-dropdown-pointer.bottom {
-webkit-transform: rotate(-180deg);
-moz-transform: rotate(-180deg);
-ms-transform: rotate(-180deg);
-o-transform: rotate(-180deg);
transform: rotate(-180deg)
}
.layu-dropdown-root .layu-dropdown-content {
background-color: #fff;
border-radius: 3px;
box-shadow: 1px 1px 5px #cbcbcb;
border: 1px solid #D9D9D9;
overflow-x: auto;
overflow-y: hidden
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-content-table .layu-dropdown-content-thead {
display: table-header-group
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-content-table .layu-dropdown-content-tbody {
display: table-row-group
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-content-table .layu-dropdown-content-tr {
display: table-row
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-content-table, .layu-dropdown-root .layu-dropdown-content .layu-dropdown-content-table .layu-dropdown-content-td, .layu-dropdown-root .layu-dropdown-content .layu-dropdown-content-table .layu-dropdown-content-th {
position: relative;
display: table-cell;
border: unset;
text-align: unset;
font-weight: 400;
min-height: unset;
font-size: 12px;
line-height: 12px;
padding-top: 0;
padding-bottom: 0
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-content-table .layu-dropdown-content-th {
font-weight: 700
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-content-table .layu-dropdown-content-tr, .layu-dropdown-root .layu-dropdown-content .layu-dropdown-content-table .layu-dropdown-content-tr:hover {
background-color: unset
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-menu-wrap {
border-right: none;
overflow-y: auto;
overflow-x: hidden
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-menu-fixed-head {
border-right: none;
overflow: hidden
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-menu-fixed-head .layu-menu-fixed-head {
margin: 6px 14px 2px;
color: #a8a8a8;
font-size: 12px
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-menu-fixed-head.layu-menu-splitor::after, .layu-dropdown-root .layu-dropdown-content .layu-dropdown-menu-wrap.layu-menu-splitor::after {
border-right: 1px solid #D9D9D9;
content: " ";
position: absolute;
top: 0;
bottom: 0;
right: 0
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-menu-wrap.layu-overflowauto {
overflow-y: auto;
overflow-x: hidden
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-menu-wrap .layu-dropdown-menu {
padding: 0;
margin: 10px 0
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-menu-wrap .layu-dropdown-menu .layu-menu-item-wrap {
list-style: none;
outline: 0
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-menu-wrap .layu-dropdown-menu .layu-menu-item-wrap.layu-nomargin {
margin-top: 0 !important
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-menu-wrap .layu-dropdown-menu .layu-menu-item-wrap .layu-menu-header {
margin-top: 6px
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-menu-wrap .layu-dropdown-menu .layu-menu-item-wrap .layu-menu-header.layu-withLine {
margin-left: 0;
margin-bottom: 0;
margin-right: 0
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-menu-wrap .layu-dropdown-menu .layu-menu-item-wrap .layu-menu-header, .layu-dropdown-root .layu-dropdown-content .layu-dropdown-menu-wrap .layu-dropdown-menu .layu-menu-item-wrap .layu-menu-header legend {
font-size: 12px !important;
line-height: 15px !important;
padding: 0 14px !important;
color: #a8a8a8
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-menu-wrap .layu-dropdown-menu .layu-menu-item-wrap .layu-menu-item {
line-height: 36px
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-menu-wrap .layu-dropdown-menu .layu-menu-item-wrap .layu-menu-item a {
display: block;
color: #333;
padding: 0 20px;
text-indent: 0;
font-size: 14px;
white-space: nowrap
}
.layu-dropdown-root .layu-dropdown-content .layu-dropdown-menu-wrap .layu-dropdown-menu .layu-menu-item-wrap .layu-menu-item a:hover {
background-color: #D9D9D9
}
.layui-dropdown {
position: relative;
display: inline-block;
}
.layui-dropdown-menu {
display: none;
z-index: 100;
min-width: 100%;
min-height: 1px;
margin: 0;
padding: 0;
border-radius: 2px;
border: 1px solid #d2d2d2;
background-color: #fff;
-webkit-box-shadow: 0 2px 4px rgba(0,0,0,0.12);
box-shadow: 0 2px 4px rgba(0,0,0,0.12);
list-style: none;
-webkit-box-sizing: border-box;
box-sizing: border-box;
}
.layui-dropdown-menu:before {
content: "\20";
position: absolute;
display: block;
background-color: transparent;
z-index: -1;
}
.layui-dropdown-menu.is-show {
display: block;
}
.layui-dropdown-menu[x-placement^="top"] {
margin-bottom: 5px;
-webkit-box-shadow: 0 -1px 4px rgba(0,0,0,0.12);
box-shadow: 0 -1px 4px rgba(0,0,0,0.12);
}
.layui-dropdown-menu[x-placement^="top"]:before {
bottom: -5px;
width: 100%;
height: 5px;
left: 0;
}
.layui-dropdown-menu[x-placement^="right"] {
margin-left: 5px;
}
.layui-dropdown-menu[x-placement^="right"]:before {
left: -5px;
width: 5px;
height: 100%;
top: 0;
}
.layui-dropdown-menu[x-placement^="bottom"] {
margin-top: 5px;
}
.layui-dropdown-menu[x-placement^="bottom"]:before {
top: -5px;
width: 100%;
height: 5px;
left: 0;
}
.layui-dropdown-menu[x-placement^="left"] {
margin-right: 5px;
}
.layui-dropdown-menu[x-placement^="left"]:before {
right: -5px;
width: 5px;
height: 100%;
top: 0;
}
[x-out-of-boundaries] {
pointer-events: none;
visibility: hidden;
opacity: 0;
}
.layui-anim-rightbit {
-webkit-animation-name: layui-rightbit;
animation-name: layui-rightbit;
}
.layui-anim-leftbit {
-webkit-animation-name: layui-leftbit;
animation-name: layui-leftbit;
}
.layui-anim-downbit {
-webkit-animation-name: layui-downbit;
animation-name: layui-downbit;
}
@-webkit-keyframes layui-rightbit {
0% {
-webkit-transform: translate3d(30px, 0, 0);
transform: translate3d(30px, 0, 0);
opacity: 0.1;
}
}
@keyframes layui-rightbit {
0% {
-webkit-transform: translate3d(30px, 0, 0);
transform: translate3d(30px, 0, 0);
opacity: 0.1;
}
}
@-webkit-keyframes layui-leftbit {
100% {
-webkit-transform: translate3d(30px, 0, 0);
transform: translate3d(30px, 0, 0);
opacity: 0.1;
}
}
@keyframes layui-leftbit {
100% {
-webkit-transform: translate3d(30px, 0, 0);
transform: translate3d(30px, 0, 0);
opacity: 0.1;
}
}
@-webkit-keyframes layui-downbit {
100% {
-webkit-transform: translate3d(0, 30px, 0);
transform: translate3d(0, 30px, 0);
opacity: 0.3;
}
}
@keyframes layui-downbit {
100% {
-webkit-transform: translate3d(0, 30px, 0);
transform: translate3d(0, 30px, 0);
opacity: 0.3;
}
}

View File

@@ -0,0 +1,269 @@
/**
* layui_dropdown
* v2.3.5
* by Microanswer
* http://layuidropdown.microanswer.cn/
**/
Array.isArray || (Array.isArray = function (t) {
return "[object Array]" === Object.prototype.toString.call(t)
}), String.prototype.trim || (String.prototype.trim = function () {
return this.replace(/(^\s*)|(\s*$)/g, "")
}), Function.prototype.bind || (Function.prototype.bind = function (t) {
if ("function" != typeof this) throw new Error("Function.prototype.bind - what is trying to be bound is not callable");
function n() {
}
function i() {
return e.apply(this instanceof n && t ? this : t, o.concat(Array.prototype.slice.call(arguments)))
}
var o = Array.prototype.slice.call(arguments, 1), e = this;
return n.prototype = this.prototype, i.prototype = new n, i
}), layui.define(["jquery", "laytpl"], function (t) {
function i(t, n) {
var i = e[t] || [];
i.push(n), e[t] = i
}
function d(t, i) {
var n = e[t] || [];
a.each(n, function (t, n) {
n(i)
})
}
var a = layui.jquery || layui.$, l = layui.laytpl, o = "a", p = "b", e = {}, c = "1", h = "2", m = "3";
function f(t) {
if (!t) throw new Error("菜单条目内必须填写内容。");
if ("hr" === t) return "hr";
if (0 !== t.indexOf("{")) throw new Error("除了分割线hr别的菜单条目都必须保证是合格的Javascript对象或json对象。");
return new Function("return " + t)()
}
function u(t) {
for (var n = 0; n < t.length; n++) void 0 !== t[n] && null !== t[n] || (t.splice(n, 1), n--)
}
function w(t) {
if (t && 0 < t.length) {
for (var n = 0, i = [], o = 0; o < t.length; o++) for (var e = t[o], s = 0; s < e.length; s++) e[s].header && e[s].fixed && (n++, i.push(e[s]), e.splice(s, 1), s--);
if (0 < n) return i
}
return null
}
var y = window.MICROANSWER_DROPDOWAN || "dropdown",
v = "<div tabindex='0' class='layui-anim layui-anim-upbit layu-dropdown-root' " + y + "-id='{{d.downid}}' style='display: none;z-index: {{d.zIndex}}'>{{# if (d.arrow){ }}<div class='layu-dropdown-pointer'></div>{{# } }}<div class='layu-dropdown-content' style='margin: {{d.gap}}px {{d.gap}}px;background-color: {{d.backgroundColor}};min-width: {{d.minWidth}}px;max-width: {{d.maxWidth}}px;min-height: {{d.minHeight}}px;max-height: {{d.maxHeight}}px;white-space: {{d.nowrap?\"nowrap\":\"normal\"}}'>",
g = "</div></div>",
x = v + "<div class='layu-dropdown-content-table' cellpadding='0' cellspacing='0'>{{# if (d.fixHeaders && d.fixHeaders.length > 0){ }}<div class='layu-dropdown-content-thead'><div class='layu-dropdown-content-tr'>{{# layui.each(d.fixHeaders, function(i, fixHeader){ }}{{# if (fixHeader) { }}<div class='layu-dropdown-content-th'><div class='layu-dropdown-menu-fixed-head {{(d.menuSplitor && i < (d.menus.length-1))?\"layu-menu-splitor\":\"\"}}'><div class='layu-menu-fixed-head' style='text-align: {{fixHeader.align||\"center\"}}'>{{fixHeader.header}}</div></div></div>{{# } else { }}<th><div class='layu-dropdown-menu-fixed-head {{(d.menuSplitor && i < (d.menus.length-1))?\"layu-menu-splitor\":\"\"}}'><div class='layu-menu-fixed-head'>&nbsp;</div></div></th>{{# } }}{{# }); }}</div></div>{{# } }}<div class='layu-dropdown-content-tbody'><div class='layu-dropdown-content-tr'>{{# layui.each(d.menus, function(i, menu){ }}<div class='layu-dropdown-content-td' valign='top'><div class='layu-dropdown-menu-wrap {{(d.menuSplitor && i < (d.menus.length-1))?\"layu-menu-splitor\":\"\"}} layu-overflowauto' style='min-height: {{d.minHeight}}px;max-height: {{d.maxHeight - ((d.fixHeaders)?24:0)}}px;'><ul class='layu-dropdown-menu' dropdown-menu-index='{{i}}' style=''>{{# layui.each(menu, function(index, item){ }}<li class='layu-menu-item-wrap {{(d.fixHeaders && d.fixHeaders.length) > 0?\"layu-nomargin\":\"\"}}'>{{# if ('hr' === item) { }}<hr>{{# } else if (item.header) { }}{{# if (item.withLine) { }}<fieldset class=\"layui-elem-field layui-field-title layu-menu-header layu-withLine\"><legend>{{item.header}}</legend></fieldset>{{# } else { }}<div class='layu-menu-header' style='text-align: {{item.align||\"left\"}}'>{{item.header}}</div>{{# } }}{{# } else { }}<div class='layu-menu-item' dropdown-menu-item-index='{{index}}'><a href='javascript:;' lay-event='{{item.event}}'>{{# if (item.layIcon){ }}<i class='layui-icon {{item.layIcon}}'></i>&nbsp;{{# } }}<span class='{{item.txtClass||\"\"}}'>{{item.txt}}</span></a></div>{{# } }}</li>{{# }); }}</ul></div></div>{{#});}}</div></div></div>" + g,
$ = {
menus: void 0,
templateMenu: "",
templateMenuStr: "",
template: "",
showBy: "click",
align: "left",
minWidth: 76,
maxWidth: 500,
minHeight: 10,
maxHeight: 400,
zIndex: 891,
gap: 8,
onHide: function (t, n) {
},
onShow: function (t, n) {
},
onItemClick: function (t, n) {
},
scrollBehavior: "follow",
backgroundColor: "#FFF",
cssLink: window.ns_url.staticExt + "/layui/extend/dropdown/dropdown.css",
immed: !1,
arrow: !0,
templateMenuSptor: "[]",
menuSplitor: !0,
appendTo: "next"
};
function s(t) {
"string" == typeof t && (t = a(t)), this.$dom = t, this.systemListeners = {}
}
function r(t, e) {
a(t || "[lay-" + y + "]").each(function () {
var t = a(this), n = new Function("return " + (t.attr("lay-" + y) || "{}"))();
t.removeAttr("lay-" + y);
var i = a.extend({}, n, e || {}), o = t.data(y) || new s(t);
t.data(y, o), o.init(i)
})
}
s.prototype.onMenuLaytplEnd = function (t) {
var n = this;
n.downHtml = t, n.initEvent(), n.option.immed && n.downHtml && n.show()
}, s.prototype.init = function (t) {
var n = this;
if (n.fcd = !1, n.mic = !1, n.opened = !1, n.option ? n.option = a.extend(n.option, t || {}) : n.option = a.extend({
downid: String(Math.random()).split(".")[1],
filter: n.$dom.attr("lay-filter")
}, $, t), 20 < n.option.gap && (n.option.gap = 20), n.$down && (n.$down.remove(), n.$down = void 0), n.option.menus) {
if (u(n.option.menus), 0 < n.option.menus.length) {
var i = n.option.menus[0];
Array.isArray(i) || (n.option.menus = [n.option.menus]);
for (var o = 0; o < n.option.menus.length; o++) u(n.option.menus[o]);
n.option.fixHeaders = w(n.option.menus), n.option.nowrap = !0, l(x).render(n.option, function (t) {
n.onMenuLaytplEnd(t)
})
}
} else if (n.option.templateMenu || n.option.templateMenuStr) {
var e, s;
if (n.option.templateMenu) s = -1 === n.option.templateMenu.indexOf("#") ? "#" + n.option.templateMenu : n.option.templateMenu, e = a(s).html(); else n.option.templateMenuStr && (e = n.option.templateMenuStr);
var r = a.extend(a.extend({}, n.option), n.option.data || {});
l(e).render(r, function (t) {
n.option.menus = function (t, n) {
if (!t) return "";
if (!n) throw new Error("请指定菜单模板限定符。");
for (var i, o, e = n.charAt(0), s = n.charAt(1), r = t.length, d = 0, a = c, l = !1, p = []; d < r;) {
var u = t.charAt(d);
a !== c || l ? a !== h || l ? a === m && (l ? (o.srcStr += u, l = !1) : "\\" === u ? l = !0 : u === s ? (o = f(o.srcStr), i.push(o), a = h) : o.srcStr += u) : e === u ? (o = {srcStr: ""}, a = m) : s === u && (a = c) : e === u && (i = [], p.push(i), a = h), d += 1
}
return p
}(t, n.option.templateMenuSptor), n.option.fixHeaders = w(n.option.menus), n.option.nowrap = !0, l(x).render(n.option, function (t) {
n.onMenuLaytplEnd(t)
})
})
} else if (n.option.template) {
var d;
d = -1 === n.option.template.indexOf("#") ? "#" + n.option.template : n.option.template, (r = a.extend(a.extend({}, n.option), n.option.data || {})).nowrap = !1, l(v + a(d).html() + g).render(r, function (t) {
n.onMenuLaytplEnd(t)
})
} else layui.hint().error("下拉框目前即没配置菜单项,也没配置下拉模板。[#" + (n.$dom.attr("id") || "") + ",filter=" + n.option.filter + "]")
}, s.prototype.initSize = function () {
if (this.$down && (this.$down.find(".layu-dropdown-pointer").css({
width: 2 * this.option.gap,
height: 2 * this.option.gap
}), !this._sized)) {
var t = 0;
this.$down.find(".dropdown-menu-wrap").each(function () {
t = Math.max(t, a(this).height())
}), this.$down.find(".dropdown-menu-wrap").css({height: t}), this._sized = !0
}
}, s.prototype.initPosition = function () {
if (this.$down) {
var t, n, i, o,
e = "number" == typeof window.pageYOffset ? window.pageYOffset : document.documentElement.scrollTop,
s = this.$dom.offset(), r = this.$dom.outerHeight(), d = this.$dom.outerWidth(), a = s.left,
l = s.top - e, p = this.$down.outerHeight(), u = this.$down.outerWidth();
n = r + l, (t = "right" === this.option.align ? a + d - u + this.option.gap : "center" === this.option.align ? a + (d - u) / 2 : a - this.option.gap) + u >= window.innerWidth && (t = window.innerWidth - u - 2 * this.option.gap), i = t < a ? d < u ? a - t + d / 2 : u / 2 : d < u ? t + (a + d - t) / 2 : u / 2, i -= this.option.gap;
var c = this.$arrowDom;
o = -this.option.gap, c.css("left", i), c.css("right", "unset"), n + p >= window.innerHeight ? (n = l - p, o = p - this.option.gap, c.css("top", o).addClass("bottom")) : c.css("top", o).removeClass("bottom"), this.$down.css("left", t), this.$down.css("top", n)
}
}, s.prototype.renderDownHtml = function () {
this.$down = a(this.downHtml);
var t = this.option.appendTo;
if ("next" === t) this.$dom.after(this.$down); else if ("before" === t) this.$dom.before(this.$down); else {
if (0 !== t.indexOf("selector_")) throw new Error("不支持此渲染方式。请填写next, before, selector_xxx 某一项内容。");
a(t.substr(t.indexOf("_") + 1)).append(this.$down)
}
}, s.prototype.show = function () {
var t = this, n = !1;
t.$down || (t.renderDownHtml(), t.$arrowDom = t.$down.find(".layu-dropdown-pointer"), n = !0), t.initPosition(), t.opening = !0, setTimeout(function () {
t.$down.focus()
}, 100), t.$down.addClass("layui-show"), t.initSize(), t.opened = !0, n && t.initDropdownEvent(), d(o, t), n && t.onSuccess(), t.option.onShow && t.option.onShow(t.$dom, t.$down)
}, s.prototype.hide = function () {
this.opened && (this.fcd = !1, this.$down.removeClass("layui-show"), this.opened = !1, this.option.onHide && this.option.onHide(this.$dom, this.$down))
}, s.prototype.hideWhenCan = function () {
this.mic || this.opening || this.fcd || this.hide()
}, s.prototype.toggle = function () {
this.opened ? this.hide() : this.show()
}, s.prototype.onSuccess = function () {
this.option.success && this.option.success(this.$down)
}, s.prototype._onScroll = function () {
var t = this;
t.opened && ("follow" === this.option.scrollBehavior ? setTimeout(function () {
t.initPosition()
}, 10) : this.hide())
}, s.prototype._onResize = function () {
this.opened && this.initPosition()
}, s.prototype.initEvent = function () {
var n = this;
n.initEvented || (n.initEvented = !0, i(o, function (t) {
t !== n && n.hide()
}), this.systemListeners.scrollListener = n._onScroll.bind(n), this.systemListeners.resizeListener = n._onResize.bind(n), a(window).on("scroll", this.systemListeners.scrollListener), n.$dom.parents().on("scroll", this.systemListeners.scrollListener), a(window).on("resize", this.systemListeners.resizeListener), n.initDomEvent())
}, s.prototype.initDomEvent = function () {
var t = this;
t.$dom.mouseenter(function () {
t.mic = !0, "hover" === t.option.showBy && (t.fcd = !0, t.show())
}), t.$dom.mouseleave(function () {
t.mic = !1
}), "click" === t.option.showBy && t.$dom.on("click", function () {
t.fcd = !0, t.toggle()
}), t.$dom.on("blur", function () {
t.fcd = !1, t.hideWhenCan()
})
}, s.prototype.initDropdownEvent = function () {
var r = this;
r.$down.find(".layu-dropdown-menu-wrap").on("mousewheel", function (t) {
var n = a(this);
(t = t || window.event).cancelable = !0, t.cancelBubble = !0, t.preventDefault(), t.stopPropagation(), t.stopImmediatePropagation && t.stopImmediatePropagation(), t.returnValue = !1, r.scrolling && n.finish();
var i = -t.originalEvent.wheelDelta || t.originalEvent.detail;
0 < i ? (50 < i && (i = 50), r.scrolling = !0, n.animate({scrollTop: n.scrollTop() + i}, {
duration: 170,
complete: function () {
r.scrolling = !1
}
})) : i < 0 ? (i < -50 && (i = -50), r.scrolling = !0, n.animate({scrollTop: n.scrollTop() + i}, {
duration: 170,
complete: function () {
r.scrolling = !1
}
})) : r.scrolling = !1
}), r.$down.mouseenter(function () {
r.mic = !0, r.$down.focus()
}), r.$down.mouseleave(function () {
r.mic = !1
}), r.$down.on("blur", function () {
r.fcd = !1, r.hideWhenCan()
}), r.$down.on("focus", function () {
r.opening = !1
}), r.option.menus && a("[" + y + "-id='" + r.option.downid + "']").on("click", "a", function () {
var t = a(this), n = (t.attr("lay-event") || "").trim();
if (n) {
var i = y + "(" + r.option.filter + ")." + p, o = t.parents("[dropdown-menu-index]"),
e = t.parents("[dropdown-menu-item-index]"),
s = r.option.menus[parseInt(o.attr("dropdown-menu-index"))][parseInt(e.attr("dropdown-menu-item-index"))];
r.option.onItemClick && r.option.onItemClick(n, s), d(i, {event: n, data: s}), r.hide()
} else layui.hint().error("菜单条目[" + this.outerHTML + "]未设置event。")
})
}, s.prototype.destroy = function (t) {
if (this.fcd = !1, this.downHtml = void 0, this.mic = !1, this.opened = !1, a(window).off("scroll", this.systemListeners.scrollListener), this.$dom.parents().off("scroll", this.systemListeners.scrollListener), a(window).off("resize", this.systemListeners.resizeListener), this.$down && this.$down.remove(), this.$dom.removeData(y, null), void 0 === t && (t = !0), !t) {
var n = y + "(" + this.option.filter + ")." + p;
delete e[n]
}
}, r(), window[y + "_useOwnCss"] || layui.link(window[y + "_cssLink"] || $.cssLink, function () {
}, y + "_css"), t(y, {
suite: r, onFilter: function (t, n) {
i(y + "(" + t + ")." + p, function (t) {
n && n(t.event, t.data)
})
}, hide: function (t) {
a(t).each(function () {
var t = a(this).data(y);
t && t.hide()
})
}, show: function (n, i) {
a(n).each(function () {
var t = a(this).data(y);
t ? t.show() : (layui.hint().error("警告:尝试在选择器【" + n + "】上进行下拉框show操作但此选择器对应的dom并没有初始化下拉框。"), (i = i || {}).immed = !0, r(n, i))
})
}, destroy: function (t, n) {
a(t).each(function () {
var t = a(this).data(y);
t && t.destroy(n)
})
}, version: "2.3.5"
})
});

View File

@@ -0,0 +1,7 @@
![下拉框首页图](https://file.microanswer.cn/home_of_layuidropdown.png)
- [控件首页](http://layuidropdown.microanswer.cn/?layuizip)
- [立即体验](http://test.microanswer.cn/page/dropdown.html?layuizip)
- [使用文档](https://www.microanswer.cn/blog/74?layuizip)
by [Microanswer](https://www.microanswer.cn?layuizip).

File diff suppressed because it is too large Load Diff

Binary file not shown.

File diff suppressed because one or more lines are too long

After

Width:  |  Height:  |  Size: 277 KiB

Binary file not shown.

Binary file not shown.

Binary file not shown.

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 9.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.8 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 777 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.9 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 10 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.7 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 6.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.6 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 2.4 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.3 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.5 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 5.2 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.0 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 4.1 KiB

View File

@@ -0,0 +1,160 @@
layui.define(['jquery', 'laytpl', 'layer'], function (e) {
"use strict";
// layui.link('/resource/css/autocomplete.css');
var hint = layui.hint(),
$ = layui.jquery,
laytpl = layui.laytpl,
layer = layui.layer,
module = 'autocomplete',
filter = 'layui-autocomplete',
container = 'layui-form-autocomplete',
container_focus = 'layui-form-autocomplete-focus',
system = {
config: {
template: ['<div class="layui-form-autocomplete">', '<dl class="layui-anim layui-anim-upbit">', '</dl>', '</div>'].join(''),
layout: ['<dd data-index="{{d.index}}">{{d.text}}</dd>'].join(''),
template_txt: '{{d.text}}',
template_val: '{{d.value}}',
cache: false
},
index: layui.autocomplete ? layui.autocomplete.index + 1e4: 0,
data: {},
},
callback = function() {
var _self = this,
_config = _self.config,
_id = _config.id;
return _id && (callback.config[_id] = _config), {
config: _self.config
}
},
job = function(e) {
var _self = this;
_self.index = ++system.index,
_self.config = $.extend({}, _self.config, system.config, e),
_self.render()
};
job.prototype.config = {
text: {
none: "无数据",
loading: "加载中"
},
response: {
code: 'code',
data: 'data'
},
time_limit: 500,
ajax: [],
_ajax: null,
data: [],
filter: ''
},
job.prototype.render = function() {
var _self = this, _config = _self.config;
if (_config.elem = $(_config.elem), _config.where = _config.where || {}, !_config.elem[0]) return _self;
var _elem = _config.elem,
_container = _elem.next('.' + container),
_html = _self.elem = $(laytpl(_config.template).render({}));
_config.id = _self.id, _container[0] && _container.remove(), _elem.attr('autocomplete', 'off'), _elem.after(_html);
_self.events()
},
job.prototype.pullData = function () {
var _self = this,
_config = _self.config,
_elem = _config.elem,
_container = _elem.next('.' + container),
_dom = _container.find('dl');
if (!_config.filter) return _self.renderData([]);
if (_config.cache && _config.data[_self.index]) {
var arr = [];
layui.each(_config.data[_self.index], function (i, e) {
if (typeof e === "string") e = new Array(e);
layui.each(e, function (_i, _e) {
if(_e && _e.toString().toLowerCase().indexOf(_config.filter.toLowerCase()) > -1) {
arr.push(e);
return false;
}
});
});
return _self.renderData(arr);
}
if (_config.cache && _config.ajax[_self.index] != undefined) return;
(!_config.cache && _config.ajax[_self.index] != undefined) && _config.ajax[_self.index].abort(), _config.ajax[_self.index] = $.ajax({
type: _config.method || "get",
url: _config.url,
data: {search_text: _config.filter},
dataType: "json",
beforeSend: function () {
_container.addClass(container_focus), _dom.html(['<dd style="text-align: center" autocomplete-load>', _config.text.loading, '</dd>'].join(''))
},
success: function (resp) {
return 0 != eval('resp.' + _config.response.code) ? layer.msg(eval('resp.' + _config.response.data)) : _config.data[_self.index] = eval('resp.' + _config.response.data), _self.renderData(_config.data[_self.index])
},
error: function () {
hint.error("请求失败")
},
complete: function () {
delete _config.ajax[_self.index]
}
})
},
job.prototype.renderData = function (resp) {
var _self = this,
_config = _self.config,
_elem = _config.elem,
_container = _elem.next('.' + container),
_dom = _container.find('dl'),
_list = [];
layui.each(resp, function (i, e) {
_list.push(laytpl(_config.layout).render({index: i, text: laytpl(_config.template_txt).render(e)}));
});
_dom.html(_list.join('')), _list.length > 0 ? _container.addClass(container_focus) : _container.removeClass(container_focus)
},
job.prototype.events = function () {
var _self = this,
_config = _self.config,
_elem = _config.elem,
_container = _elem.next('.' + container),
_dom = _container.find('dl');
_elem.on('focus', function () {
_config.filter = this.value, _config.cache ? _self.pullData() : _self.renderData(_config.data[_self.index])
}).on('input propertychange', function (e) {
var _value = this.value;
clearTimeout(_config._ajax), _config._ajax = setTimeout(function () {
_config.filter = _value, _self.pullData()
}, _config.time_limit)
}),
$(document).on('click', function (e) {
var _target = e.target, _item = _dom.find(_target), _e = _item.length > 0 ? _item.closest('dd') : undefined;
if (_target === _elem[0]) return false;
if (_e !== undefined) {
if (_e.attr('autocomplete-load') !== undefined) return false;
_elem.val(laytpl(_config.template_val).render(_config.data[_self.index][_e.index()])), _config.onselect == undefined || _config.onselect(_config.data[_self.index][_e.index()])
}
_container.removeClass(container_focus);
})
};
callback.config = {},
callback.job = {},
system.init = function (e, c) {
var c = c || {}, _self = this, _elems = $(e ? 'input[lay-filter="' + e + '"]': 'input[' + filter + ']');
_elems.each(function (_i, _e) {
var _elem = $(_e),
_lay_data = _elem.attr('lay-data');
try {
_lay_data = new Function("return " + _lay_data)()
} catch (ex) {
return hint.error("autocomplete元素属性lay-data配置项存在语法错误" + _lay_data)
}
var _config = $.extend({elem: this}, system.config, c, _lay_data);
_config.url == undefined && (_config.data == undefined || _config.length === 0) && hint.error("autocomplete配置有误缺少获取数据方式");
system.render(_config);
})
},
system.render = function (e) {
var j = new job(e);
return callback.call(j)
}
system.init(), e(module, system);
})

View File

@@ -0,0 +1,2 @@
/** layui-v2.5.5 MIT License By https://www.layui.com */
;layui.define("jquery",function(e){"use strict";var i=layui.$,n=(layui.hint(),layui.device(),{config:{},set:function(e){var n=this;return n.config=i.extend({},n.config,e),n},on:function(e,i){return layui.onevent.call(this,t,e,i)}}),t="carousel",a="layui-this",l=">*[carousel-item]>*",o="layui-carousel-left",r="layui-carousel-right",d="layui-carousel-prev",s="layui-carousel-next",u="layui-carousel-arrow",c="layui-carousel-ind",m=function(e){var t=this;t.config=i.extend({},t.config,n.config,e),t.render()};m.prototype.config={width:"600px",height:"280px",full:!1,arrow:"hover",indicator:"inside",autoplay:!0,interval:3e3,anim:"",trigger:"click",index:0},m.prototype.render=function(){var e=this,n=e.config;n.elem=i(n.elem),n.elem[0]&&(e.elemItem=n.elem.find(l),n.index<0&&(n.index=0),n.index>=e.elemItem.length&&(n.index=e.elemItem.length-1),n.interval<800&&(n.interval=800),n.full?n.elem.css({position:"fixed",width:"100%",height:"100%",zIndex:9999}):n.elem.css({width:n.width,height:n.height}),n.elem.attr("lay-anim",n.anim),e.elemItem.eq(n.index).addClass(a),e.elemItem.length<=1||(e.indicator(),e.arrow(),e.autoplay(),e.events()))},m.prototype.reload=function(e){var n=this;clearInterval(n.timer),n.config=i.extend({},n.config,e),n.render()},m.prototype.prevIndex=function(){var e=this,i=e.config,n=i.index-1;return n<0&&(n=e.elemItem.length-1),n},m.prototype.nextIndex=function(){var e=this,i=e.config,n=i.index+1;return n>=e.elemItem.length&&(n=0),n},m.prototype.addIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index+e,n.index>=i.elemItem.length&&(n.index=0)},m.prototype.subIndex=function(e){var i=this,n=i.config;e=e||1,n.index=n.index-e,n.index<0&&(n.index=i.elemItem.length-1)},m.prototype.autoplay=function(){var e=this,i=e.config;i.autoplay&&(clearInterval(e.timer),e.timer=setInterval(function(){e.slide()},i.interval))},m.prototype.arrow=function(){var e=this,n=e.config,t=i(['<button class="layui-icon '+u+'" lay-type="sub">'+("updown"===n.anim?"&#xe619;":"&#xe603;")+"</button>",'<button class="layui-icon '+u+'" lay-type="add">'+("updown"===n.anim?"&#xe61a;":"&#xe602;")+"</button>"].join(""));n.elem.attr("lay-arrow",n.arrow),n.elem.find("."+u)[0]&&n.elem.find("."+u).remove(),n.elem.append(t),t.on("click",function(){var n=i(this),t=n.attr("lay-type");e.slide(t)})},m.prototype.indicator=function(){var e=this,n=e.config,t=e.elemInd=i(['<div class="'+c+'"><ul>',function(){var i=[];return layui.each(e.elemItem,function(e){i.push("<li"+(n.index===e?' class="layui-this"':"")+"></li>")}),i.join("")}(),"</ul></div>"].join(""));n.elem.attr("lay-indicator",n.indicator),n.elem.find("."+c)[0]&&n.elem.find("."+c).remove(),n.elem.append(t),"updown"===n.anim&&t.css("margin-top",-(t.height()/2)),t.find("li").on("hover"===n.trigger?"mouseover":n.trigger,function(){var t=i(this),a=t.index();a>n.index?e.slide("add",a-n.index):a<n.index&&e.slide("sub",n.index-a)})},m.prototype.slide=function(e,i){var n=this,l=n.elemItem,u=n.config,c=u.index,m=u.elem.attr("lay-filter");n.haveSlide||("sub"===e?(n.subIndex(i),l.eq(u.index).addClass(d),setTimeout(function(){l.eq(c).addClass(r),l.eq(u.index).addClass(r)},50)):(n.addIndex(i),l.eq(u.index).addClass(s),setTimeout(function(){l.eq(c).addClass(o),l.eq(u.index).addClass(o)},50)),setTimeout(function(){l.removeClass(a+" "+d+" "+s+" "+o+" "+r),l.eq(u.index).addClass(a),n.haveSlide=!1},300),n.elemInd.find("li").eq(u.index).addClass(a).siblings().removeClass(a),n.haveSlide=!0,layui.event.call(this,t,"change("+m+")",{index:u.index,prevIndex:c,item:l.eq(u.index)}))},m.prototype.events=function(){var e=this,i=e.config;i.elem.data("haveEvents")||(i.elem.on("mouseenter",function(){clearInterval(e.timer)}).on("mouseleave",function(){e.autoplay()}),i.elem.data("haveEvents",!0))},n.render=function(e){var i=new m(e);return i},e(t,n)});

View File

@@ -0,0 +1,2 @@
/** layui-v2.5.5 MIT License By https://www.layui.com */
;layui.define("jquery",function(e){"use strict";var a=layui.$,l="http://www.layui.com/doc/modules/code.html";e("code",function(e){var t=[];e=e||{},e.elem=a(e.elem||".layui-code"),e.about=!("about"in e)||e.about,e.elem.each(function(){t.push(this)}),layui.each(t.reverse(),function(t,i){var c=a(i),o=c.html();(c.attr("lay-encode")||e.encode)&&(o=o.replace(/&(?!#?[a-zA-Z0-9]+;)/g,"&amp;").replace(/</g,"&lt;").replace(/>/g,"&gt;").replace(/'/g,"&#39;").replace(/"/g,"&quot;")),c.html('<ol class="layui-code-ol"><li>'+o.replace(/[\r\t\n]+/g,"</li><li>")+"</li></ol>"),c.find(">.layui-code-h3")[0]||c.prepend('<h3 class="layui-code-h3">'+(c.attr("lay-title")||e.title||"code")+(e.about?'<a href="'+l+'" target="_blank">layui.code</a>':"")+"</h3>");var d=c.find(">.layui-code-ol");c.addClass("layui-box layui-code-view"),(c.attr("lay-skin")||e.skin)&&c.addClass("layui-code-"+(c.attr("lay-skin")||e.skin)),(d.find("li").length/100|0)>0&&d.css("margin-left",(d.find("li").length/100|0)+"px"),(c.attr("lay-height")||e.height)&&d.css("max-height",c.attr("lay-height")||e.height)})})}).addcss("modules/code.css","skincodecss");

File diff suppressed because one or more lines are too long

View File

@@ -0,0 +1,273 @@
/** layui-v2.5.5 MIT License By https://www.layui.com */
;
layui.define("jquery", function (t) {
"use strict";
var a = layui.$,
i = (layui.hint(), layui.device()),
e = "element",
l = "layui-this",
n = "layui-show",
s = function () {
this.config = {}
};
s.prototype.set = function (t) {
var i = this;
return a.extend(!0, i.config, t), i
}, s.prototype.on = function (t, a) {
return layui.onevent.call(this, e, t, a)
}, s.prototype.tabAdd = function (t, i) {
var e = ".layui-tab-title",
l = a(".layui-tab[lay-filter=" + t + "]"),
n = l.children(e),
s = n.children(".layui-tab-bar"),
o = l.children(".layui-tab-content"),
r = '<li lay-id="' + (i.id || "") + '"' + (i.attr ? ' lay-attr="' + i.attr + '"' : "") + ">" + (i.title ||
"unnaming") + "</li>";
return s[0] ? s.before(r) : n.append(r), o.append('<div class="layui-tab-item">' + (i.content || "") + "</div>"),
f.hideTabMore(!0), f.tabAuto(), this
}, s.prototype.tabDelete = function (t, i) {
var e = ".layui-tab-title",
l = a(".layui-tab[lay-filter=" + t + "]"),
n = l.children(e),
s = n.find('>li[lay-id="' + i + '"]');
return f.tabDelete(null, s), this
}, s.prototype.tabChange = function (t, i) {
var e = ".layui-tab-title",
l = a(".layui-tab[lay-filter=" + t + "]"),
n = l.children(e),
s = n.find('>li[lay-id="' + i + '"]');
return f.tabClick.call(s[0], null, null, s), this
}, s.prototype.tab = function (t) {
t = t || {}, b.on("click", t.headerElem, function (i) {
var e = a(this).index();
f.tabClick.call(this, i, e, null, t)
})
}, s.prototype.progress = function (t, i) {
var e = "layui-progress",
l = a("." + e + "[lay-filter=" + t + "]"),
n = l.find("." + e + "-bar"),
s = n.find("." + e + "-text");
return n.css("width", i), s.text(i), this
};
var o = ".layui-nav",
r = "layui-nav-item",
c = "layui-nav-bar",
u = "layui-nav-tree",
d = "layui-nav-child",
y = "layui-nav-more",
h = "layui-anim layui-anim-upbit",
f = {
tabClick: function (t, i, s, o) {
o = o || {};
var r = s || a(this),
i = i || r.parent().children("li").index(r),
c = o.headerElem ? r.parent() : r.parents(".layui-tab").eq(0),
u = o.bodyElem ? a(o.bodyElem) : c.children(".layui-tab-content").children(".layui-tab-item"),
d = r.find("a"),
y = c.attr("lay-filter");
"javascript:;" !== d.attr("href") && "_blank" === d.attr("target") || (r.addClass(l).siblings().removeClass(l),
u.eq(i).addClass(n).siblings().removeClass(n)), layui.event.call(this, e, "tab(" + y + ")", {
elem: c,
index: i
})
},
tabDelete: function (t, i) {
var n = i || a(this).parent(),
s = n.index(),
o = n.parents(".layui-tab").eq(0),
r = o.children(".layui-tab-content").children(".layui-tab-item"),
c = o.attr("lay-filter");
n.hasClass(l) && (n.next()[0] ? f.tabClick.call(n.next()[0], null, s + 1) : n.prev()[0] && f.tabClick.call(n.prev()[
0], null, s - 1)), n.remove(), r.eq(s).remove(), setTimeout(function () {
f.tabAuto()
}, 50), layui.event.call(this, e, "tabDelete(" + c + ")", {
elem: o,
index: s
})
},
tabAuto: function () {
var t = "layui-tab-more",
e = "layui-tab-bar",
l = "layui-tab-close",
n = this;
a(".layui-tab").each(function () {
var s = a(this),
o = s.children(".layui-tab-title"),
r = (s.children(".layui-tab-content").children(".layui-tab-item"), 'lay-stope="tabmore"'),
c = a('<span class="layui-unselect layui-tab-bar" ' + r + "><i " + r +
' class="layui-icon">&#xe61a;</i></span>');
if (n === window && 8 != i.ie && f.hideTabMore(!0), s.attr("lay-allowClose") && o.find("li").each(function () {
var t = a(this);
if (!t.find("." + l)[0]) {
var i = a('<i class="layui-icon layui-unselect ' + l + '">&#x1006;</i>');
i.on("click", f.tabDelete), t.append(i)
}
}), "string" != typeof s.attr("lay-unauto"))
if (o.prop("scrollWidth") > o.outerWidth() + 1) {
if (o.find("." + e)[0]) return;
o.append(c), s.attr("overflow", ""), c.on("click", function (a) {
o[this.title ? "removeClass" : "addClass"](t), this.title = this.title ? "" : "收缩"
})
} else o.find("." + e).remove(), s.removeAttr("overflow")
})
},
hideTabMore: function (t) {
var i = a(".layui-tab-title");
t !== !0 && "tabmore" === a(t.target).attr("lay-stope") || (i.removeClass("layui-tab-more"), i.find(
".layui-tab-bar").attr("title", ""))
},
clickThis: function () {
var t = a(this),
i = t.parents(o),
n = i.attr("lay-filter"),
s = t.parent(),
c = t.siblings("." + d),
y = "string" == typeof s.attr("lay-unselect");
//禁用
if ((s.attr("lay-disabled") === "")) return;
if (c[0]) {
"javascript:;" !== t.attr("href") && "_blank" === t.attr("target") || y || c[0] || (i.find("." + l).removeClass(
l), s.addClass(l)), i.hasClass(u) && (c.removeClass(h), c[0] && (s["none" === c.css("display") ? "addClass" :
"removeClass"](r + "ed"), "all" === i.attr("lay-shrink") && s.siblings().removeClass(r + "ed"))), layui.event.call(
this, e, "nav(" + n + ")", t)
} else {
"javascript:;" !== t.attr("href") && "_blank" === t.attr("target") || y || c[0] || i.hasClass(u) && (c.removeClass(h), c[0] && (s["none" === c.css("display") ? "addClass" :
"removeClass"](r + "ed"), "all" === i.attr("lay-shrink") && s.siblings().removeClass(r + "ed"))), layui.event.call(
this, e, "nav(" + n + ")", t)
}
},
collapse: function () {
var t = a(this),
i = t.find(".layui-colla-icon"),
l = t.siblings(".layui-colla-content"),
s = t.parents(".layui-collapse").eq(0),
o = s.attr("lay-filter"),
r = "none" === l.css("display");
if ("string" == typeof s.attr("lay-accordion")) {
var c = s.children(".layui-colla-item").children("." + n);
c.siblings(".layui-colla-title").children(".layui-colla-icon").html("&#xe602;"), c.removeClass(n)
}
l[r ? "addClass" : "removeClass"](n), i.html(r ? "&#xe61a;" : "&#xe602;"), layui.event.call(this, e, "collapse(" +
o + ")", {
title: t,
content: l,
show: r
})
}
};
s.prototype.init = function (t, e) {
var l = function () {
return e ? '[lay-filter="' + e + '"]' : ""
}(),
s = {
tab: function () {
f.tabAuto.call({})
},
nav: function () {
var t = 200,
e = {},
s = {},
p = {},
b = function (l, o, r) {
var c = a(this),
f = c.find("." + d);
o.hasClass(u) ? l.css({
top: c.position().top,
height: c.children("a").outerHeight(),
opacity: 1
}) : (f.addClass(h), l.css({
left: c.position().left + parseFloat(c.css("marginLeft")),
top: c.position().top + c.height() - l.height()
}), e[r] = setTimeout(function () {
l.css({
width: c.width(),
opacity: 1
})
}, i.ie && i.ie < 10 ? 0 : t), clearTimeout(p[r]), "block" === f.css("display") && clearTimeout(s[r]), s[r] =
setTimeout(function () {
f.addClass(n), c.find("." + y).addClass(y + "d")
}, 300))
};
a(o + l).each(function (i) {
var l = a(this),
o = a('<span class="' + c + '"></span>'),
h = l.find("." + r);
l.find("." + c)[0] || (l.append(o), h.on("mouseenter", function () {
b.call(this, o, l, i)
}).on("mouseleave", function () {
l.hasClass(u) || (clearTimeout(s[i]), s[i] = setTimeout(function () {
l.find("." + d).removeClass(n), l.find("." + y).removeClass(y + "d")
}, 300))
}), l.on("mouseleave", function () {
clearTimeout(e[i]), p[i] = setTimeout(function () {
l.hasClass(u) ? o.css({
height: 0,
top: o.position().top + o.height() / 2,
opacity: 0
}) : o.css({
width: 0,
left: o.position().left + o.width() / 2,
opacity: 0
})
}, t)
})), h.find("a").each(function () {
var t = a(this),
i = (t.parent(), t.siblings("." + d));
i[0] && !t.children("." + y)[0] && t.append('<span class="' + y + '"></span>'), t.off("click", f.clickThis)
.on("click", f.clickThis)
})
})
},
breadcrumb: function () {
var t = ".layui-breadcrumb";
a(t + l).each(function () {
var t = a(this),
i = "lay-separator",
e = t.attr(i) || "/",
l = t.find("a");
l.next("span[" + i + "]")[0] || (l.each(function (t) {
t !== l.length - 1 && a(this).after("<span " + i + ">" + e + "</span>")
}), t.css("visibility", "visible"))
})
},
progress: function () {
var t = "layui-progress";
a("." + t + l).each(function () {
var i = a(this),
e = i.find(".layui-progress-bar"),
l = e.attr("lay-percent");
e.css("width", function () {
return /^.+\/.+$/.test(l) ? 100 * new Function("return " + l)() + "%" : l
}()), i.attr("lay-showPercent") && setTimeout(function () {
e.html('<span class="' + t + '-text">' + l + "</span>")
}, 350)
})
},
collapse: function () {
var t = "layui-collapse";
a("." + t + l).each(function () {
var t = a(this).find(".layui-colla-item");
t.each(function () {
var t = a(this),
i = t.find(".layui-colla-title"),
e = t.find(".layui-colla-content"),
l = "none" === e.css("display");
i.find(".layui-colla-icon").remove(), i.append('<i class="layui-icon layui-colla-icon">' + (l ?
"&#xe602;" : "&#xe61a;") + "</i>"), i.off("click", f.collapse).on("click", f.collapse)
})
})
}
};
return s[t] ? s[t]() : layui.each(s, function (t, a) {
a()
})
}, s.prototype.render = s.prototype.init;
var p = new s,
b = a(document);
p.render();
var v = ".layui-tab-title li";
b.on("click", v, f.tabClick), b.on("click", f.hideTabMore), a(window).on("resize", f.tabAuto), t(e, p)
});

View File

@@ -0,0 +1,2 @@
/** layui-v2.5.5 MIT License By https://www.layui.com */
;layui.define("jquery",function(e){"use strict";var l=layui.$,o=function(e){},t='<i class="layui-anim layui-anim-rotate layui-anim-loop layui-icon ">&#xe63e;</i>';o.prototype.load=function(e){var o,i,n,r,a=this,c=0;e=e||{};var f=l(e.elem);if(f[0]){var m=l(e.scrollElem||document),u=e.mb||50,s=!("isAuto"in e)||e.isAuto,v=e.end||"没有更多了",y=e.scrollElem&&e.scrollElem!==document,d="<cite>加载更多</cite>",h=l('<div class="layui-flow-more"><a href="javascript:;">'+d+"</a></div>");f.find(".layui-flow-more")[0]||f.append(h);var p=function(e,t){e=l(e),h.before(e),t=0==t||null,t?h.html(v):h.find("a").html(d),i=t,o=null,n&&n()},g=function(){o=!0,h.find("a").html(t),"function"==typeof e.done&&e.done(++c,p)};if(g(),h.find("a").on("click",function(){l(this);i||o||g()}),e.isLazyimg)var n=a.lazyimg({elem:e.elem+" img",scrollElem:e.scrollElem});return s?(m.on("scroll",function(){var e=l(this),t=e.scrollTop();r&&clearTimeout(r),i||(r=setTimeout(function(){var i=y?e.height():l(window).height(),n=y?e.prop("scrollHeight"):document.documentElement.scrollHeight;n-t-i<=u&&(o||g())},100))}),a):a}},o.prototype.lazyimg=function(e){var o,t=this,i=0;e=e||{};var n=l(e.scrollElem||document),r=e.elem||"img",a=e.scrollElem&&e.scrollElem!==document,c=function(e,l){var o=n.scrollTop(),r=o+l,c=a?function(){return e.offset().top-n.offset().top+o}():e.offset().top;if(c>=o&&c<=r&&!e.attr("src")){var m=e.attr("lay-src");layui.img(m,function(){var l=t.lazyimg.elem.eq(i);e.attr("src",m).removeAttr("lay-src"),l[0]&&f(l),i++})}},f=function(e,o){var f=a?(o||n).height():l(window).height(),m=n.scrollTop(),u=m+f;if(t.lazyimg.elem=l(r),e)c(e,f);else for(var s=0;s<t.lazyimg.elem.length;s++){var v=t.lazyimg.elem.eq(s),y=a?function(){return v.offset().top-n.offset().top+m}():v.offset().top;if(c(v,f),i=s,y>u)break}};if(f(),!o){var m;n.on("scroll",function(){var e=l(this);m&&clearTimeout(m),m=setTimeout(function(){f(null,e)},50)}),o=!0}return f},e("flow",new o)});

View File

@@ -0,0 +1,244 @@
/** layui-v2.5.5 MIT License By https://www.layui.com */
;layui.define("layer", function (e) {
"use strict";
var t = layui.$, i = layui.layer, a = layui.hint(), n = layui.device(), l = "form", r = ".layui-form",
s = "layui-this", o = "layui-hide", c = "layui-disabled", u = function () {
this.config = {
verify: {
required: [/[\S]+/, "必填项不能为空"],
phone: [/^1\d{10}$/, "请输入正确的手机号"],
email: [/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/, "邮箱格式不正确"],
url: [/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/, "链接格式不正确"],
number: function (e) {
if (!e || isNaN(e)) return "只能填写数字"
},
date: [/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/, "日期格式不正确"],
identity: [/(^\d{15}$)|(^\d{17}(x|X|\d)$)/, "请输入正确的身份证号"]
}
}
};
u.prototype.set = function (e) {
var i = this;
return t.extend(!0, i.config, e), i
}, u.prototype.verify = function (e) {
var i = this;
return t.extend(!0, i.config.verify, e), i
}, u.prototype.on = function (e, t) {
return layui.onevent.call(this, l, e, t)
}, u.prototype.val = function (e, i) {
var a = this, n = t(r + '[lay-filter="' + e + '"]');
return n.each(function (e, a) {
var n = t(this);
layui.each(i, function (e, t) {
var i, a = n.find('[name="' + e + '"]');
a[0] && (i = a[0].type, "checkbox" === i ? a[0].checked = t : "radio" === i ? a.each(function () {
this.value == t && (this.checked = !0)
}) : a.val(t))
})
}), f.render(null, e), a.getValue(e)
}, u.prototype.getValue = function (e, i) {
i = i || t(r + '[lay-filter="' + e + '"]').eq(0);
var a = {}, n = {}, l = i.find("input,select,textarea");
return layui.each(l, function (e, t) {
if (t.name = (t.name || "").replace(/^\s*|\s*&/, ""), t.name) {
if (/^.*\[\]$/.test(t.name)) {
var i = t.name.match(/^(.*)\[\]$/g)[0];
a[i] = 0 | a[i], t.name = t.name.replace(/^(.*)\[\]$/, "$1[" + a[i]++ + "]")
}
/^checkbox|radio$/.test(t.type) && !t.checked || (n[t.name] = t.value)
}
}), n
}, u.prototype.render = function (e, i) {
var n = this, u = t(r + function () {
return i ? '[lay-filter="' + i + '"]' : ""
}()), d = {
select: function () {
var e, i = "请选择", a = "layui-form-select", n = "layui-select-title", r = "layui-select-none", d = "",
f = u.find("select"), v = function (i, l) {
t(i.target).parent().hasClass(n) && !l || (t("." + a).removeClass(a + "ed " + a + "up"), e && d && e.val(d)), e = null
}, y = function (i, u, f) {
var y, p = t(this), m = i.find("." + n), k = m.find("input"), g = i.find("dl"),
x = g.children("dd"), b = this.selectedIndex;
if (!u) {
var C = function () {
var e = i.offset().top + i.outerHeight() + 5 - h.scrollTop(), t = g.outerHeight();
b = p[0].selectedIndex, i.addClass(a + "ed"), x.removeClass(o), y = null, x.eq(b).addClass(s).siblings().removeClass(s), e + t > h.height() && e >= t && i.addClass(a + "up"), T()
}, w = function (e) {
i.removeClass(a + "ed " + a + "up"), k.blur(), y = null, e || $(k.val(), function (e) {
var i = p[0].selectedIndex;
e && (d = t(p[0].options[i]).html(), 0 === i && d === k.attr("placeholder") && (d = ""), k.val(d || ""))
})
}, T = function () {
var e = g.children("dd." + s);
if (e[0]) {
var t = e.position().top, i = g.height(), a = e.height();
t > i && g.scrollTop(t + g.scrollTop() - i + a - 5), t < 0 && g.scrollTop(t + g.scrollTop() - 5)
}
};
m.on("click", function (e) {
i.hasClass(a + "ed") ? w() : (v(e, !0), C()), g.find("." + r).remove()
}), m.find(".layui-edge").on("click", function () {
k.focus()
}), k.on("keyup", function (e) {
var t = e.keyCode;
9 === t && C()
}).on("keydown", function (e) {
var t = e.keyCode;
9 === t && w();
var i = function (t, a) {
var n, l;
e.preventDefault();
var r = function () {
var e = g.children("dd." + s);
if (g.children("dd." + o)[0] && "next" === t) {
var i = g.children("dd:not(." + o + ",." + c + ")"), n = i.eq(0).index();
if (n >= 0 && n < e.index() && !i.hasClass(s)) return i.eq(0).prev()[0] ? i.eq(0).prev() : g.children(":last")
}
return a && a[0] ? a : y && y[0] ? y : e
}();
return l = r[t](), n = r[t]("dd:not(." + o + ")"), l[0] ? (y = r[t](), n[0] && !n.hasClass(c) || !y[0] ? (n.addClass(s).siblings().removeClass(s), void T()) : i(t, y)) : y = null
};
38 === t && i("prev"), 40 === t && i("next"), 13 === t && (e.preventDefault(), g.children("dd." + s).trigger("click"))
});
var $ = function (e, i, a) {
var n = 0;
layui.each(x, function () {
var i = t(this), l = i.text(), r = l.indexOf(e) === -1;
("" === e || "blur" === a ? e !== l : r) && n++, "keyup" === a && i[r ? "addClass" : "removeClass"](o)
});
var l = n === x.length;
return i(l), l
}, q = function (e) {
var t = this.value, i = e.keyCode;
return 9 !== i && 13 !== i && 37 !== i && 38 !== i && 39 !== i && 40 !== i && ($(t, function (e) {
e ? g.find("." + r)[0] || g.append('<p class="' + r + '">无匹配项</p>') : g.find("." + r).remove()
}, "keyup"), "" === t && g.find("." + r).remove(), void T())
};
f && k.on("keyup", q).on("blur", function (i) {
var a = p[0].selectedIndex;
e = k, d = t(p[0].options[a]).html().replace(/&nbsp;/g,""), 0 === a && d === k.attr("placeholder") && (d = ""), setTimeout(function () {
$(k.val(), function (e) {
d || k.val("")
}, "blur")
}, 200)
}), x.on("click", function () {
var e = t(this), a = e.attr("lay-value"), n = p.attr("lay-filter");
return !e.hasClass(c) && (e.hasClass("layui-select-tips") ? k.val("") : (k.val(layui.$.trim(e.text())), e.addClass(s)), e.siblings().removeClass(s), p.val(a).removeClass("layui-form-danger"), layui.event.call(this, l, "select(" + n + ")", {
elem: p[0],
value: a,
othis: i
}), w(!0), !1)
}), i.find("dl>dt").on("click", function (e) {
return !1
}), t(document).off("click", v).on("click", v)
}
};
f.each(function (e, l) {
var r = t(this), o = r.next("." + a), u = this.disabled, d = l.value,
f = t(l.options[l.selectedIndex]), v = l.options[0];
if ("string" == typeof r.attr("lay-ignore")) return r.show();
var h = "string" == typeof r.attr("lay-search"), p = v ? v.value ? i : v.innerHTML || i : i,
m = t(['<div class="' + (h ? "" : "layui-unselect ") + a, (u ? " layui-select-disabled" : "") + '">', '<div class="' + n + '">', '<input type="text" placeholder="' + p + '" ' + ('value="' + (d ? f.html() : "") + '"') + (h ? "" : " readonly") + ' class="layui-input' + (h ? "" : " layui-unselect") + (u ? " " + c : "") + '">', '<i class="layui-edge"></i></div>', '<dl class="layui-anim layui-anim-upbit' + (r.find("optgroup")[0] ? " layui-select-group" : "") + '">', function (e) {
var t = [];
return layui.each(e, function (e, a) {
0 !== e || a.value ? "optgroup" === a.tagName.toLowerCase() ? t.push("<dt>" + a.label + "</dt>") : t.push('<dd lay-value="' + a.value + '" class="' + (d === a.value ? s : "") + (a.disabled ? " " + c : "") + '">' + a.innerHTML + "</dd>") : t.push('<dd lay-value="" class="layui-select-tips">' + (a.innerHTML || i) + "</dd>")
}), 0 === t.length && t.push('<dd lay-value="" class="' + c + '">没有选项</dd>'), t.join("")
}(r.find("*")) + "</dl>", "</div>"].join(""));
o[0] && o.remove(), r.after(m), y.call(this, m, u, h)
})
}, checkbox: function () {
var e = {
checkbox: ["layui-form-checkbox", "layui-form-checked", "checkbox"],
_switch: ["layui-form-switch", "layui-form-onswitch", "switch"]
}, i = u.find("input[type=checkbox]"), a = function (e, i) {
var a = t(this);
e.on("click", function () {
var t = a.attr("lay-filter"), n = (a.attr("lay-text") || "").split("|");
a[0].disabled || (a[0].checked ? (a[0].checked = !1, e.removeClass(i[1]).find("em").text(n[1])) : (a[0].checked = !0, e.addClass(i[1]).find("em").text(n[0])), layui.event.call(a[0], l, i[2] + "(" + t + ")", {
elem: a[0],
value: a[0].value,
othis: e
}))
})
};
i.each(function (i, n) {
var l = t(this), r = l.attr("lay-skin"), s = (l.attr("lay-text") || "").split("|"),
o = this.disabled;
"switch" === r && (r = "_" + r);
var u = e[r] || e.checkbox;
if ("string" == typeof l.attr("lay-ignore")) return l.show();
var d = l.next("." + u[0]),
f = t(['<div class="layui-unselect ' + u[0], n.checked ? " " + u[1] : "", o ? " layui-checkbox-disbaled " + c : "", '"', r ? ' lay-skin="' + r + '"' : "", ">", function () {
var e = n.title.replace(/\s/g, ""), t = {
checkbox: [e ? "<span>" + n.title + "</span>" : "", '<i class="layui-icon layui-icon-ok"></i>'].join(""),
_switch: "<em>" + ((n.checked ? s[0] : s[1]) || "") + "</em><i></i>"
};
return t[r] || t.checkbox
}(), "</div>"].join(""));
d[0] && d.remove(), l.after(f), a.call(this, f, u)
})
}, radio: function () {
var e = "layui-form-radio", i = ["&#xe643;", "&#xe63f;"], a = u.find("input[type=radio]"),
n = function (a) {
var n = t(this), s = "layui-anim-scaleSpring";
a.on("click", function () {
var o = n[0].name, c = n.parents(r), u = n.attr("lay-filter"),
d = c.find("input[name=" + o.replace(/(\.|#|\[|\])/g, "\\$1") + "]");
n[0].disabled || (layui.each(d, function () {
var a = t(this).next("." + e);
this.checked = !1, a.removeClass(e + "ed"), a.find(".layui-icon").removeClass(s).html(i[1])
}), n[0].checked = !0, a.addClass(e + "ed"), a.find(".layui-icon").addClass(s).html(i[0]), layui.event.call(n[0], l, "radio(" + u + ")", {
elem: n[0],
value: n[0].value,
othis: a
}))
})
};
a.each(function (a, l) {
var r = t(this), s = r.next("." + e), o = this.disabled;
if ("string" == typeof r.attr("lay-ignore")) return r.show();
s[0] && s.remove();
var u = t(['<div class="layui-unselect ' + e, l.checked ? " " + e + "ed" : "", (o ? " layui-radio-disbaled " + c : "") + '">', '<i class="layui-anim layui-icon">' + i[l.checked ? 0 : 1] + "</i>", "<div>" + function () {
var e = l.title || "";
return "string" == typeof r.next().attr("lay-radio") && (e = r.next().html(), r.next().remove()), e
}() + "</div>", "</div>"].join(""));
r.after(u), n.call(this, u)
})
}
};
return e ? d[e] ? d[e]() : a.error("不支持的" + e + "表单渲染") : layui.each(d, function (e, t) {
t()
}), n
};
var d = function () {
var e = null, a = f.config.verify, s = "layui-form-danger", o = {}, c = t(this), u = c.parents(r),
d = u.find("*[lay-verify]"), v = c.parents("form")[0], h = c.attr("lay-filter");
return layui.each(d, function (l, r) {
var o = t(this), c = o.attr("lay-verify").split("|"), u = o.attr("lay-verType"), d = o.val();
if (o.removeClass(s), layui.each(c, function (t, l) {
var c, f = "", v = "function" == typeof a[l];
if (a[l]) {
var c = v ? f = a[l](d, r) : !a[l][0].test(d);
if (f = f || a[l][1], "required" === l && (f = o.attr("lay-reqText") || f), c) return "tips" === u ? i.tips(f, function () {
return "string" == typeof o.attr("lay-ignore") || "select" !== r.tagName.toLowerCase() && !/^checkbox|radio$/.test(r.type) ? o : o.next()
}(), {tips: 1}) : "alert" === u ? i.alert(f, {title: "提示", shadeClose: !0}) : i.msg(f, {
icon: 5,
shift: 6
}), n.android || n.ios || setTimeout(function () {
r.focus()
}, 7), o.addClass(s), e = !0
}
}), e) return e
}), !e && (o = f.getValue(null, u), layui.event.call(this, l, "submit(" + h + ")", {
elem: this,
form: v,
field: o
}))
}, f = new u, v = t(document), h = t(window);
f.render(), v.on("reset", r, function () {
var e = t(this).attr("lay-filter");
setTimeout(function () {
f.render(null, e)
}, 50)
}), v.on("submit", r, d).on("click", "*[lay-submit]", d), e(l, f)
});

Some files were not shown because too many files have changed in this diff Show More