diff --git a/babel.config.js b/babel.config.js index e955840..0768f8e 100644 --- a/babel.config.js +++ b/babel.config.js @@ -1,3 +1,6 @@ +/* + * @Author: yaolunmao + */ module.exports = { presets: [ '@vue/cli-plugin-babel/preset' diff --git a/public/InterfaceReturn.json b/public/InterfaceReturn.json index 12d7ec9..62c9a78 100644 --- a/public/InterfaceReturn.json +++ b/public/InterfaceReturn.json @@ -1,22 +1,42 @@ [{ "type": "AlternatorSvg", "title": "发电机", - "template": "", - "props": ["svg_color"], - "default_color":"#00FF00", + "template": "", + "props": ["prop_data"], + "default_attr":{ + "color":"#FF0000" + }, + "create_type":"draggable", "priview_img":"/AlternatorSvg.png" }, { "type": "ArrowDownSvg", "title": "箭头向下", - "template": "", - "props": ["svg_color"], - "default_color":"#00FF00", + "template": "", + "props": ["prop_data"], + "default_attr":{ + "color":"#FF0000" + }, + "create_type":"draggable", "priview_img":"/ArrowDownSvg.png" }, { "type": "ArrowUpSvg", "title": "箭头向上", - "template": "", - "props": ["svg_color"], - "default_color":"#FF0000", + "template": "", + "props": ["prop_data"], + "default_attr":{ + "color":"#FF0000" + }, + "create_type":"draggable", "priview_img":"/ArrowUpSvg.png" -}] \ No newline at end of file +}, +{ + "type": "ConnLineSvg", + "title": "连接线", + "template": "", + "props": ["prop_data"], + "default_attr":{ + "color":"#FF0000" + }, + "create_type":"click", + "priview_img":"/VerticalLineSvg.png" +}] diff --git a/src/components/LeftToolBar.vue b/src/components/LeftToolBar.vue index 6807cfc..1962996 100644 --- a/src/components/LeftToolBar.vue +++ b/src/components/LeftToolBar.vue @@ -1,3 +1,4 @@ +