-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathjquery.min.easyUtil.drag.tag-ul.js
1 lines (1 loc) · 5.26 KB
/
jquery.min.easyUtil.drag.tag-ul.js
1
eval(function(p,a,c,k,e,d){e=function(c){return(c<a?"":e(parseInt(c/a)))+((c=c%a)>35?String.fromCharCode(c+29):c.toString(36))};if(!''.replace(/^/,String)){while(c--)d[e(c)]=k[c]||e(c);k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1;};while(c--)if(k[c])p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c]);return p;}(';(7($){3 1n=7(O){5.K={1q:\'\',c:{h:\'\',j:\'\',},6:{h:\'\',j:\'\',N:d,t:[],I:[],},b:{A:\'\',S:\'\',Z:\'\',T:u,},s:{1i:7(){},1j:7(){},1d:7(){},},p:E,};5.9=$.R({},5.K,O);5.9.c=$.R({},5.K.c,O.c);5.9.6=$.R({},5.K.6,O.6);5.9.b=$.R({},5.K.b,O.b);5.9.s=$.R({},5.K.s,O.s);4(5.9.p){$.V(5.9,"1P")}};1n.1M={1x:7(){3 2={C:5.9.1q,c:{h:5.9.c.h,j:5.9.c.j,},6:{h:5.9.6.h,j:5.9.6.j,N:5.9.6.N,t:5.9.6.t,I:5.9.6.I,},b:{A:5.9.b.A,S:5.9.b.S,Z:5.9.b.Z,T:5.9.b.T,},s:5.9.s,p:5.9.p,Y:d,19:0,18:0,1s:0,1c:0,8:u,m:u,1y:u,};3 J=1L();3 12=$.22({23:2.6.I,29:{21:\'#\',},p:2.p,});4(J==u){1E("6.1U,1V!");l}Q{1F()};7 1L(){3 M=u;1T(2.6.j){1B\'r\':4(2.p){$.V(\'r\',\'1r\')};M="#"+2.6.h;1m;1B\'1a\':4(2.p){$.V(\'1a\',\'1r\')};M="."+2.6.h;1m;K:4(2.p){$.V(\'1O\',\'1r\')};M=u;1m};4(2.p){$.V(M,\'J\')};l M};7 1F(){$(2.C).1Y(\'1X\',\'1k L\',7(g){2.Y=E;2.8=$(5);1I(g);l d});$(2.C).1Z(7(g){4(!2.Y){l d};1z(g);l d});$(2.C).1W(7(g){4(!2.Y){l d};2.Y=d;1C(g);l d})};7 1I(g){2.m=$(2.8).1v();2.19=$(2.8).k().w;2.18=$(2.8).k().v;3 e=g||1b.g;2.1s=e.D-2.19;2.1c=e.H-2.18;$(2.m).1o({\'1S\':\'28\',\'27-2a\':\'26\',\'w\':2.19,\'v\':2.18,});W=$(2.8).o().1A(2.m);2.m=$(W).B(2.m);$(2.m).1o(\'25\',\'24\');$(2.C+" "+J).10(2.b.S);2.s.1i()};7 1z(g){3 e=g||1b.g;3 x=e.D-2.1s;3 y=e.H-2.1c;3 1u=$(1H).1Q()-$(2.8).1h();3 1p=$(1H).1N()-$(2.8).1g();x=x<0?0:x;x=x>1u?1u:x;y=y<0?0:y;y=y>1p?1p:y;$(2.m).1o({\'w\':x,\'v\':y,});4(2.8.o().q($.f(2.c.j))==$.f(2.c.h)&&2.b.T!=u){$(2.m).10(2.b.T)};$.17($(2.C+\' 1k\'),7(1J,a){3 G=$(a).k().w;3 F=$(a).k().v;3 11=$(a).1h();3 13=$(a).1g();4(e.D>G&&e.D<G-0+11&&e.H>F&&e.H<F-0+13){4(2.6.N){$.17(2.6.I,7(i,n){3 P=$(12[i]).B(\'L\').z;4(2.8.o().q("r")!=u&&2.8.o().q("r")==$.f(n)){P=$(12[i]).B(\'L\').z-1};4(2.6.t.z==1){4($(a).q("r")==$.f(n)&&P==2.6.t[0]){$(2.m).10(2.b.A);l d;}Q{$(2.m).1l(2.b.A)}}Q{4($(a).q("r")==$.f(n)&&P==2.6.t[i]){$(2.m).10(2.b.A);l d;}Q{$(2.m).1l(2.b.A)}}})}}});2.s.1j()};7 1C(g){$(2.m).14();3 P=$(J).B(\'L\').z;3 1t=d;3 e=g||1b.g;3 X=d;$.17($(2.C+\' 1k\'),7(1J,a){3 G=$(a).k().w;3 F=$(a).k().v;3 11=$(a).1h();3 13=$(a).1g();4(e.D>G&&e.D<G-0+11&&e.H>F&&e.H<F-0+13){3 15=d;4(2.6.N){4(e.D>G&&e.D<G-0+11&&e.H>F&&e.H<F-0+13){$.17(2.6.I,7(i,n){4(2.6.t.z==1){4($(a).q("r")==$.f(n)&&$(12[i]).B(\'L\').z==2.6.t[0]){X=E;15=E;l d}}Q{4($(a).q("r")==$.f(n)&&$(12[i]).B(\'L\').z==2.6.t[i]){X=E;15=E;l d}}})}};4(15){l d};4(($(a).k().w!==2.8.o().k().w||$(a).k().v!==2.8.o().k().v)&&$(a).q($.f(2.c.j))!==$.f(2.c.h)){W=$(2.8).1v();3 1w=$(a).1A(W);4(2.8.o().q($.f(2.c.j))!==$.f(2.c.h)){$(2.8).14()};2.1y=$(1w).B(W);1t=E;}Q 4(2.8.o().q($.f(2.c.j))!=$.f(2.c.h)&&($(a).k().w!=2.8.o().k().w||$(a).k().v!=2.8.o().k().v)){$(2.8).14()};X=E;}$(2.C+" "+J).1l(2.b.S).10(2.b.Z)});4(!X&&2.8.o().q($.f(2.c.j))!==$.f(2.c.h)){$(2.8).14()}3 1G=$(J).B(\'L\').z;4(P!=1G||1t){2.s.1d()}}},};$.R({2g:7(1e){4(1e==u){1E("2j!2c");3 1K={1q:\'2b,2d,U,2f‘.1f’\',c:{h:\'2e/1f,U\',j:\'2r:r/1a,U\',},6:{h:\'2u:2t/1f,U\',j:\'2l:r/1a,U\',N:\'2o,2v,2C,2p\',t:[\'2n,1D,2m,2s\'],I:[\'2q,1D,2k,2i,2h\'],},b:{A:\'2w,2E,U\',S:\'2F,2G\',Z:\'2D,2J\',T:\'2H,16\',},s:{1i:"7() {2I,16}",1j:"7() {2y,16}",1d:"7() {2x,16}",},p:\'2B,2A\',};$.V(1K,"2z");l};3 2=20 1n(1e);l 2.1x()}})})(1R);',62,170,'||drag|var|if|this|targetArea|function|old_elm|option|value|CssForDrag|sourceArea|false||trim|event|name||type|offset|return|tmp_elm||parent|isLog|attr|id|callbackFn|limitedMaxNums|null|top|left|||length|limitedClass|find|class_name|pageX|true|box_y|box_x|pageY|limitedIdNames|jqTargetAreaObject|default|li|temp|isLimitedMove|opt|tempNum|else|extend|targetAreaMoveClass|movingTagClass|必填|log|tmp|flag|permitDrag|targetAreaNormalClass|addClass|box_width|jqTargetFieldObjects|box_height|remove|stopMove|选填|each|_0|_1|class|window|_2|mouseupFn|options|className|outerHeight|outerWidth|mousedownFn|mousemoveFn|ul|removeClass|break|Dragman|css|maxT|containerClassName|type类型|_3|changFlag|maxL|clone|newObj|dragThing|new_elm|mousemoveIFn|append|case|mouseupIFn|数组形式|alert|init|tempNum2|document|mousedownIFn|index|example|jqObject|prototype|height|error|Drag输入的参数为|width|jQuery|position|switch|Type属性有误|请修改|mouseup|mousedown|on|mousemove|new|prefix|superConcat|strData|move|cursor|none|background|fixed|models|color|可拖拽区域的类名|请参考控制台参数列表|只能是类名|源区域的idName|格式为|dragUtil|需要一一对应|如果有多个|参数不能为空|可共用一个limitedMaxNums值|目标区域的类型|如果有超过1个值|拖动数量最大数|是否有拖动数量限制|以下两项值必填|受限制的拖动目标区域idName|源区域的类型|需要与limitedIdNames一一对应|idName|目标区域|默认false|限制拖动的Css类名称|鼠标放开时的回调函数|鼠标拖动时的回调函数|Drag方法参数列表|默认true|是否输出内部日志|当为true时|拖拽结束目标区域Css类样式|isLimitedMove为true时|拖拽时目标区域Css类样式|默认无|从源区域拖拽时的标签样式|鼠标按下时的回调函数|默认恢复原样'.split('|'),0,{}))