filesbox/web/dist/76915.cf0c3d2b.async.js

2 lines
14 KiB
JavaScript
Raw Normal View History

2024-07-26 06:10:54 +00:00
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[76915],{96278:function(X){X.exports={root:"root___7VXfh",colorWeak:"colorWeak___2fQ5G","ant-layout":"ant-layout___2lk2i",globalSpin:"globalSpin___3wjkL","ant-table":"ant-table___3MoMQ","ant-table-thead":"ant-table-thead___2F4eD","ant-table-tbody":"ant-table-tbody___1iFAX",formBox:"formBox___1MR6m",hrefModal:"hrefModal___GOUPi",shop:"shop___3KrmS"}},64752:function(){},76915:function(X,V,e){"use strict";e.r(V),e.d(V,{default:function(){return P}});var A=e(43358),N=e(34041),J=e(34792),L=e(48086),se=e(71194),c=e(50146),q=e(63185),ee=e(9676),U=e(57663),Q=e(71577),ne=e(47673),$=e(4107),I=e(67294),te=e(49101),F=e(73218),S=e(28216),m=e(96278),o=e.n(m),O=e(41273),T=e(56173),k=e(30672),t=e(85893),W,g,r=$.Z.TextArea,P=(W=(0,S.$j)(n=>{var a=n.commondesign,_=n.globaldesign;return{commondesign:a,globaldesign:_}}),W(g=class extends I.PureComponent{constructor(){super(...arguments);this.state={visible:!1,type:"static",list:[],marginLeft:0,editModel:!1,editsrc:"",editHref:"",editdesc:"",edittarget:""},this.updataDomCallBack=a=>{for(var _=this.props.commondesign,f=_.Suspend,d=f.element,b=f.callback,y=f.callClose,E="",h=a.list,p=0,M=h.length<5?h.length:5;p<M;p++){var x=h[p];x.href?E+='<a href="'+x.href+'" target="'+(x.target?x.target:"_self")+'"><img src="'+x.path+'"/></a>':E+='<img src="'+x.path+'" />'}var D=d.find(".box");D.remove(),d.append('<div class="box">'.concat(E,"</div>")),d.css("height","auto"),d.attr("data-suspend",JSON.stringify(a))},this.show=a=>{a?(a=JSON.parse(a),this.setState({list:a.list,type:a.type,marginLeft:0})):this.setState({list:[],type:"static",marginLeft:0})},this.renderEditModal=()=>{var a=this,_=a.props.dispatch,f=this.state,d=f.editModel,b=f.editsrc,y=f.editHref,E=f.editdesc,h=f.edittarget,p=f.list,M=()=>{var v=p;v[this.index]={src:b,href:y||"",desc:E||"",target:h||""},this.setState({list:v,editModel:!1,editsrc:"",editHref:"",editdesc:"",edittarget:""})},x=()=>{this.setState({editModel:!1})},D=this.index==0,u=this.index==p.length-1,i=()=>{if(this.index>0){this.index--;var v=p[this.index];this.setState({editsrc:v.path,editHref:v.href||"",editdesc:v.desc||"",edittarget:v.target||""})}},l=()=>{if(this.index<p.length-1){this.index++;var v=p[this.index];this.setState({editsrc:v.path,editHref:v.href||"",editdesc:v.desc||"",edittarget:v.target||""})}},C=v=>{this.setState({editHref:v})},s=v=>{this.setState({editdesc:v.target.value})},B=()=>{_({type:"commondesign/setState",payload:{Href:{visible:!0,type:{course:!0,information:!0,link:!0,dialog:!0,page:!0,member:!0,shop:!0,forum:!0,question:!0},typex:!1,callback:v=>{var G=(0,T.wS)(v,a),z=G.url;a.setState({editHref:z||""})}}}})},H=v=>{this.setState({edittarget:v.target.value})};return(0,t.jsxs)(c.Z,{title:"\u7F16\u8F91\u56FE\u7247",visible:d,onOk:M,width:520,onCancel:x,maskClosable:!1,className:o().hrefModal,children:[(0,t.jsx)("div",{className:"editImgbox",children:(0,t.jsxs)("div",{className:"viewer-content",children:[(0,t.jsx)("div",{className:"leftbtn2 "+(D?"disabled":""),onClick:i}),(0,t.jsx)("img",{src:b}),(0,t.jsx)("div",{className:"rightbtn2 "+(u?"disabled":""),onClick:l})]})}),(0,t.jsxs)("div",{className:"item-label",children:[(0,t.jsx)("div",{className:"labelName",children:"\u56FE\u7247\u94FE\u63A5\uFF1A"}),(0,t.jsxs)("div",{className:"itemContent",children:[(0,t.jsx)($.Z,{style:{width:205,marginRight:10},value:y,onChange:C}),(0,t.jsx)(Q.Z,{onClick:B,children:"\u8BBE\u7F6E\u94FE\u63A5"})]})]}),(0,t.jsxs)("div",{className:"item-label",children:[(0,t.jsx)("div",{className:"labelName",children:"\u56FE\u7247\u63CF\u8FF0\uFF1A"}),(0,t.jsx)("div",{className:"itemContent",children:(0,t.jsx)(r,{autosize:{minRows:3,maxRows:3},style:{width:303},value:E,onChange:s})})]}),(0,t.jsxs)("div",{className:"item-label",children:[(0,t.jsx)("div",{className:"labelName",children:"\u6253\u5F00\u65B9\u5F0F\uFF1A"}),(0,t.jsx)("div",{className:"itemContent",children:(0,t.jsx)(ee.Z,{onChange:H,checked:h=="_blank",value:"_blank",children:"\u65B0\u7A97\u53E3"})})]})]})},this.renderSeletPictrue=()=>{var a=this,_=th