2 lines
3.9 KiB
JavaScript
2 lines
3.9 KiB
JavaScript
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[18195],{89380:function(f){f.exports={root:"root___1BTqA",colorWeak:"colorWeak___1TFq9","ant-layout":"ant-layout___3xLIa",globalSpin:"globalSpin___3ggAE","ant-table":"ant-table___1b0C-","ant-table-thead":"ant-table-thead___3XlL7","ant-table-tbody":"ant-table-tbody___qYIe7",formBox:"formBox___2wMot",previewBarBox:"previewBarBox___1qUAl",activeKey:"activeKey___3o7Le",floatBarBox:"floatBarBox___3zdi1"}},40192:function(f,B,e){"use strict";e.r(B),e.d(B,{default:function(){return G}});var se=e(84305),I=e(39559),u=e(67294),s=e(30672),C=e(19630),P=e(34935),Z=e(16381),w=e(8561),M=e(54482),N=e(40090),j=e(11849),K=e(28216),n=e(7861),T=e(89380),D=e.n(T),a=e(85893),y,S,A=(y=(0,K.$j)(i=>{var r=i.globaldesign,t=i.commondesign;return{globaldesign:r,commondesign:t}}),y(S=class extends u.Component{constructor(){super(...arguments);this.state={show:localStorage.designSchoolPreviewBar!="false"}}componentDidMount(){}shouldComponentUpdate(){return!window.startMouseMove}render(){var r=this,t=this.state.show,l=this.props.commondesign,d=l.mainDesignId,v=l.designId,g=(0,s.lw)((0,s.Kd)()),h=()=>{this.setState({show:!t}),localStorage.designSchoolPreviewBar=!t},o=(0,n.GA)("image/iPhone.png"),m={id:"previewBarBox",className:D().previewBarBox,onMouseDown:c=>{if($(c.target).hasClass("headerMoveBtn")){var J=c.pageX,Q=c.pageY,x=$("#previewBarBox"),V=parseInt(x.css("left")),k=parseInt(x.css("top")),q=p=>{var ee=V-J+p.pageX,ae=k-Q+p.pageY;x.css({left:ee+"px",top:ae+"px"})},_=p=>{};(0,n.Y0)(q,_)}}},H=()=>{$("#rightOpenBox").hide(),$("#previewBarBox").css({right:"30px",left:"auto"})},X=()=>{$("#previewBarBox").css({right:"-445px",left:"auto"}),$("#rightOpenBox").show()};return(0,a.jsxs)("div",(0,j.Z)((0,j.Z)({},m),{},{children:[(0,a.jsx)("div",{className:"leftHeader",style:{opacity:0},children:(0,a.jsx)("div",{className:"headerMoveBtn",children:g.formatMessage({id:"common.preview"})})}),(0,a.jsx)("div",{className:"iframeBox",children:(0,a.jsx)("iframe",{id:"previewIframe",src:d==v?"/design/mobile/monipreview.html":"/design/mobile/moniSubpreview.html?designId=".concat(v),style:{height:"100%",width:"375px"}})}),(0,a.jsxs)("div",{className:"iPhoneBox",children:[(0,a.jsx)("div",{className:"headPhone",style:{backgroundImage:"url("+o+")"}}),(0,a.jsx)("div",{className:"middlePhone",style:{backgroundImage:"url("+o+")"}}),(0,a.jsx)("div",{className:"footPhone",style:{backgroundImage:"url("+o+")"}})]}),(0,a.jsx)("div",{className:"closeBox",onClick:X,children:(0,a.jsx)("img",{src:(0,n.GA)("image/close.png")})}),(0,a.jsx)("div",{className:"rightOpenBox",id:"rightOpenBox",onClick:H,children:(0,a.jsx)("img",{src:(0,n.GA)("image/minIphone.png")})})]}))}})||S),E=A,b=e(82925),U=e(22887),z=e(18253),L=e(66895),O=e(32444),R=e(28595),W=e(81612),Y=e(29168);document.title="\u88C5\u626E";var F=()=>{var i=(0,s.v9)(m=>m.globaldesign),r=(0,s.tT)("@@initialState"),t=r.initialState,l=t===void 0?{}:t,d=l.systemInfo,v=d===void 0?{}:d,g=v.needCheckCode,h=(0,s.I0)(),o=(0,C.$B)();return window.designneedCheckCode=g,(0,u.useEffect)(()=>{$("head").append('<link rel="stylesheet" href="/design/mobile/css/module.css?v='+new Date().getDate()+'">'),$("head").append('<link rel="stylesheet" href="/design/form/css/index.css?v='+Date.now()+'">'),$("head").append('<link rel="stylesheet" href="/design/designstatic/design/css/select2.min.css?v='+Date.now()+'">'),window.isMobile=!0,h({type:"globaldesign/changeState",payload:{isMobile:!0,isHome:!0,differenceType:2}}),h({type:"commondesign/setState",payload:{clientType:2}}),$("html").css({fontSize:37.5})},[]),(0,a.jsxs)(I.ZP,{locale:(0,s.Kd)()=="en-US"?z.Z:(0,s.Kd)()=="zh-TW"?U.Z:(0,s.Kd)()=="ja-JP"?L.Z:(0,s.Kd)()=="fr-FR"?O.Z:(0,s.Kd)()=="es-ES"?R.Z:(0,s.Kd)()=="ru-RU"?W.Z:(0,s.Kd)()=="it-IT"?Y.Z:b.Z,children:[(0,a.jsx)(P.Z,{}),(0,a.jsx)(Z.Z,{}),(0,a.jsx)(M.Z,{match:o,isMobile:!0}),(0,a.jsx)(w.Z,{}),(0,a.jsx)(N.Z,{}),(0,a.jsx)(E,{})]})},G=F}}]);
|