动态组件完成
parent
755e823628
commit
b20a5801ff
@ -1,14 +1,14 @@
|
||||
[{
|
||||
"type": "AlternatorSvg",
|
||||
"title": "发电机",
|
||||
"template": "<ellipse id=\"c1\" cx=\"50\" cy=\"50\" rx=\"35\" ry=\"35\" fill=\"none\" :stroke=\"color\" stroke-width=\"2\" transform=\"translate(-50,-50)\"></ellipse><path id=\"l1\" d=\"M30,50 C30,44 34,40 40,40 46,40 50,44 50,50 M50,50 C50,56 54,60 60,60 66,60 70,56 70,50 \" fill=\"none\" :stroke=\"color\" stroke-width=\"2\" transform=\"translate(-50,-50)\"></path>",
|
||||
"template": "<ellipse id=\"c1\" cx=\"50\" cy=\"50\" rx=\"35\" ry=\"35\" fill=\"none\" :stroke=\"svg_color\" stroke-width=\"2\" transform=\"translate(-50,-50)\"></ellipse><path id=\"l1\" d=\"M30,50 C30,44 34,40 40,40 46,40 50,44 50,50 M50,50 C50,56 54,60 60,60 66,60 70,56 70,50 \" fill=\"none\" :stroke=\"svg_color\" stroke-width=\"2\" transform=\"translate(-50,-50)\"></path>",
|
||||
"props": ["svg_color"],
|
||||
"default_color":"#00FF00",
|
||||
"priview_img":"/AlternatorSvg.png"
|
||||
}, {
|
||||
"type": "ArrowDownSvg",
|
||||
"title": "箭头向下",
|
||||
"template": "<polygon points=\"0,-8 5,0 10,-8\" :fill=\"color\" :stroke=\"color\" stroke-width=\"2\" transform=\"translate(-5,0)\"></polygon>",
|
||||
"template": "<polygon points=\"0,-8 5,0 10,-8\" :fill=\"svg_color\" :stroke=\"svg_color\" stroke-width=\"2\" transform=\"translate(-5,0)\"></polygon>",
|
||||
"props": ["svg_color"],
|
||||
"default_color":"#00FF00",
|
||||
"priview_img":"/ArrowDownSvg.png"
|
||||
|
Loading…
Reference in New Issue