first commit
This commit is contained in:
BIN
web/module/.DS_Store
vendored
Normal file
BIN
web/module/.DS_Store
vendored
Normal file
Binary file not shown.
2
web/module/admin.css
Normal file
2
web/module/admin.css
Normal file
File diff suppressed because one or more lines are too long
2
web/module/admin.js
Normal file
2
web/module/admin.js
Normal file
File diff suppressed because one or more lines are too long
5
web/module/contextMenu.js
Normal file
5
web/module/contextMenu.js
Normal file
@ -0,0 +1,5 @@
|
||||
/**
|
||||
* 右键菜单模块
|
||||
* date:2019-02-08 License By http://easyweb.vip
|
||||
*/
|
||||
layui.define(["jquery"],function(a){var c=layui.jquery;var b={bind:function(e,d){c(e).bind("contextmenu",function(f){b.show(d,f.clientX,f.clientY,f);return false})},show:function(f,d,k,h){var g="left: "+d+"px; top: "+k+"px;";var j='<div class="ctxMenu" style="'+g+'">';j+=b.getHtml(f,"");j+=" </div>";b.remove();c("body").append(j);var i=c(".ctxMenu");if(d+i.outerWidth()>b.getPageWidth()){d-=i.outerWidth()}if(k+i.outerHeight()>b.getPageHeight()){k=k-i.outerHeight();if(k<0){k=0}}i.css({"top":k,"left":d});b.setEvents(f,h);c(".ctxMenu-item").on("mouseenter",function(p){p.stopPropagation();c(this).parent().find(".ctxMenu-sub").css("display","none");if(!c(this).hasClass("haveMore")){return}var l=c(this).find(">a");var m=c(this).find(">.ctxMenu-sub");var o=l.offset().top-c("body,html").scrollTop();var n=l.offset().left+l.outerWidth()-c("body,html").scrollLeft();if(n+m.outerWidth()>b.getPageWidth()){n=l.offset().left-m.outerWidth()}if(o+m.outerHeight()>b.getPageHeight()){o=o-m.outerHeight()+l.outerHeight();if(o<0){o=0}}c(this).find(">.ctxMenu-sub").css({"top":o,"left":n,"display":"block"})})},remove:function(){var h=parent.window.frames;for(var d=0;d<h.length;d++){var f=h[d];try{f.layui.jquery("body>.ctxMenu").remove()}catch(g){}}try{parent.layui.jquery("body>.ctxMenu").remove()}catch(g){}},setEvents:function(d,f){c(".ctxMenu").off("click").on("click","[lay-id]",function(h){var i=c(this).attr("lay-id");var g=e(i,d);g.click&&g.click(h,f)});function e(l,k){for(var j=0;j<k.length;j++){var h=k[j];if(l==h.itemId){return h}else{if(h.subs&&h.subs.length>0){var g=e(l,h.subs);if(g){return g}}}}}},getHtml:function(e,d){var h="";for(var f=0;f<e.length;f++){var g=e[f];g.itemId="ctxMenu-"+d+f;if(g.subs&&g.subs.length>0){h+='<div class="ctxMenu-item haveMore" lay-id="'+g.itemId+'">';h+="<a>";if(g.icon){h+='<i class="'+g.icon+' ctx-icon"></i>'}h+=g.name;h+='<i class="layui-icon layui-icon-right icon-more"></i>';h+="</a>";h+='<div class="ctxMenu-sub" style="display: none;">';h+=b.getHtml(g.subs,d+f);h+="</div>"}else{h+='<div class="ctxMenu-item" lay-id="'+g.itemId+'">';h+="<a>";if(g.icon){h+='<i class="'+g.icon+' ctx-icon"></i>'}h+=g.name;h+="</a>"}h+="</div>";if(g.hr==true){h+="<hr/>"}}return h},getCommonCss:function(){var d=".ctxMenu, .ctxMenu-sub {";d+=" max-width: 250px;";d+=" min-width: 110px;";d+=" background: white;";d+=" border-radius: 2px;";d+=" padding: 5px 0;";d+=" white-space: nowrap;";d+=" position: fixed;";d+=" z-index: 2147483647;";d+=" box-shadow: 0 2px 4px rgba(0, 0, 0, .12);";d+=" border: 1px solid #d2d2d2;";d+=" overflow: visible;";d+=" }";d+=" .ctxMenu-item {";d+=" position: relative;";d+=" }";d+=" .ctxMenu-item > a {";d+=" font-size: 14px;";d+=" color: #666;";d+=" padding: 0 26px 0 35px;";d+=" cursor: pointer;";d+=" display: block;";d+=" line-height: 36px;";d+=" text-decoration: none;";d+=" position: relative;";d+=" }";d+=" .ctxMenu-item > a:hover {";d+=" background: #f2f2f2;";d+=" color: #666;";d+=" }";d+=" .ctxMenu-item > a > .icon-more {";d+=" position: absolute;";d+=" right: 5px;";d+=" top: 0;";d+=" font-size: 12px;";d+=" color: #666;";d+=" }";d+=" .ctxMenu-item > a > .ctx-icon {";d+=" position: absolute;";d+=" left: 12px;";d+=" top: 0;";d+=" font-size: 15px;";d+=" color: #666;";d+=" }";d+=" .ctxMenu hr {";d+=" background-color: #e6e6e6;";d+=" clear: both;";d+=" margin: 5px 0;";d+=" border: 0;";d+=" height: 1px;";d+=" }";d+=" .ctx-ic-lg {";d+=" font-size: 18px !important;";d+=" left: 11px !important;";d+=" }";return d},getPageHeight:function(){return document.documentElement.clientHeight||document.body.clientHeight},getPageWidth:function(){return document.documentElement.clientWidth||document.body.clientWidth},};c(document).off("click.ctxMenu").on("click.ctxMenu",function(){b.remove()});c(document).off("click.ctxMenuMore").on("click.ctxMenuMore",".ctxMenu-item",function(d){if(c(this).hasClass("haveMore")){if(d!==void 0){d.preventDefault();d.stopPropagation()}}else{b.remove()}});c("head").append('<style id="ew-css-ctx">'+b.getCommonCss()+"</style>");a("contextMenu",b)});
|
||||
5
web/module/dropdown/dropdown.css
Normal file
5
web/module/dropdown/dropdown.css
Normal file
File diff suppressed because one or more lines are too long
5
web/module/dropdown/dropdown.js
Normal file
5
web/module/dropdown/dropdown.js
Normal file
@ -0,0 +1,5 @@
|
||||
/**
|
||||
* 下拉菜单模块
|
||||
* date:2020-03-11 License By http://easyweb.vip
|
||||
*/
|
||||
layui.define(["jquery"],function(f){var h=layui.jquery;var i="dropdown-open";var e="dropdown-disabled";var b="dropdown-no-scroll";var c="dropdown-menu-shade";var n="dropdown-menu";var m="dropdown-menu-nav";var j="dropdown-hover";var d="fixed";var g="no-shade";var k="layui-anim layui-anim-upbit";var a="layui-anim layui-anim-fadein";var l=["bottom-left","bottom-right","bottom-center","top-left","top-right","top-center","left-top","left-bottom","left-center","right-top","right-bottom","right-center"];if(h("#ew-css-dropdown").length<=0){layui.link(layui.cache.base+"dropdown/dropdown.css")}var o={init:function(){h(document).off("click.dropdown").on("click.dropdown","."+n+">*:first-child",function(t){var u=h(this).parent();if(!u.hasClass(j)){if(u.hasClass(i)){u.removeClass(i)}else{o.hideAll();o.show(h(this).parent().find("."+m))}}t.stopPropagation()});h(document).off("click.dropHide").on("click.dropHide",function(t){o.hideAll()});h(document).off("click.dropNav").on("click.dropNav","."+m,function(t){t.stopPropagation()});var s,p,q="."+n+"."+j;h(document).off("mouseenter.dropdown").on("mouseenter.dropdown",q,function(t){if(p&&p==t.currentTarget){clearTimeout(s)}o.show(h(this).find("."+m))});h(document).off("mouseleave.dropdown").on("mouseleave.dropdown",q,function(t){p=t.currentTarget;s=setTimeout(function(){h(t.currentTarget).removeClass(i)},300)});h(document).off("click.dropStand").on("click.dropStand","[data-dropdown]",function(t){o.showFixed(h(this));t.stopPropagation()});var r="."+n+" ."+m+" li";h(document).off("mouseenter.dropdownNav").on("mouseenter.dropdownNav",r,function(t){h(this).children(".dropdown-menu-nav-child").addClass(k);h(this).addClass("active")});h(document).off("mouseleave.dropdownNav").on("mouseleave.dropdownNav",r,function(t){h(this).removeClass("active");h(this).find("li.active").removeClass("active")});h(document).off("click.popconfirm").on("click.popconfirm",".dropdown-menu-nav [btn-cancel]",function(t){o.hideAll();t.stopPropagation()})},openClickNavClose:function(){h(document).off("click.dropNavA").on("click.dropNavA","."+m+">li>a",function(p){o.hideAll();h(this).parentsUntil("."+n).last().parent().removeClass(i);p.stopPropagation()})},hideAll:function(){h("."+n).removeClass(i);h("."+m+"."+d).addClass("layui-hide");h("."+c).remove();h("body").removeClass(b);h(".dropdown-fix-parent").removeClass("dropdown-fix-parent");h("[data-dropdown]").removeClass(i)},show:function(r){if(r&&r.length>0&&!r.hasClass(e)){if(r.hasClass("dropdown-popconfirm")){r.removeClass(k);r.addClass(a)}else{r.removeClass(a);r.addClass(k)}var p;for(var q=0;q<l.length;q++){if(r.hasClass("dropdown-"+l[q])){p=l[q];break}}if(!p){r.addClass("dropdown-"+l[0]);p=l[0]}o.forCenter(r,p);r.parent("."+n).addClass(i);return p}return false},showFixed:function(q){var t=h(q.data("dropdown")),p;if(!t.hasClass("layui-hide")){o.hideAll();return}o.hideAll();p=o.show(t);if(p){t.addClass(d);t.removeClass("layui-hide");var s=o.getTopLeft(q,t,p);s=o.checkPosition(t,q,p,s);t.css(s);h("body").addClass(b);var r=(q.attr("no-shade")=="true");h("body").append('<div class="'+(r?(c+" "+g):c)+' layui-anim layui-anim-fadein"></div>');q.parentsUntil("body").each(function(){var u=h(this).css("z-index");if(/[0-9]+/.test(u)){h(this).addClass("dropdown-fix-parent")}});q.addClass(i)}},forCenter:function(p,u){if(!p.hasClass(d)){var t=p.parent().outerWidth(),q=p.parent().outerHeight();var s=p.outerWidth(),v=p.outerHeight();var w=u.split("-"),r=w[0],x=w[1];if((r=="top"||r=="bottom")&&x=="center"){p.css("left",(t-s)/2)}if((r=="left"||r=="right")&&x=="center"){p.css("top",(q-v)/2)}}},getTopLeft:function(B,A,y){var w=B.outerWidth();var u=B.outerHeight();var p=A.outerWidth();var x=A.outerHeight();var z=B.offset().top-h(document).scrollTop();var t=B.offset().left;var D=t+w;var C=0,s=0;var v=y.split("-");var r=v[0];var q=v[1];if(r=="top"||r=="bottom"){x+=8;switch(q){case"left":s=t;break;case"center":s=t-p/2+w/2;break;case"right":s=D-p}}if(r=="left"||r=="right"){p+=8;switch(q){case"top":C=z+u-x;break;case"center":C=z-x/2+u/2;break;case"bottom":C=z}}switch(r){case"top":C=z-x;break;case"right":s=t+w;break;case"bottom":C=z+u;break;case"left":s=t-p}return{top:C,left:s,right:"auto",bottom:"auto"}},checkPosition:function(t,q,p,r){var s=p.split("-");if("bottom"==s[0]){if((r.top+t.outerHeight())>o.getPageHeight()){r=o.getTopLeft(q,t,"top-"+s[1]);t.removeClass("dropdown-"+p);t.addClass("dropdown-top-"+s[1])}}else{if("top"==s[0]){if(r.top<0){r=o.getTopLeft(q,t,"bottom-"+s[1]);t.removeClass("dropdown-"+p);t.addClass("dropdown-bottom-"+s[1])}}}return r},getPageHeight:function(){return document.documentElement.clientHeight||document.body.clientHeight},getPageWidth:function(){return document.documentElement.clientWidth||document.body.clientWidth}};o.init();f("dropdown",o)});
|
||||
5
web/module/formX.js
Normal file
5
web/module/formX.js
Normal file
@ -0,0 +1,5 @@
|
||||
/**
|
||||
* 表单扩展模块
|
||||
* date:2020-03-11 License By http://easyweb.vip
|
||||
*/
|
||||
layui.define(["form"],function(b){var e=layui.jquery;var c=layui.form;var a={phoneX:"请输入正确的手机号",emailX:"邮箱格式不正确",urlX:"链接格式不正确",numberX:"只能填写数字",dateX:"日期格式不正确",identityX:"请输入正确的身份证号",psw:"密码必须5到12位,且不能出现空格",equalTo:"两次输入不一致",digits:"只能输入整数",digitsP:"只能输入正整数",digitsN:"只能输入负整数",digitsPZ:"只能输入正整数和0",digitsNZ:"只能输入负整数和0",minlength:"最少输入{minlength}个字符",maxlength:"最多输入{maxlength}个字符",min:"值不能小于{min}",max:"值不能小于{max}"};var f={phoneX:function(i,h){var g=/^1\d{10}$/;if(i&&!g.test(i)){return a.phoneX}},emailX:function(i,h){var g=/^([a-zA-Z0-9_\.\-])+\@(([a-zA-Z0-9\-])+\.)+([a-zA-Z0-9]{2,4})+$/;if(i&&!g.test(i)){return a.emailX}},urlX:function(i,h){var g=/(^#)|(^http(s*):\/\/[^\s]+\.[^\s]+)/;if(i&&!g.test(i)){return a.urlX}},numberX:function(h,g){if(h&&isNaN(h)){return a.numberX}},dateX:function(i,h){var g=/^(\d{4})[-\/](\d{1}|0\d{1}|1[0-2])([-\/](\d{1}|0\d{1}|[1-2][0-9]|3[0-1]))*$/;if(i&&!g.test(i)){return a.dateX}},identityX:function(i,h){var g=/(^\d{15}$)|(^\d{17}(x|X|\d)$)/;if(i&&!g.test(i)){return a.identityX}},psw:function(h,g){if(h&&!/^[\S]{5,12}$/.test(h)){return a.psw}},equalTo:function(h,g){if(h!=e(e(g).attr("lay-equalTo")).val()){var i=e(g).attr("lay-equalToText");return i?i:a.equalTo}},digits:function(i,h){var g=/^-?\d+$/;if(i&&!g.test(i)){return a.digits}},digitsP:function(i,h){var g=/^[1-9]\d*$/;if(i&&!g.test(i)){return a.digitsP}},digitsN:function(i,h){var g=/^-[1-9]\d*$/;if(i&&!g.test(i)){return a.digitsN}},digitsPZ:function(i,h){var g=/^\d+$/;if(i&&!g.test(i)){return a.digitsPZ}},digitsNZ:function(i,h){var g=/^-[1-9]\d*|0/;if(i&&!g.test(i)){return a.digitsNZ}},h5:function(l,k){if(l){var j=e(k).attr("minlength");var i=e(k).attr("maxlength");var h=e(k).attr("min");var g=e(k).attr("max");if(j&&l.length<j){return a.minlength.replace(/{minlength}/g,j)}if(i&&l.length>i){return a.maxlength.replace(/{maxlength}/g,i)}if(h&&l*1<h*1){return a.min.replace(/{min}/g,h)}if(g&&l*1>g*1){return a.max.replace(/{max}/g,g)}}}};var d={init:function(){c.verify(f)},formVal:function(h,g){d.val(h,g)},val:function(h,g){e('.layui-form[lay-filter="'+h+'"]').each(function(){var j=e(this);for(var l in g){if(!g.hasOwnProperty(l)){continue}var i=j.find('[name="'+l+'"]');if(i.length>0){var k=i[0].type;if(k==="checkbox"){i[0].checked=g[l]}else{if(k==="radio"){i.each(function(){if(this.value==g[l]){this.checked=true}})}else{i.val(g[l])}}}}});c.render(null,h)},renderSelect:function(l){var h={elem:undefined,data:[],name:undefined,value:undefined,hint:"请选择",initValue:undefined,method:"get",where:undefined,header:undefined,async:true,done:undefined,error:undefined};l=e.extend(h,l);if(typeof l.data==="string"){e.ajax({url:l.data,type:l.method,data:l.where,dataType:"json",header:l.header,async:l.async,success:function(i,m,n){if(i.data){l.data=i.data;d.renderSelect(l)}else{l.error&&l.error(n,i)}},error:l.error})}else{var k=l.hint?('<option value="">'+l.hint+"</option>"):"";for(var j=0;j<l.data.length;j++){if(l.name&&l.value){k+=('<option value="'+l.data[j][l.value]+'"'+(l.data[j][l.value]===l.initValue?" selected":"")+">"+l.data[j][l.name]+"</option>")}else{k+=('<option value="'+l.data[j]+'"'+(l.data[j]===l.initValue?" selected":"")+">"+l.data[j]+"</option>")}}e(l.elem).html(k);var g=e(l.elem).parent(".layui-form");if(g.length===0){g=e(l.elem).parentsUntil(".layui-form").last().parent()}c.render("select",g.attr("lay-filter"));l.done&&l.done(l.data)}},startTimer:function(g,j,i){if(!j){j=60}if(!i){i=function(l){return l+"s"}}if(d.timers[g]){clearInterval(d.timers[g])}var h=e(g).html();e(g).html(i(j));e(g).attr("disabled","disabled");e(g).addClass("layui-btn-disabled");var k=setInterval(function(){j--;if(j<=0){clearInterval(k);e(g).html(h);e(g).removeAttr("disabled");e(g).removeClass("layui-btn-disabled")}else{e(g).html(i(j))}},1000);d.timers[g]=k},timers:{},formUpdatedField:function(i,h){if(typeof i=="string"){i=c.val(i)}for(var g in i){if(!i.hasOwnProperty(g)){continue}if(i[g]===h[g]){delete i[g]}}if(Object.keys(i).length>0){return i}}};d.init();b("formX",d)});
|
||||
2
web/module/index.js
Normal file
2
web/module/index.js
Normal file
File diff suppressed because one or more lines are too long
1933
web/module/notice/notice.css
Normal file
1933
web/module/notice/notice.css
Normal file
File diff suppressed because it is too large
Load Diff
1245
web/module/notice/notice.js
Normal file
1245
web/module/notice/notice.js
Normal file
File diff suppressed because it is too large
Load Diff
400
web/module/treeTable/treeTable.css
Normal file
400
web/module/treeTable/treeTable.css
Normal file
@ -0,0 +1,400 @@
|
||||
/**
|
||||
* æ ‘å½¢è¡¨æ ¼ 2.x
|
||||
* date:2019-11-08 License By http://easyweb.vip
|
||||
*/
|
||||
/* 最外层容器 */
|
||||
.ew-tree-table {
|
||||
margin: 10px 0;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.ew-tree-table .layui-table {
|
||||
margin: 0;
|
||||
table-layout: fixed;
|
||||
}
|
||||
|
||||
/* è¡¨æ ¼å®¹å™¨ */
|
||||
.ew-tree-table-group {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
/* ä¸»ä½“è¡¨æ ¼å®¹å™¨ */
|
||||
.ew-tree-table > .ew-tree-table-group > .ew-tree-table-box {
|
||||
overflow: auto;
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
}
|
||||
|
||||
/* è¡¨å¤´è¡¨æ ¼å®¹å™¨ */
|
||||
.ew-tree-table > .ew-tree-table-group > .ew-tree-table-head {
|
||||
overflow: hidden;
|
||||
position: relative;
|
||||
box-sizing: border-box;
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
|
||||
/* å®¹å™¨åŠ è¾¹æ¡† */
|
||||
.ew-tree-table .ew-tree-table-border {
|
||||
position: absolute;
|
||||
background-color: #e6e6e6;
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-table-border.top {
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
height: 1px;
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-table-border.left {
|
||||
top: 0;
|
||||
left: 0;
|
||||
bottom: 0;
|
||||
width: 1px;
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-table-border.right {
|
||||
top: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
width: 0.52px;
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-table-border.bottom {
|
||||
left: 0;
|
||||
right: 0;
|
||||
bottom: 0;
|
||||
height: 0.52px;
|
||||
}
|
||||
|
||||
/* table的loading */
|
||||
.ew-tree-table .ew-tree-table-box > .ew-tree-table-loading {
|
||||
padding: 10px 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-table-box > .ew-tree-table-loading > i {
|
||||
color: #999;
|
||||
font-size: 30px;
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-table-box > .ew-tree-table-loading.ew-loading-float {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
right: 0;
|
||||
top: 0;
|
||||
}
|
||||
|
||||
/* ç©ºæ•°æ®æç¤º */
|
||||
.ew-tree-table .ew-tree-table-box > .ew-tree-table-empty {
|
||||
color: #666;
|
||||
font-size: 14px;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* 折å ç®å¤´ */
|
||||
.ew-tree-table .ew-tree-table-arrow {
|
||||
margin-right: 5px;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-table-arrow:before {
|
||||
content: "\e623";
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-table-open .ew-tree-table-arrow:before {
|
||||
content: "\e625";
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-table-arrow.arrow2 {
|
||||
font-size: 13px;
|
||||
font-weight: 600;
|
||||
line-height: 16px;
|
||||
height: 16px;
|
||||
width: 16px;
|
||||
display: inline-block;
|
||||
text-align: center;
|
||||
color: #888;
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-table-arrow.arrow2:before {
|
||||
content: "\e602";
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-table-open .ew-tree-table-arrow.arrow2:before {
|
||||
content: "\e61a";
|
||||
}
|
||||
|
||||
/* ç®å¤´éšè— */
|
||||
.ew-tree-table-arrow.ew-tree-table-arrow-hide {
|
||||
visibility: hidden;
|
||||
}
|
||||
|
||||
/* ç®å¤´å˜åŠ è½½ä¸çŠ¶æ€ */
|
||||
.ew-tree-table .ew-tree-table-loading > td .ew-tree-pack > .ew-tree-table-arrow:before {
|
||||
content: "\e63d" !important;
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-table-loading > td .ew-tree-pack > .ew-tree-table-arrow {
|
||||
margin-right: 0;
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-table-loading > td .ew-tree-pack > .ew-tree-table-arrow + * {
|
||||
margin-left: 5px;
|
||||
}
|
||||
|
||||
/* tråŠ è½½ä¸ç¦ç”¨äº‹ä»¶ */
|
||||
.ew-tree-table tr.ew-tree-table-loading > * {
|
||||
pointer-events: none !important;
|
||||
}
|
||||
|
||||
/* å›¾æ ‡åˆ— */
|
||||
.ew-tree-table .ew-tree-pack {
|
||||
cursor: pointer;
|
||||
line-height: 16px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-pack > span {
|
||||
height: 16px;
|
||||
line-height: 16px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
/* 折å 行 */
|
||||
.ew-tree-table .ew-tree-tb-hide {
|
||||
display: none;
|
||||
}
|
||||
|
||||
/* 缩进 */
|
||||
.ew-tree-table .ew-tree-table-indent {
|
||||
margin-right: 5px;
|
||||
padding-left: 16px;
|
||||
}
|
||||
|
||||
/* å›¾æ ‡ */
|
||||
.ew-tree-table .ew-tree-icon {
|
||||
margin-right: 5px;
|
||||
display: inline-block;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-icon-folder, .ew-tree-table .ew-tree-icon-file {
|
||||
width: 22px;
|
||||
height: 16px;
|
||||
line-height: 16px;
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-icon-folder:after, .ew-tree-table .ew-tree-icon-file:after {
|
||||
content: "";
|
||||
width: 22px;
|
||||
height: 22px;
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: -3px;
|
||||
background-size: cover;
|
||||
background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTc0MDYyMzE3MTQ3IiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjIxNTgiIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTE4MSA4MjNoLTMxLjFjLTI4LjYgMC01MS45LTIzLjItNTEuOS01MS45VjI1Mi40YzAtMjguNiAyMy4yLTUxLjkgNTEuOS01MS45SDQzMGw4MyA3Ny44aDMzMmM0NS42IDAgODMgMzUgODMgNzcuOHYzODkuMWMwIDQyLjgtMzcuMyA3Ny44LTgzIDc3LjhIMTgxeiIgcC1pZD0iMjE1OSIgZmlsbD0iI0ZGQTUwMCI+PC9wYXRoPjwvc3ZnPg==")
|
||||
}
|
||||
|
||||
.ew-tree-table tr.ew-tree-table-open > td > .ew-tree-pack .ew-tree-icon-folder:after {
|
||||
background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTc0MDYyMzA5MDQwIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjE5NzciIHhtbG5zOnhsaW5rPSJodHRwOi8vd3d3LnczLm9yZy8xOTk5L3hsaW5rIiB3aWR0aD0iNjQiIGhlaWdodD0iNjQiPjxkZWZzPjxzdHlsZSB0eXBlPSJ0ZXh0L2NzcyI+PC9zdHlsZT48L2RlZnM+PHBhdGggZD0iTTMyNi40IDQ2MC4xSDkyOGwtODIuMyAzMjRjLTUuOCAyMy0yNi42IDM5LjEtNTAuMyAzOS4xSDE0OS45Yy0yOC42IDAtNTEuOS0yMy4yLTUxLjktNTEuOVYyNTIuNmMwLTI4LjYgMjMuMi01MS45IDUxLjktNTEuOUg0MTNsMTA1IDEwMy43aDI5MS44YzE0LjMgMCAyNS45IDExLjYgMjUuOSAyNS45djc3LjhoLTUyN0wyMDMuNCA1NjMuOWg1Mi43bDcwLjMtMTAzLjh6IiBwLWlkPSIxOTc4IiBmaWxsPSIjRkZBNTAwIj48L3BhdGg+PC9zdmc+")
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-icon-file:after {
|
||||
background-image: url("data:image/svg+xml;base64,PD94bWwgdmVyc2lvbj0iMS4wIiBzdGFuZGFsb25lPSJubyI/PjwhRE9DVFlQRSBzdmcgUFVCTElDICItLy9XM0MvL0RURCBTVkcgMS4xLy9FTiIgImh0dHA6Ly93d3cudzMub3JnL0dyYXBoaWNzL1NWRy8xLjEvRFREL3N2ZzExLmR0ZCI+PHN2ZyB0PSIxNTc0MDYyNTE1MDUxIiBjbGFzcz0iaWNvbiIgdmlld0JveD0iMCAwIDEwMjQgMTAyNCIgdmVyc2lvbj0iMS4xIiB4bWxucz0iaHR0cDovL3d3dy53My5vcmcvMjAwMC9zdmciIHAtaWQ9IjEzNTE4IiB4bWxuczp4bGluaz0iaHR0cDovL3d3dy53My5vcmcvMTk5OS94bGluayIgd2lkdGg9IjY0IiBoZWlnaHQ9IjY0Ij48ZGVmcz48c3R5bGUgdHlwZT0idGV4dC9jc3MiPjwvc3R5bGU+PC9kZWZzPjxwYXRoIGQ9Ik03NDEuMyAxNjEuNmgtNDIuNGMtMTAuNSAwLTE5LjEgOC42LTE5LjEgMTkuMXM4LjYgMTkuMSAxOS4xIDE5LjFoNDIuNGM0MiAwIDc2LjIgMzQuMiA3Ni4yIDc2LjN2NDc3LjRjMCA0Mi4xLTM0LjMgNzYuMy03Ni40IDc2LjNIMjgyLjljLTQyLjEgMC03Ni4zLTM0LjItNzYuMy03Ni4zVjI3Ni4xYzAtNDIuMSAzNC4yLTc2LjMgNzYuMy03Ni4zaDQ0LjljMTAuNSAwIDE5LjEtOC42IDE5LjEtMTkuMXMtOC42LTE5LjEtMTkuMS0xOS4xaC00NC45Yy02My4xIDAtMTE0LjUgNTEuNC0xMTQuNSAxMTQuNXY0NzcuNGMwIDYzLjEgNTEuNCAxMTQuNSAxMTQuNSAxMTQuNWg0NTguM2M2My4xIDAgMTE0LjUtNTEuNCAxMTQuNS0xMTQuNVYyNzYuMWMtMC4xLTYzLjEtNTEuNC0xMTQuNS0xMTQuNC0xMTQuNXoiIHAtaWQ9IjEzNTE5IiBmaWxsPSIjRkZBNTAwIj48L3BhdGg+PHBhdGggZD0iTTY4MC42IDUwNS4zSDM0My40Yy0xMi4zIDAtMjIuMyA4LjYtMjIuMyAxOS4xczEwIDE5LjEgMjIuMyAxOS4xaDMzNy4yYzEyLjMgMCAyMi4zLTguNiAyMi4zLTE5LjEgMC0xMC42LTEwLTE5LjEtMjIuMy0xOS4xek00MzkuMyAyMTMuM2gxNDQuNmMxOSAwIDM0LjQtMTIuOCAzNC40LTI4LjZzLTE1LjQtMjguNi0zNC40LTI4LjZINDM5LjNjLTE5IDAtMzQuNCAxMi44LTM0LjQgMjguNi0wLjEgMTUuNyAxNS4zIDI4LjYgMzQuNCAyOC42ek02ODAuNiA2NThIMzQzLjRjLTEyLjMgMC0yMi4zIDguNS0yMi4zIDE5LjEgMCAxMC41IDEwIDE5LjEgMjIuMyAxOS4xaDMzNy4yYzEyLjMgMCAyMi4zLTguNiAyMi4zLTE5LjEgMC0xMC42LTEwLTE5LjEtMjIuMy0xOS4xek02ODAuNiAzNTIuNUgzNDMuNGMtMTIuMyAwLTIyLjMgOC42LTIyLjMgMTkuMXMxMCAxOS4xIDIyLjMgMTkuMWgzMzcuMmMxMi4zIDAgMjIuMy04LjYgMjIuMy0xOS4xIDAtMTAuNS0xMC0xOS4xLTIyLjMtMTkuMXoiIHAtaWQ9IjEzNTIwIiBmaWxsPSIjRkZBNTAwIj48L3BhdGg+PC9zdmc+")
|
||||
}
|
||||
|
||||
/* åºå·åˆ—调整 */
|
||||
.ew-tree-table td[data-type="numbers"] {
|
||||
padding-left: 0;
|
||||
padding-right: 0;
|
||||
text-align: center;
|
||||
}
|
||||
|
||||
/* å•å…ƒæ ¼å†…è¡¨å•å…ƒç´ æ ·å¼è°ƒæ•´ */
|
||||
.ew-tree-table .layui-form-switch {
|
||||
margin-top: 0;
|
||||
}
|
||||
|
||||
.ew-tree-table .layui-form-radio {
|
||||
margin: 0;
|
||||
}
|
||||
|
||||
/* checkbox和radio列调整 */
|
||||
.ew-tree-table-checkbox + .layui-form-checkbox {
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
.ew-tree-table-checkbox + .layui-form-checkbox > .layui-icon {
|
||||
color: transparent;
|
||||
transition: background-color .1s linear;
|
||||
}
|
||||
|
||||
.ew-tree-table-checkbox + .layui-form-checkbox.layui-form-checked > .layui-icon {
|
||||
color: #fff;
|
||||
}
|
||||
|
||||
.ew-tree-table-radio + .layui-form-radio {
|
||||
padding: 0;
|
||||
height: 20px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
.ew-tree-table-radio + .layui-form-radio > i {
|
||||
margin: 0;
|
||||
height: 20px;
|
||||
font-size: 20px;
|
||||
line-height: 20px;
|
||||
}
|
||||
|
||||
/* checkboxåŠé€‰çŠ¶æ€ */
|
||||
.ew-tree-table .layui-form-checked.ew-form-indeterminate > .layui-icon:before {
|
||||
content: "";
|
||||
width: 9px;
|
||||
height: 2px;
|
||||
display: inline-block;
|
||||
background-color: #eee;
|
||||
vertical-align: middle;
|
||||
}
|
||||
|
||||
.ew-tree-table .layui-form-checked.ew-form-indeterminate > .layui-icon {
|
||||
line-height: 14px;
|
||||
}
|
||||
|
||||
/* å•å…ƒæ ¼ç¼–è¾‘ */
|
||||
.ew-tree-table .layui-table td[data-edit] {
|
||||
cursor: text;
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-table-edit {
|
||||
position: absolute;
|
||||
left: 0;
|
||||
top: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
border-radius: 0;
|
||||
box-shadow: 1px 1px 20px rgba(0, 0, 0, .15);
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-table-edit:focus {
|
||||
border-color: #5FB878 !important;
|
||||
}
|
||||
|
||||
.ew-tree-table .ew-tree-table-edit.layui-form-danger {
|
||||
border-color: #FF5722 !important;
|
||||
}
|
||||
|
||||
/* æœç´¢æ•°æ®éšè—行 */
|
||||
.ew-tree-table tr.ew-tree-table-filter-hide {
|
||||
display: none !important;
|
||||
}
|
||||
|
||||
/* å•å…ƒæ ¼è¶…å‡ºéšè— */
|
||||
.ew-tree-table-td-single {
|
||||
position: relative;
|
||||
}
|
||||
|
||||
.ew-tree-table-td-single > .ew-tree-tips {
|
||||
overflow: hidden;
|
||||
white-space: nowrap;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
|
||||
.ew-tree-table-td-single > .ew-tree-tips-c {
|
||||
position: absolute;
|
||||
right: -10px;
|
||||
top: -6px;
|
||||
width: 24px;
|
||||
height: 24px;
|
||||
line-height: 24px;
|
||||
font-size: 18px;
|
||||
text-align: center;
|
||||
color: #fff;
|
||||
border-radius: 50%;
|
||||
background-color: #666;
|
||||
cursor: pointer;
|
||||
display: none;
|
||||
}
|
||||
|
||||
.ew-tree-table table tr:first-child .ew-tree-table-td-single > .ew-tree-tips-c {
|
||||
top: 2px;
|
||||
bottom: auto;
|
||||
right: -12px;
|
||||
}
|
||||
|
||||
.ew-tree-table-td-single.ew-tree-tips-open {
|
||||
position: absolute;
|
||||
top: 0;
|
||||
left: 0;
|
||||
z-index: 5;
|
||||
background-color: #fff;
|
||||
min-height: 100%;
|
||||
box-sizing: border-box;
|
||||
box-shadow: 3px 3px 8px rgba(0, 0, 0, .15);
|
||||
}
|
||||
|
||||
.ew-tree-table table thead .ew-tree-table-td-single.ew-tree-tips-open {
|
||||
background-color: #f2f2f2;
|
||||
}
|
||||
|
||||
.ew-tree-table-td-single.ew-tree-tips-open.ew-show-left {
|
||||
right: 0;
|
||||
left: auto;
|
||||
box-shadow: -3px 3px 8px rgba(0, 0, 0, .15);
|
||||
}
|
||||
|
||||
.ew-tree-table-td-single.ew-tree-tips-open.ew-show-bottom {
|
||||
bottom: 0;
|
||||
top: auto;
|
||||
box-shadow: 3px -3px 8px rgba(0, 0, 0, .15);
|
||||
}
|
||||
|
||||
.ew-tree-table-td-single.ew-tree-tips-open.ew-show-left.ew-show-bottom {
|
||||
box-shadow: -3px -3px 8px rgba(0, 0, 0, .15);
|
||||
}
|
||||
|
||||
.ew-tree-table-td-single.ew-tree-tips-open > .ew-tree-tips {
|
||||
padding: 9px 15px;
|
||||
overflow: auto;
|
||||
max-width: 280px;
|
||||
max-height: 100px;
|
||||
width: max-content;
|
||||
white-space: normal;
|
||||
}
|
||||
|
||||
.ew-tree-table-td-single.ew-tree-tips-open > .ew-tree-tips-c {
|
||||
display: block;
|
||||
}
|
||||
|
||||
.ew-tree-table-td-single.ew-tree-tips-open.ew-show-left > .ew-tree-tips-c {
|
||||
left: -10px;
|
||||
right: auto !important;
|
||||
}
|
||||
|
||||
.ew-tree-table td > .layui-table-grid-down {
|
||||
bottom: 0;
|
||||
height: auto;
|
||||
}
|
||||
|
||||
/* è¾…åŠ©æ ·å¼ */
|
||||
.pd-tb-0 {
|
||||
padding-top: 0 !important;
|
||||
padding-bottom: 0 !important;
|
||||
}
|
||||
|
||||
.break-all {
|
||||
word-break: break-all !important;
|
||||
}
|
||||
|
||||
/* 列宽拖拽调整 */
|
||||
/*.ew-tree-table .ew-tb-resize {
|
||||
position: absolute;
|
||||
right: 0;
|
||||
top: 0;
|
||||
bottom: 0;
|
||||
width: 10px;
|
||||
cursor: col-resize;
|
||||
}*/
|
||||
1494
web/module/treeTable/treeTable.js
Normal file
1494
web/module/treeTable/treeTable.js
Normal file
File diff suppressed because it is too large
Load Diff
8
web/module/xmSelect.js
Normal file
8
web/module/xmSelect.js
Normal file
File diff suppressed because one or more lines are too long
Reference in New Issue
Block a user