diff --git a/src/views/CircuitEdit.vue b/src/views/CircuitEdit.vue index a334a9b..bcdff12 100644 --- a/src/views/CircuitEdit.vue +++ b/src/views/CircuitEdit.vue @@ -31,12 +31,20 @@ + +

新增绘制组件

+

新增图表

+
+ - 当前为2.1版本 + 当前为2.1版本 ", props: ["prop_data"], default_attr: { "color": "#FF0000" }, - create_type:'draggable', + create_type: 'draggable', priview_img: "https://svg.yaolunmao.top/test.png" }, addSvgVisible: false, + versionModelVisible: false, svgInfoData: [],//接口获取到的组件数据 shrink: true,//收缩状态 true收缩 false展开 svgLists: [],//svg列表 @@ -184,9 +193,12 @@ export default { this.addSvgVisible = true; }, addSvgHandleOk () { - this.svgInfoData[this.svgInfoData.length]=this.testAddSvg; + this.svgInfoData[this.svgInfoData.length] = this.testAddSvg; this.addSvgVisible = false; }, + versionModelHandleOk () { + this.versionModelVisible = false; + }, exportSvg () { var exportStr = document.querySelector("#svgCanvas").outerHTML; console.log(exportStr); @@ -412,7 +424,7 @@ export default { if (_this.$store.state.CurrentlySelectedToolBar.Type == '' || _this.$store.state.CurrentlySelectedToolBar.CreateType != 'draggable') { return; } - let eChartsOption=_this.$store.state.CurrentlySelectedToolBar.EChartsOption; + let eChartsOption = _this.$store.state.CurrentlySelectedToolBar.EChartsOption; //根据类型和鼠标位置创建组件 let svgItem = { id: _this.$UCore.GenUUid(), @@ -422,7 +434,7 @@ export default { svgColor: _this.$store.state.CurrentlySelectedToolBar.Color, svgPositionX: e.offsetX, svgPositionY: e.offsetY, - echarts_option:eChartsOption?JSON.parse(eChartsOption):"", + echarts_option: eChartsOption ? JSON.parse(eChartsOption) : "", size: 1, angle: 0 //translate:`translate(${this.mousePosition.positionX},${this.mousePosition.positionY})`