-
Notifications
You must be signed in to change notification settings - Fork 0
/
p__editor__mind.d1e23ea2.async.js
1 lines (1 loc) · 9.59 KB
/
p__editor__mind.d1e23ea2.async.js
1
(self.webpackChunkant_design_pro=self.webpackChunkant_design_pro||[]).push([[9132],{47281:function(c){c.exports={contextMenu:"contextMenu___2Ldny",item:"item___2U3l4",anticon:"anticon___WnJdx"}},86870:function(c){c.exports={detailPanel:"detailPanel___3kol4"}},92079:function(c){c.exports={toolbar:"toolbar___jRwEG",tooltip:"tooltip___zrnM_"}},94424:function(c){c.exports={editor:"editor___r7h9L",editorHd:"editorHd___3iKCK",editorBd:"editorBd___2uvHY",editorSidebar:"editorSidebar___20Ugh",editorContent:"editorContent___396_U",flow:"flow___3dG9B",mind:"mind___3O6LN",koni:"koni___QYt1u"}},23524:function(c,P,t){"use strict";t.r(P),t.d(P,{default:function(){return ce}});var pe=t(13062),B=t(71230),je=t(89032),F=t(15746),a=t(87626),$=t(75362),he=t(58024),C=t(39144),e=t(85893),G=function(){return(0,e.jsx)(C.Z,{type:"inner",size:"small",title:"Minimap",bordered:!1,children:(0,e.jsx)(a.N5,{height:200})})},U=G,L=t(67294),A=t(91321),O=(0,A.Z)({scriptUrl:"https://at.alicdn.com/t/font_1101588_01zniftxm9yp.js"}),I=O,H=t(47281),E=t.n(H),K=function(l){return l.toLowerCase().replace(/( |^)[a-z]/g,function(o){return o.toUpperCase()})},Y=function(l){var o=l.command,n=l.icon,d=l.text;return(0,e.jsx)(a.mY,{name:o,children:(0,e.jsxs)("div",{className:E().item,children:[(0,e.jsx)(I,{type:"icon-".concat(n||o)}),(0,e.jsx)("span",{children:d||K(o)})]})})},x=Y,ve=function(){return _jsxs(ContextMenu,{className:styles.contextMenu,children:[_jsxs(NodeMenu,{children:[_jsx(MenuItem,{command:"copy"}),_jsx(MenuItem,{command:"delete"})]}),_jsx(EdgeMenu,{children:_jsx(MenuItem,{command:"delete"})}),_jsxs(GroupMenu,{children:[_jsx(MenuItem,{command:"copy"}),_jsx(MenuItem,{command:"delete"}),_jsx(MenuItem,{command:"unGroup",icon:"ungroup",text:"Ungroup"})]}),_jsxs(MultiMenu,{children:[_jsx(MenuItem,{command:"copy"}),_jsx(MenuItem,{command:"paste"}),_jsx(MenuItem,{command:"addGroup",icon:"group",text:"Add Group"}),_jsx(MenuItem,{command:"delete"})]}),_jsxs(CanvasMenu,{children:[_jsx(MenuItem,{command:"undo"}),_jsx(MenuItem,{command:"redo"}),_jsx(MenuItem,{command:"pasteHere",icon:"paste",text:"Paste Here"})]})]})},be=null,Me=null,V=function(){return(0,e.jsxs)(a.xV,{className:E().contextMenu,children:[(0,e.jsxs)(a.Fn,{children:[(0,e.jsx)(x,{command:"append",text:"Topic"}),(0,e.jsx)(x,{command:"appendChild",icon:"append-child",text:"Subtopic"}),(0,e.jsx)(x,{command:"collapse",text:"Fold"}),(0,e.jsx)(x,{command:"expand",text:"Unfold"}),(0,e.jsx)(x,{command:"delete"})]}),(0,e.jsxs)(a.Tr,{children:[(0,e.jsx)(x,{command:"undo"}),(0,e.jsx)(x,{command:"redo"})]})]})},w=V,fe=t(47673),Z=t(4107),J=t(32059),m=t(11849),R=t(69610),Q=t(54941),W=t(81306),X=t(59206),Fe=t(43358),z=t(34041),Ce=t(9715),h=t(86835),k=function(l){return l.toLowerCase().replace(/( |^)[a-z]/g,function(o){return o.toUpperCase()})},v=h.Z.Item,g=z.Z.Option,b={labelCol:{sm:{span:8}},wrapperCol:{sm:{span:16}}},_=function(i){(0,W.Z)(o,i);var l=(0,X.Z)(o);function o(){var n;(0,R.Z)(this,o);for(var d=arguments.length,S=new Array(d),M=0;M<d;M++)S[M]=arguments[M];return n=l.call.apply(l,[this].concat(S)),n.handleFieldChange=function(u){var r=n.props.propsAPI,j=r.getSelected,f=r.executeCommand,T=r.update;setTimeout(function(){var D=j()[0];!D||f(function(){T(D,(0,m.Z)({},u))})},0)},n.handleInputBlur=function(u){return function(r){r.preventDefault(),n.handleFieldChange((0,J.Z)({},u,r.currentTarget.value))}},n.renderNodeDetail=function(){var u=n.item.getModel(),r=u.label;return(0,e.jsx)(h.Z,{initialValues:{label:r},children:(0,e.jsx)(v,(0,m.Z)((0,m.Z)({label:"Label",name:"label"},b),{},{children:(0,e.jsx)(Z.Z,{onBlur:n.handleInputBlur("label")})}))})},n.renderEdgeDetail=function(){var u=n.item.getModel(),r=u.label,j=r===void 0?"":r,f=u.shape,T=f===void 0?"flow-smooth":f;return(0,e.jsxs)(h.Z,{initialValues:{label:j,shape:T},children:[(0,e.jsx)(v,(0,m.Z)((0,m.Z)({label:"Label",name:"label"},b),{},{children:(0,e.jsx)(Z.Z,{onBlur:n.handleInputBlur("label")})})),(0,e.jsx)(v,(0,m.Z)((0,m.Z)({label:"Shape",name:"shape"},b),{},{children:(0,e.jsxs)(z.Z,{onChange:function(xe){return n.handleFieldChange({shape:xe})},children:[(0,e.jsx)(g,{value:"flow-smooth",children:"Smooth"}),(0,e.jsx)(g,{value:"flow-polyline",children:"Polyline"}),(0,e.jsx)(g,{value:"flow-polyline-round",children:"Polyline Round"})]})}))]})},n.renderGroupDetail=function(){var u=n.item.getModel(),r=u.label,j=r===void 0?"\u65B0\u5EFA\u5206\u7EC4":r;return(0,e.jsx)(h.Z,{initialValues:{label:j},children:(0,e.jsx)(v,(0,m.Z)((0,m.Z)({label:"Label",name:"label"},b),{},{children:(0,e.jsx)(Z.Z,{onBlur:n.handleInputBlur("label")})}))})},n}return(0,Q.Z)(o,[{key:"item",get:function(){var d=this.props.propsAPI;return d.getSelected()[0]}},{key:"render",value:function(){var d=this.props.type;return this.item?(0,e.jsxs)(C.Z,{type:"inner",size:"small",title:k(d),bordered:!1,children:[d==="node"&&this.renderNodeDetail(),d==="edge"&&this.renderEdgeDetail(),d==="group"&&this.renderGroupDetail()]}):null}}]),o}(L.Component),q=(0,a.Yn)(_),ee=t(86870),te=t.n(ee),Ze=function(){return _jsxs(DetailPanel,{className:styles.detailPanel,children:[_jsx(NodePanel,{children:_jsx(DetailForm,{type:"node"})}),_jsx(EdgePanel,{children:_jsx(DetailForm,{type:"edge"})}),_jsx(GroupPanel,{children:_jsx(DetailForm,{type:"group"})}),_jsx(MultiPanel,{children:_jsx(_Card,{type:"inner",size:"small",title:"Multi Select",bordered:!1})}),_jsx(CanvasPanel,{children:_jsx(_Card,{type:"inner",size:"small",title:"Canvas",bordered:!1})})]})},ge=null,ye=null,ne=function(){return(0,e.jsxs)(a.JF,{className:te().detailPanel,children:[(0,e.jsx)(a.Kk,{children:(0,e.jsx)(q,{type:"node"})}),(0,e.jsx)(a.oP,{children:(0,e.jsx)(C.Z,{type:"inner",size:"small",title:"Canvas",bordered:!1})})]})},oe=ne,Te=t(48736),De=t(22385),le=t(61580),ae=t(92079),N=t.n(ae),re=function(l){return l.toLowerCase().replace(/( |^)[a-z]/g,function(o){return o.toUpperCase()})},ie=function(l){var o=l.command,n=l.icon,d=l.text;return(0,e.jsx)(a.mY,{name:o,children:(0,e.jsx)(le.Z,{title:d||re(o),placement:"bottom",overlayClassName:N().tooltip,children:(0,e.jsx)(I,{type:"icon-".concat(n||o)})})})},s=ie,Pe=function(){return _jsxs(Toolbar,{className:styles.toolbar,children:[_jsx(ToolbarButton,{command:"undo"}),_jsx(ToolbarButton,{command:"redo"}),_jsx(_Divider,{type:"vertical"}),_jsx(ToolbarButton,{command:"copy"}),_jsx(ToolbarButton,{command:"paste"}),_jsx(ToolbarButton,{command:"delete"}),_jsx(_Divider,{type:"vertical"}),_jsx(ToolbarButton,{command:"zoomIn",icon:"zoom-in",text:"Zoom In"}),_jsx(ToolbarButton,{command:"zoomOut",icon:"zoom-out",text:"Zoom Out"}),_jsx(ToolbarButton,{command:"autoZoom",icon:"fit-map",text:"Fit Map"}),_jsx(ToolbarButton,{command:"resetZoom",icon:"actual-size",text:"Actual Size"}),_jsx(_Divider,{type:"vertical"}),_jsx(ToolbarButton,{command:"toBack",icon:"to-back",text:"To Back"}),_jsx(ToolbarButton,{command:"toFront",icon:"to-front",text:"To Front"}),_jsx(_Divider,{type:"vertical"}),_jsx(ToolbarButton,{command:"multiSelect",icon:"multi-select",text:"Multi Select"}),_jsx(ToolbarButton,{command:"addGroup",icon:"group",text:"Add Group"}),_jsx(ToolbarButton,{command:"unGroup",icon:"ungroup",text:"Ungroup"})]})},Be=null,Ie=null,y=t(27049),de=function(){return(0,e.jsxs)(a.o8,{className:N().toolbar,children:[(0,e.jsx)(s,{command:"undo"}),(0,e.jsx)(s,{command:"redo"}),(0,e.jsx)(y.Z,{type:"vertical"}),(0,e.jsx)(s,{command:"zoomIn",icon:"zoom-in",text:"Zoom In"}),(0,e.jsx)(s,{command:"zoomOut",icon:"zoom-out",text:"Zoom Out"}),(0,e.jsx)(s,{command:"autoZoom",icon:"fit-map",text:"Fit Map"}),(0,e.jsx)(s,{command:"resetZoom",icon:"actual-size",text:"Actual Size"}),(0,e.jsx)(y.Z,{type:"vertical"}),(0,e.jsx)(s,{command:"append",text:"Topic"}),(0,e.jsx)(s,{command:"appendChild",icon:"append-child",text:"Subtopic"}),(0,e.jsx)(y.Z,{type:"vertical"}),(0,e.jsx)(s,{command:"collapse",text:"Fold"}),(0,e.jsx)(s,{command:"expand",text:"Unfold"})]})},se=de,ue=JSON.parse('{"roots":[{"label":"\u6CD5\u56FD","children":[{"label":"\u514B\u7F57\u5730\u4E9A","side":"left","children":[{"label":"\u514B\u7F57\u5730\u4E9A","children":[{"label":"\u514B\u7F57\u5730\u4E9A","children":[{"label":"\u514B\u7F57\u5730\u4E9A"},{"label":"\u4E39\u9EA6"}]},{"label":"\u4FC4\u7F57\u65AF","children":[{"label":"\u4FC4\u7F57\u65AF"},{"label":"\u897F\u73ED\u7259"}]}]},{"label":"\u82F1\u683C\u5170","children":[{"label":"\u82F1\u683C\u5170","children":[{"label":"\u82F1\u683C\u5170"},{"label":"\u54E5\u4F26\u6BD4\u4E9A"}]},{"label":"\u745E\u5178","children":[{"label":"\u745E\u58EB"},{"label":"\u745E\u5178"}]}]}]},{"label":"\u6CD5\u56FD","side":"right","children":[{"label":"\u6CD5\u56FD","children":[{"label":"\u6CD5\u56FD","children":[{"label":"\u6CD5\u56FD"},{"label":"\u963F\u6839\u5EF7"}]},{"label":"\u4E4C\u62C9\u572D","children":[{"label":"\u4E4C\u62C9\u572D"},{"label":"\u8461\u8404\u7259"}]}]},{"label":"\u6BD4\u5229\u65F6","children":[{"label":"\u6BD4\u5229\u65F6","children":[{"label":"\u6BD4\u5229\u65F6"},{"label":"\u65E5\u672C"}]},{"label":"\u5DF4\u897F","children":[{"label":"\u5DF4\u897F"},{"label":"\u58A8\u897F\u54E5"}]}]}]}]}]}'),me=t(94424),p=t.n(me);a.ZP.setTrackable(!1);var ce=function(){return(0,e.jsx)($.ZP,{content:"\u8111\u56FE\u662F\u8868\u8FBE\u53D1\u6563\u6027\u601D\u7EF4\u7684\u6709\u6548\u56FE\u5F62\u601D\u7EF4\u5DE5\u5177 \uFF0C\u5B83\u7B80\u5355\u5374\u53C8\u5F88\u6709\u6548\uFF0C\u662F\u4E00\u79CD\u5B9E\u7528\u6027\u7684\u601D\u7EF4\u5DE5\u5177",children:(0,e.jsxs)(a.ZP,{className:p().editor,children:[(0,e.jsx)(B.Z,{className:p().editorHd,children:(0,e.jsx)(F.Z,{span:24,children:(0,e.jsx)(se,{})})}),(0,e.jsxs)(B.Z,{className:p().editorBd,children:[(0,e.jsx)(F.Z,{span:20,className:p().editorContent,children:(0,e.jsx)(a.CH,{data:ue,className:p().mind})}),(0,e.jsxs)(F.Z,{span:4,className:p().editorSidebar,children:[(0,e.jsx)(oe,{}),(0,e.jsx)(U,{})]})]}),(0,e.jsx)(w,{})]})})}}}]);