2 lines
9.4 KiB
JavaScript
2 lines
9.4 KiB
JavaScript
|
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[83509,84771],{77541:function(Y){Y.exports={root:"root___3mOZe",colorWeak:"colorWeak___3Ge5S","ant-layout":"ant-layout___cL_PV",globalSpin:"globalSpin___3Jk5L","ant-table":"ant-table___3ZNpi","ant-table-thead":"ant-table-thead___17pzJ","ant-table-tbody":"ant-table-tbody___1YDpm",formBox:"formBox___2kFZL",ViewBox:"ViewBox___1oDUc"}},16695:function(){},83509:function(Y,j,n){"use strict";n.r(j);var w=n(32157),E=n(82363),U=n(67294),g=n(28216),x=n(37226),o=n(7861),ve=n(19755),z=n.n(ve),W=n(77541),G=n.n(W),Q=n(41273),X=n(30672),v=n(85893),$,q,_=E.Z.TreeNode,De=E.Z.DirectoryTree,ee=(D,s)=>{var h=x.rJ.often,y=x.rJ.basics,i=x.rJ.senior,p=x.rJ.school,K=x.rJ.group,N=[...h,...y,...i,...p,...K],T="\u7EC4\u5408";return N.map(u=>{if(u.type==D)return T=u[s],!1}),T},ue=($=(0,g.$j)(D=>{var s=D.globaldesign,h=D.storagedesign,y=D.page,i=D.commondesign;return{globaldesign:s,storagedesign:h,page:y,commondesign:i}}),$(q=class extends U.Component{constructor(){super(...arguments);this.state={},this.onSelect=(s,h)=>{var y=this,i=this.props.dispatch;if(s[0]=="main"||s[0]=="header"||s[0]=="mainly"||s[0]=="footer")return!1;if(s[0]){var p=z()("[data-mid="+s[0]+"]"),K=z()("#header").height(),N=z()("#mainly").height(),T=p.parents(".topFloor"),u=parseInt(p.css("top"));switch(T.attr("id")){case"header":u=u-100-150;break;case"mainly":u=u+K-150-150;break;case"footer":u=u+K+N-350;break}i({type:"globaldesign/changeState",payload:{changeScrollY:(0,o.bV)(-u,y)}}),(0,Q.J$)(p,y)}},this.renderTreeNodes=s=>{var h=this,y="zh";return s.map(i=>{var p=i.mid||(0,Q.U$)();return i.children?(0,v.jsx)(_,{item:i,title:(0,v.jsx)("span",{children:ee(i.type,y)}),children:h.renderTreeNodes(i.children)},p):(0,v.jsx)(_,{item:i,title:(0,v.jsx)("span",{children:ee(i.type,y)})},p)})}}componentDidMount(){}render(){var s=this,h=this.props,y=h.globaldesign,i=h.storagedesign,p=h.page,K=h.commondesign,N=y.selectElement,T=i.header,u=i.mainly,te=i.footer,he=p.pageName,me=K.mainDesignId,ne=K.designId,m=(0,X.lw)((0,X.Kd)()),F=N.length>0?N.attr("data-mid"):"",ye={display:"inline-block",width:200,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};return(0,v.jsx)("div",{className:G().ViewBox,children:(0,v.jsx)(E.Z,{showLine:!0,defaultExpandedKeys:["main"],onSelect:s.onSelect,selectedKeys:[F],children:me==ne?(0,v.jsxs)(_,{title:he,children:[(0,v.jsx)(_,{title:m.formatMessage({id:"mack.dsl.ze"}),children:s.renderTreeNodes(T)},"header"),(0,v.jsx)(_,{title:m.formatMessage({id:"mack.dsl.zf"}),children:s.renderTreeNodes(u)},"mainly"),(0,v.jsx)(_,{title:m.formatMessage({id:"mack.dsl.zg"}),children:s.renderTreeNodes(te)},"footer")]},"main"):(0,v.jsx)(_,{title:(0,v.jsx)("span",{style:ye,children:m.formatMessage({id:"mack.dsl.zh"})}),children:s.renderTreeNodes(u)},"0-0")})})}})||q);j.default=ue},82363:function(Y,j,n){"use strict";n.d(j,{Z:function(){return Se}});var w=n(93549),E=n(96156),U=n(90484),g=n(22122),x=n(28991),o=n(67294),ve={icon:{tag:"svg",attrs:{viewBox:"64 64 896 896",focusable:"false"},children:[{tag:"path",attrs:{d:"M300 276.5a56 56 0 1056-97 56 56 0 00-56 97zm0 284a56 56 0 1056-97 56 56 0 00-56 97zM640 228a56 56 0 10112 0 56 56 0 00-112 0zm0 284a56 56 0 10112 0 56 56 0 00-112 0zM300 844.5a56 56 0 1056-97 56 56 0 00-56 97zM640 796a56 56 0 10112 0 56 56 0 00-112 0z"}}]},name:"holder",theme:"outlined"},z=ve,W=n(27029),G=function(r,a){return o.createElement(W.Z,(0,x.Z)((0,x.Z)({},r),{},{ref:a,icon:z}))};G.displayName="HolderOutlined";var Q=o.forwardRef(G),X=n(94184),v=n.n(X),$=n(53124),q=n(33603),_=4;function De(e){var r,a=e.dropPosition,l=e.dropLevelOffset,d=e.prefixCls,c=e.indent,t=e.direction,P=t===void 0?"ltr":t,f=P==="ltr"?"left":"right",A=P==="ltr"?"right":"left",M=(r={},(0,E.Z)(r,f,-l*c+_),(0,E.Z)(r,A,0),r);switch(a){case-1:M.top=-3;break;case 1:M.bottom=-3;break;default:M.bottom=-3,M[f]=c+_;break}return o.createElement("div",{style:M,className:"".concat(d,"-drop-indicator")})}var ee=n(6324),ue=o.forwardRef(function(e,r){var a,l=o.useContext($.E_),d=l.getPrefixCls,c=l.direction,t=l.virtual,P=e.pre
|