2 lines
2.7 KiB
JavaScript
2 lines
2.7 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[84771],{77541:function(D){D.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"}},83509:function(D,f,r){"use strict";r.r(f);var b=r(32157),v=r(82363),x=r(67294),T=r(28216),c=r(37226),y=r(7861),B=r(19755),E=r.n(B),I=r(77541),j=r.n(I),M=r(41273),u=r(30672),t=r(85893),O,p,o=v.Z.TreeNode,K=v.Z.DirectoryTree,P=(d,e)=>{var n=c.rJ.often,i=c.rJ.basics,a=c.rJ.senior,l=c.rJ.school,_=c.rJ.group,g=[...n,...i,...a,...l,..._],h="\u7EC4\u5408";return g.map(s=>{if(s.type==d)return h=s[e],!1}),h},L=(O=(0,T.$j)(d=>{var e=d.globaldesign,n=d.storagedesign,i=d.page,a=d.commondesign;return{globaldesign:e,storagedesign:n,page:i,commondesign:a}}),O(p=class extends x.Component{constructor(){super(...arguments);this.state={},this.onSelect=(e,n)=>{var i=this,a=this.props.dispatch;if(e[0]=="main"||e[0]=="header"||e[0]=="mainly"||e[0]=="footer")return!1;if(e[0]){var l=E()("[data-mid="+e[0]+"]"),_=E()("#header").height(),g=E()("#mainly").height(),h=l.parents(".topFloor"),s=parseInt(l.css("top"));switch(h.attr("id")){case"header":s=s-100-150;break;case"mainly":s=s+_-150-150;break;case"footer":s=s+_+g-350;break}a({type:"globaldesign/changeState",payload:{changeScrollY:(0,y.bV)(-s,i)}}),(0,M.J$)(l,i)}},this.renderTreeNodes=e=>{var n=this,i="zh";return e.map(a=>{var l=a.mid||(0,M.U$)();return a.children?(0,t.jsx)(o,{item:a,title:(0,t.jsx)("span",{children:P(a.type,i)}),children:n.renderTreeNodes(a.children)},l):(0,t.jsx)(o,{item:a,title:(0,t.jsx)("span",{children:P(a.type,i)})},l)})}}componentDidMount(){}render(){var e=this,n=this.props,i=n.globaldesign,a=n.storagedesign,l=n.page,_=n.commondesign,g=i.selectElement,h=a.header,s=a.mainly,C=a.footer,U=l.pageName,W=_.mainDesignId,A=_.designId,m=(0,u.lw)((0,u.Kd)()),N=g.length>0?g.attr("data-mid"):"",R={display:"inline-block",width:200,overflow:"hidden",textOverflow:"ellipsis",whiteSpace:"nowrap"};return(0,t.jsx)("div",{className:j().ViewBox,children:(0,t.jsx)(v.Z,{showLine:!0,defaultExpandedKeys:["main"],onSelect:e.onSelect,selectedKeys:[N],children:W==A?(0,t.jsxs)(o,{title:U,children:[(0,t.jsx)(o,{title:m.formatMessage({id:"mack.dsl.ze"}),children:e.renderTreeNodes(h)},"header"),(0,t.jsx)(o,{title:m.formatMessage({id:"mack.dsl.zf"}),children:e.renderTreeNodes(s)},"mainly"),(0,t.jsx)(o,{title:m.formatMessage({id:"mack.dsl.zg"}),children:e.renderTreeNodes(C)},"footer")]},"main"):(0,t.jsx)(o,{title:(0,t.jsx)("span",{style:R,children:m.formatMessage({id:"mack.dsl.zh"})}),children:e.renderTreeNodes(s)},"0-0")})})}})||p);f.default=L}}]);
|