filesbox/web/dist/35843.4236aca2.async.js

2 lines
29 KiB
JavaScript
Raw Permalink Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[35843],{7198:function(He){He.exports={fileEditL:"fileEditL___SfEcq",treeDrawer:"treeDrawer___2NoPN",treedragBox:"treedragBox___3EbHC",handleWrapperbtns:"handleWrapperbtns___FW9fO"}},36228:function(He,Ve,u){"use strict";u.d(Ve,{Z:function(){return Ye}});var qe=u(98247),Ne=u.n(qe),ea=u(28216),Re=u(67294),Xe=u(85893),Me,R,Pe,L,k=1,Ee=1,A="dark",Z=[],aa,Ye=(Me=(0,ea.$j)(Oe=>{var M=Oe.common,z=Oe.loading;return{common:M,loading:z.effects["common/getListPath"]}}),R=Reflect.metadata("design:type",Function),Pe=Reflect.metadata("design:paramtypes",[void 0]),Me(L=R(L=Pe(L=class extends Re.Component{constructor(M){var z;super(M);z=this,this.showRemoveBtn=(r,n)=>!n.isFirstNode,this.addDiyDom=(r,n)=>{var i=this,o=this.props,b=o.common,P=o.id,d=P===void 0?"":P,N=o.dispatch,oe=b.isMobile,Ce=5,G=$("#"+n.tId+"_switch"),le=$("#"+n.tId+"_ico");G.remove(),le.before(G);var Ge='<div class="menu-item ripple-item'+(oe?" menu-mobile-item":"")+'"><div class="cert">'+(oe?"\xB7\xB7\xB7":"")+"</div></div>";d!="TS"&&G.before(Ge);var Ze='<span class="space space-level-'+n.level+'" style="width:'+n.level*15+'px"></span>';G.before(Ze),!this.props.showLevel0Icon&&n.level===0&&!n.sourceID&&le.remove(),n!=null&&n.labelId&&le.css({background:n==null?void 0:n.style,borderRadius:"50%",width:"15px",height:"15px"}),oe||$("#"+n.tId+"_a").on("mouseenter mouseleave",function(w){if(w.type=="mouseenter"){var h=w,l=i.props.common.xhovertooltips||{},e=n.sourceID||n.labelId||n.xxicon||n.icon||"",x=l.sourceID||"";if(e==x&&l.visible)return;if(window.xhovertooltipstime&&clearTimeout(window.xhovertooltipstime),window.xleavetooltipstime&&clearTimeout(window.xleavetooltipstime),window.xhuantooltipstime&&clearTimeout(window.xhuantooltipstime),document.onmousemove=_=>{h=_},e!=x&&l.visible){N({type:"common/setState",payload:{xhovertooltips:{visible:!1}}}),window.xhuantooltipstime=setTimeout(function(){N({type:"common/setState",payload:{xhovertooltips:{visible:!0,x:h.pageX,y:h.pageY,sourceID:e,data:n}}})},300);return}window.xhovertooltipstime=setTimeout(function(){N({type:"common/setState",payload:{xhovertooltips:{visible:!0,x:h.pageX,y:h.pageY,sourceID:e,data:n}}})},2e3)}else w.type=="mouseleave"&&(document.onmousemove=null,window.xhovertooltipstime&&clearTimeout(window.xhovertooltipstime),window.xleavetooltipstime&&clearTimeout(window.xleavetooltipstime),window.xhuantooltipstime&&clearTimeout(window.xhuantooltipstime),window.xleavetooltipstime=setTimeout(function(){var _=i.props.common.xhovertooltips||{};!_.visible||N({type:"common/setState",payload:{xhovertooltips:{visible:!1}}})},300))}),this.props.showStatus&&$("#"+n.tId+"_a").addClass("group_status_".concat(n.status))},this.addHoverDom=(r,n)=>{var i=window.$("#"+n.tId+"_span");if(!(n.editNameFlag||window.$("#addBtn_"+n.tId).length>0)){var o="<span class='button add' id='addBtn_"+n.tId+"' title='add node' onfocus='this.blur();' style='margin-left:2px; margin-right: -1px; background-position:-144px 0; vertical-align:top; *vertical-align:middle'></span>";i.after(o);var b=this,P=window.$("#addBtn_"+n.tId);P&&P.bind("click",function(){var d=window.$.fn.zTree.getZTreeObj(r),N="new node"+Ee++,oe=d.addNodes(n,{id:100+Ee,pId:n.id,name:N}),Ce=b.props.addNode(N);return oe[0].id=Ce,!1})}},this.removeHoverDom=(r,n)=>{window.$("#addBtn_"+n.tId).unbind().remove()},this.onDragMove=(r,n,i)=>{this.props.onDragMove&&this.props.onDragMove(r,n,i)},this.dropPrev=(r,n,i)=>{if(this.props.dragSort)return!0;var o=i.getParentNode();if(o&&o.dropInner===!1)return!1;for(var b=0,P=Z.length;b<P;b++){var d=Z[b].getParentNode();if(d&&d!==i.getParentNode()&&d.childOuter===!1)return!1}return!1},this.dropInner=(r,n,i)=>{if(i&&i.dropInner===!1)return!1;for(var o=0,b=Z.length;o<b;o++){if(!i&&Z[o].dropRoot===!1)return!1;if(Z[o].parentTId&&Z[o].getParentNode()!==i&&Z[o].getParentNode().childOuter===!1)return!1}return!0},this.dropNext=(r,n,i)=>{if(this.props.dragSort)return!0;var o=i.getParentNode();if(o&&o.dropInner===!1)return!1;for(var b=0,P=Z.length;b<P;b++){var d=Z[b].getParentNode(