chunk-f945a824.62c62aa6.js 3.6 KB

1
  1. (window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-f945a824"],{"32ef":function(e,t,d){"use strict";d("d3be")},d3be:function(e,t,d){},eb6f:function(e,t,d){"use strict";d.r(t);var r=function(){var e=this,t=e.$createElement,d=e._self._c||t;return d("div",{ref:"rightDrawer",staticClass:"right-drawer"},[d("div",{ref:"miniMap",staticClass:"drawer-map"}),d("div",{staticClass:"right-drawer-content"},[d("div",{staticClass:"right-drawer-title"},[e._v("属性面板")]),d("div",{staticClass:"right-drawer-body"},[d("div",{staticClass:"right-drawer-body-item"},[d("div",{staticClass:"right-drawer-body-item-title"},[e._v("节点名称")]),d("div",{staticClass:"right-drawer-body-item-content"},[d("input",{directives:[{name:"model",rawName:"v-model",value:e.drawerNode.nodeText,expression:"drawerNode.nodeText"}],staticClass:"normal-input",attrs:{type:"text"},domProps:{value:e.drawerNode.nodeText},on:{change:e.changeNodeText,input:function(t){t.target.composing||e.$set(e.drawerNode,"nodeText",t.target.value)}}})])]),d("div",{staticClass:"right-drawer-body-item"},[d("div",{staticClass:"right-drawer-body-item-title"},[e._v("线条文本")]),d("div",{staticClass:"right-drawer-body-item-content"},[d("input",{directives:[{name:"model",rawName:"v-model",value:e.drawerEdge.edgeText,expression:"drawerEdge.edgeText"}],staticClass:"normal-input",attrs:{type:"text"},domProps:{value:e.drawerEdge.edgeText},on:{change:e.changeEdgeText,input:function(t){t.target.composing||e.$set(e.drawerEdge,"edgeText",t.target.value)}}})])])])])])},a=[],o=(d("cb29"),d("a9e3"),{props:{drawerType:{type:String,default:"grid"},selectCell:{type:Object|String,default:function(){}},graph:{type:Object|String,default:function(){}},grid:{type:Object}},data:function(){return{drawerNode:{fill:"",nodeText:"",fontSize:null,fontFill:"",strokeWidth:null,stroke:"",nodeType:"",entityId:"",itemId:"",flowNodeType:"",groupIdentify:"",childFlowIdentify:"",methodName:"",methodParams:"",methodType:"",hasMethodParams:!1,methodExp:"",flowJudges:[]},drawerEdge:{isCondition:!1,edgeText:"",edgeSelect:!0,edgeWidth:null,edgeColor:""}}},watch:{selectCell:{handler:function(e){if(e)if(e.isNode()){this.drawerNode.fill=e.store.data.attrs.body.fill,this.drawerNode.nodeText=e.store.data.attrs.label.text,this.drawerNode.fontFill=e.store.data.attrs.label.fill,this.drawerNode.fontSize=Number(e.store.data.attrs.label.fontSize),this.drawerNode.strokeWidth=Number(e.store.data.attrs.body.strokeWidth),this.drawerNode.stroke=e.store.data.attrs.body.stroke,this.drawerNode.nodeType=e.store.data.attrs.nodeData.type;var t=e.store.data.attrs.nodeData.flowNode;this.drawerNode.entityId=t.entityId,this.drawerNode.itemId=t.itemId,this.drawerNode.flowNodeType=t.flowNodeType,this.drawerNode.groupIdentify=t.groupIdentify,this.drawerNode.childFlowIdentify=t.childFlowIdentify,this.drawerNode.methodExp=t.methodExp,this.drawerNode.methodType=t.methodType,this.drawerNode.flowJudges=t.flowJudges}else{this.drawerEdge.edgeText=e.store.data.labels?void 0!=e.store.data.labels[0].text?e.store.data.labels[0].text:e.store.data.labels[0].attrs.label.text:"",console.log("his.drawerEdge.edgeText",this.drawerEdge.edgeText),this.drawerEdge.edgeWidth=Number(e.store.data.attrs.line.strokeWidth),this.drawerEdge.edgeColor=e.store.data.attrs.line.stroke;this.graph.getCellById(e.store.data.source.cell)}},immediate:!0,deep:!1}},methods:{changeNodeText:function(){this.selectCell.attr("label/text",this.drawerNode.nodeText)},changeEdgeText:function(){this.selectCell.setLabels([{attrs:{label:{text:this.drawerEdge.edgeText}}}])}}}),i=o,s=(d("32ef"),d("2877")),l=Object(s["a"])(i,r,a,!1,null,"2d8b57bc",null);t["default"]=l.exports}}]);