UNPKG

@pluginarch/create-parch

Version:

this is way to create a ui project

1,261 lines (1,259 loc) 111 kB
import * as icon from './pipedatas.js' var assets = { '渲染引擎组件': { "libs": ['../public/lib/nusp_ui_extend.umd.min.js'], "node": [ { "$": { "name": "水务图组件", "label": "favorites", "data": "-1" }, "node": [ { "$": { "name": "三面管道", "label": "PipeRoundRect", "type": "pipe", "icon": "GD_Pin", "attrs": { "name": 'PipeRoundRect', "w": 50, "h": 10, "tfr": 'rotate(0) scale(1,1)', "icondata": icon.PipeRoundRect } } }, { "$": { "name": "弧形管道", "label": "PipeArc", "type": "pipe", "icon": "GD_Pin", "attrs": { "name": 'PipeArc', "w": 50, "h": 10, "tfr": 'rotate(0) scale(1,1)', "icondata": icon.PipeArc } } } ] }, { "$": { "name": "基础组件", "label": "favorites", "data": "-1" }, "node": [ { "$": { "name": "表格组件", "label": "TableView", "type": "TableView", "icon": "GD_Pin", } }, { "$": { "name": "树形组件", "label": "TreeView", "type": "TreeView", "icon": "GD_Pin", } }, { "$": { "name": "按钮组件", "label": "GButton", "type": "GButton", "icon": "GD_Pin", } }, { "$": { "name": "数据源组件", "label": "GDataSource", "type": "GDataSource", "icon": "GD_Pin", } }, { "$": { "name": "标签组件", "label": "GLabel", "type": "GLabel", "icon": "GD_Pin", } }, { "$": { "name": "下拉框", "label": "GComposeBox", "type": "GComposeBox", "icon": "GD_Pin", } } ] } ] }, "扩展组件": { "node": [ { "$": { "name": "模板" }, "node": [ { "$": { "name": "母线模板", "label": "", "icon": "CommonIcon" }, "node": [ { "$": { "name": "母线接线方式", "label": "Sensitive", "filename": "HD_500kV电厂.mgtd.icn.g", "targetFileName": "990102.01113200000061.fac.pic.g,990102.01113500000007.fac.pic.g,330000.01113300000061.fac.pic.g,990102.01113500000003.fac.pic.g,990102.01113200000397.fac.pic.g,310000.01113100000719.fac.pic.g,990102.01119901020022.fac.pic.g", "modelFileName": "990102.01113200000397.fac.pic.g,310000.01113100000719.fac.pic.g,990102.01119901020022.fac.pic.g", "type": "elec", "toolType": "1", "icon": "GD_Line", "tablenameGD": "10111", "bindTablenameGDInc": "10111" } } ] }, { "$": { "name": "主变模板", "label": "", "icon": "CommonIcon" }, "node": [ { "$": { "name": "主变接线方式", "label": "Sensitive", "filename": "HD500kV变1.mgtd.icn.g", "targetFileName": "990102.01123200000122.fac.pic.g", "modelFileName": "", "type": "elec", "icon": "GD_Line", "tablenameGD": "10112", "bindTablenameGDInc": "10112" } } ] } ] }, { "$": { "name": "常用图元", "label": "favorites", "data": "-1" }, "node": [ { "$": { "name": "直线", "label": "line", "type": "GD_Line", "icon": "GD_Line", "toolTip": "直线", "toolType": "1", "count": "1" } }, { "$": { "name": "三角形", "label": "triangle", "type": "GD_Triangle", "icon": "GD_Triangle", "toolTip": "三角形", "toolType": "2", "count": "23" } }, { "$": { "name": "矩形", "label": "rect", "type": "GD_Rect", "icon": "GD_Rect", "toolTip": "矩形", "toolType": "2", "count": "2" } } ] }, { "$": { "name": "基础图元", "label": "favorites", "data": "-1" }, "node": [ { "$": { "name": "端子", "label": "pin", "type": "GD_Pin", "icon": "GD_Pin", "toolTip": "端子", "toolType": "1", "count": "18" } }, { "$": { "name": "直线", "label": "line", "type": "GD_Line", "icon": "GD_Line", "toolTip": "直线", "toolType": "1", "count": "1" } }, { "$": { "name": "折线", "label": "polyline", "type": "GD_Polyline", "icon": "GD_Polyline", "toolTip": "折线", "toolType": "1", "count": "6" } }, { "$": { "name": "多边形", "label": "polygon", "type": "GD_Polygon", "icon": "GD_Polygon", "toolTip": "多边形", "toolType": "2", "count": "5" } }, { "$": { "name": "三角形", "label": "triangle", "type": "GD_Triangle", "icon": "GD_Triangle", "toolTip": "三角形", "toolType": "2", "count": "23" } }, { "$": { "name": "矩形", "label": "rect", "type": "GD_Rect", "icon": "GD_Rect", "toolTip": "矩形", "toolType": "2", "count": "2" } }, { "$": { "name": "平行四边形", "label": "parallelrect", "type": "GD_Parallelrect", "icon": "GD_Parallelrect", "toolTip": "平行四边形", "toolType": "2", "count": "15" } }, { "$": { "name": "圆角矩形", "label": "roundRect", "type": "GD_RoundRect", "icon": "GD_RoundRect", "toolTip": "圆角矩形", "toolType": "2", "count": "7" } }, { "$": { "name": "菱形", "label": "diamond", "type": "GD_Diamond", "icon": "GD_Diamond", "toolTip": "菱形", "toolType": "2", "count": "16" } }, { "$": { "name": "圆", "label": "circle", "type": "GD_Circle", "icon": "GD_Circle", "toolTip": "圆", "toolType": "2", "count": "3" } }, { "$": { "name": "椭圆", "label": "ellipse", "type": "GD_Ellipse", "icon": "GD_Ellipse", "toolTip": "椭圆", "toolType": "2", "count": "4" } }, { "$": { "name": "圆弧", "label": "circlearc", "type": "GD_Arc", "icon": "GD_Arc", "toolTip": "圆弧", "toolType": "8", "count": "9" } }, { "$": { "name": "椭圆弧", "label": "ellipsearc", "type": "GD_EllipseArc", "icon": "GD_EllipseArc", "toolTip": "椭圆弧", "toolType": "8", "count": "4" } }, { "$": { "name": "徒手线", "label": "handline", "type": "GD_Polyline", "icon": "GD_Handline", "toolTip": "徒手线", "toolType": "8", "count": "12" } }, { "$": { "name": "徒手多边形", "label": "handgon", "type": "GD_Polygon", "icon": "GD_Handgon", "toolTip": "徒手多边形", "toolType": "8", "count": "13" } }, { "$": { "name": "象素图", "label": "image", "type": "Pixmap", "icon": "Pixmap", "toolTip": "象素图", "toolType": "8", "count": "14" } }, { "$": { "name": "文字", "label": "Text", "type": "GD_String", "icon": "GD_String", "toolTip": "文字", "toolType": "8", "count": "8" } }, { "$": { "name": "网格", "label": "Grid", "type": "GD_Grid", "icon": "GD_Rect", "toolTip": "网格", "toolType": "2", "count": "24" } }, { "$": { "name": "插值图", "label": "ContourItem", "type": "ContourItem", "icon": "GD_Rect", "toolTip": "网格", "toolType": "2", "count": "24" } } ] }, { "$": { "name": "UI图元", "label": "UI", "data": "-1", "compStyleMap": [ '../../../../libs/ui/nusp-ui.css' ], "compScriptMap": [ '../../../../libs/ui/nusp-ui.umd.min.js', '../../../../libs/ui/init.js', '../../../../libs/ui/genScript.js', "../../../../libs/ui/compDraw/nuspuiDraw.js" ] }, "node": [ { "$": { "name": "按钮", "label": "Button", "type": "GD_Button", "icon": "button", "toolTip": "按钮", "toolType": "2", "count": "26" } }, { "$": { "name": "复选框", "label": "CheckBox", "type": "GD_CheckBox", "icon": "checkbox", "toolTip": "复选框", "toolType": "2", "count": "28" } }, { "$": { "name": "切换开关", "label": "SwitchButton", "type": "GD_SwitchButton", "icon": "switchButton", "toolTip": "切换开关", "toolType": "2", "count": "28" } }, { "$": { "name": "选择下拉框", "label": "ChoiceBox", "type": "GD_ChoiceBox", "icon": "comboBox", "toolTip": "选择下拉框", "toolType": "2", "count": "26" } }, { "$": { "name": "列表下拉框", "label": "ComboBox", "type": "GD_ComboBox", "icon": "comboBox", "toolTip": "列表下拉框", "toolType": "2", "count": "26" } }, { "$": { "name": "命令按钮", "label": "CommandButton", "type": "GD_CommandButton", "icon": "cmd", "toolTip": "命令按钮", "toolType": "2", "count": "28" } }, { "$": { "name": "动态组合框", "label": "ComposeComboBox", "type": "GD_ComposeComboBox", "icon": "dynamicComboBox", "toolTip": "动态组合框", "toolType": "2", "count": "28" } }, { "$": { "name": "日期选择器", "label": "DatePicker", "type": "GD_DatePicker", "icon": "calendar", "toolTip": "日期选择器", "toolType": "2", "count": "26" } }, { "$": { "name": "动态数据", "label": "DLabel", "type": "GD_DLabel", "icon": "DBData", "toolTip": "动态数据", "toolType": "2", "count": "28" } }, { "$": { "name": "颜色条", "label": "GradualItem", "type": "GD_GradualItem", "icon": "levelColor", "toolTip": "颜色条", "toolType": "2", "count": "26" } }, { "$": { "name": "超链接器", "label": "Hyperlink", "type": "GD_Hyperlink", "icon": "button", "toolTip": "超链接器", "toolType": "2", "count": "28" } }, { "$": { "name": "标签", "label": "Label", "type": "GD_Label", "icon": "label", "toolTip": "标签", "toolType": "2", "count": "28" } }, { "$": { "name": "媒体播放器", "label": "MediaView", "type": "GD_MediaView", "icon": "mediaView", "toolTip": "媒体播放器", "toolType": "2", "count": "26" } }, { "$": { "name": "图片", "label": "NImage", "type": "GD_NImage", "icon": "picture", "toolTip": "图片", "toolType": "2", "count": "28" } }, { "$": { "name": "文本框", "label": "TextField", "type": "GD_TextField", "icon": "text", "toolTip": "文本框", "toolType": "2", "count": "28" } }, { "$": { "name": "密码输入框", "label": "PasswordField", "type": "GD_PasswordField", "icon": "passwordField", "toolTip": "密码输入框", "toolType": "2", "count": "26" } }, { "$": { "name": "嵌入画面窗口", "label": "Picture", "type": "GD_Picture", "icon": "picture", "toolTip": "嵌入画面窗口", "toolType": "2", "count": "28" } }, { "$": { "name": "进度条", "label": "ProgressBar", "type": "GD_ProgressBar", "icon": "progress_bar", "toolTip": "进度条", "toolType": "2", "count": "28" } }, { "$": { "name": "单选框", "label": "RadioButton", "type": "GD_RadioButton", "icon": "radioButton", "toolTip": "单选框", "toolType": "2", "count": "26" } }, { "$": { "name": "区域滑块", "label": "RangeSlider", "type": "GD_RangeSlider", "icon": "sliderCombination", "toolTip": "区域滑块", "toolType": "2", "count": "28" } }, { "$": { "name": "圆形容器", "label": "RegionFill", "type": "GD_RegionFill", "icon": "cilindrical", "toolTip": "圆形容器", "toolType": "2", "count": "28" } }, { "$": { "name": "滑动条", "label": "Slider", "type": "GD_Slider", "icon": "slider_new", "toolTip": "滑动条", "toolType": "2", "count": "28" } }, { "$": { "name": "微调控制器", "label": "Spinner", "type": "GD_Spinner", "icon": "spinner", "toolTip": "微调控制器", "toolType": "2", "count": "26" } }, { "$": { "name": "文本域", "label": "TextArea", "type": "GD_TextArea", "icon": "text", "toolTip": "文本域", "toolType": "2", "count": "28" } }, { "$": { "name": "定时器", "label": "Timer", "type": "GD_Timer", "icon": "time", "toolTip": "定时器", "toolType": "2", "count": "26" } }, { "$": { "name": "开关切换按钮", "label": "ToggleButton", "type": "GD_ToggleButton", "icon": "toggleButton", "toolTip": "开关切换按钮", "toolType": "2", "count": "28" } }, { "$": { "name": "互斥组", "label": "ToggleGroup", "type": "GD_ToggleGroup", "icon": "mutualButton", "toolTip": "互斥组", "toolType": "2", "count": "28" } }, { "$": { "name": "树形图", "label": "TreeView", "type": "GD_TreeView", "icon": "treeDiagram", "toolTip": "树形图", "toolType": "2", "count": "26" } }, { "$": { "name": "webView网页", "label": "WebView", "type": "GD_WebView", "icon": "web", "toolTip": "webView网页", "toolType": "2", "count": "28" } }, { "$": { "name": "Gif图片", "label": "WebView", "type": "GD_AnimateImage", "icon": "gifPicture", "toolTip": "Gif图片", "toolType": "2", "count": "28" } }, { "$": { "name": "列表", "label": "ListView", "type": "GD_ListView", "icon": "comboBox", "toolTip": "列表", "toolType": "2", "count": "28" } }, { "$": { "name": "表格", "label": "TableItem", "type": "GD_TableItem", "icon": "table", "toolTip": "表格", "toolType": "2", "count": "28" } }, { "$": { "name": "表格视图", "label": "TableView", "type": "GD_TableView", "icon": "table", "toolTip": "表格视图", "toolType": "2", "count": "28" } }, { "$": { "name": "垂直表格", "label": "VerticalTableItem", "type": "GD_VerticalTableItem", "icon": "verticalTable", "toolTip": "垂直表格图片", "toolType": "2", "count": "28" } }, { "$": { "name": "忙指示器", "label": "BusyIndicator", "type": "GD_BusyIndicator", "icon": "busyIndicator", "toolTip": "忙指示器", "toolType": "2", "count": "28" } }, { "$": { "name": "动态复选框", "label": "ComposeCheckBox", "type": "GD_ComposeCheckBox", "icon": "dynamicCheckBox", "toolTip": "动态复选框", "toolType": "2", "count": "28" } }, { "$": { "name": "滑块组合框", "label": "SpinComboBox", "type": "GD_SpinComboBox", "icon": "sliderCombination", "toolTip": "滑块组合框", "toolType": "2", "count": "28" } }, { "$": { "name": "流程列表", "label": "ComposeListView", "type": "GD_ComposeListView", "icon": "table", "toolTip": "流程列表", "toolType": "2", "count": "28" } }, { "$": { "name": "插值图", "label": "ContourItem", "type": "GD_ContourItem", "icon": "dynamicCheckBox", "toolTip": "插值图", "toolType": "2", "count": "28" } }, { "$": { "name": "数字翻牌器", "label": "DigitalFlop", "type": "GD_DigitalFlop", "icon": "time", "toolTip": "数字翻牌器", "toolType": "2", "count": "28" } }, { "$": { "name": "搜索", "label": "SearchBox", "type": "SearchBox", "icon": "SearchBox", "toolTip": "搜索" } }, { "$": { "name": "线型迁徙图", "label": "NLinePath", "type": "NLinePath", "icon": "NLinePath", "toolTip": "线型迁徙图" } } ] }, { "$": { "name": "电气图元", "label": "favorites", "data": "-1" }, "node": [ { "$": { "name": "连接线", "label": "ConnectLine", "type": "GD_Relative", "data": "3", "icon": "GD_Relative", "count": "34", "columnid": "" } }, { "$": { "name": "管道", "label": "PipeLine", "type": "GD_PipeLine", "data": "3", "icon": "GD_PipeLine", "count": "34", "tablename": "", "columnid": "" } }, { "$": { "name": "交流线路", "label": "ACLine", "type": "GD_FlowLine", "data": "3", "icon": "GD_FlowLine", "tablename": "414", "count": "31", "columnid": "17", "tablenameGD": "11201", "columnidGD": "", "tablenameNEWGEN": "1201", "bindTablenameGDInc": "11210,11212" } }, { "$": { "name": "直流线路", "label": "DcLine", "type": "GD_DcLine", "data": "3", "icon": "GD_FlowLine", "tablename": "426", "count": "31", "columnid": "17", "tablenameGD": "11206", "columnidGD": "", "tablenameNEWGEN": "1211" } }, { "$": { "name": "交流线端", "label": "ACLineEnd", "type": "GD_FlowDot", "data": "3", "icon": "GD_FlowDot", "count": "36", "tablename": "414", "bindTablenameInc": "415", "columnid": "", "tablenameGD": "11210", "columnidGD": "", "bindTablenameGDInc": "11210,11212,11214", "bindColumnidGDInc": "", "tablenameNEWGEN": "1210" } }, { "$": { "name": "直流线端", "label": "DCLineEnd", "type": "GD_DCLineEnd", "data": "3", "icon": "GD_FlowDot", "count": "36", "tablename": "426", "columnid": "", "tablenameGD": "11211", "columnidGD": "", "tablenameNEWGEN": "1211" } }, { "$": { "name": "母线", "label": "Bus", "type": "GD_Bus", "data": "3", "icon": "GD_Bus", "count": "30", "tablename": "410", "columnid": "30", "columnidOSP": "21", "tablenameGD": "11301", "columnidGD": "00002202", "tablenameNEWGEN": "1301" } }, { "$": { "name": "负荷", "label": "EnergyConsumer", "type": "GD_Load", "data": "3", "icon": "GD_Load", "count": "32", "tablename": "412", "columnid": "", "tablenameGD": "10408", "columnidGD": "", "bindTablenameGDInc": "19902", "bindColumnidGDInc": "", "tablenameNEWGEN": "408" } }, { "$": { "name": "断路器", "label": "CBreaker", "type": "Elec", "data": "3", "icon": "GD_Breaker", "count": "100", "tablename": "407", "columnid": "40", "columnidOSP": "17", "tablenameGD": "11321", "columnidGD": "00005002", "bindTablenameGDInc": "11506", "tablenameNEWGEN": "1321" } }, { "$": { "name": "二卷变压器", "label": "Transformer2", "type": "Elec", "data": "3", "icon": "GD_Transformer2", "count": "102", "tablename": "416", "columnid": "50", "columnidOSP": "31", "tablenameGD": "11311", "columnidGD": "", "tablenameNEWGEN": "1311" } }, { "$": { "name": "三卷变压器", "label": "Transformer3", "type": "Elec", "data": "3", "icon": "GD_Transformer3", "count": "103", "tablename": "416", "columnid": "50", "columnidOSP": "31", "tablenameGD": "11311", "columnidGD": "", "tablenameNEWGEN": "1311" } }, { "$": { "name": "发电机", "label": "Generator", "type": "Elec", "data": "3", "icon": "GD_Generator", "count": "104", "tablename": "411", "columnid": "70", "columnidOSP": "28", "tablenameGD": "11101", "columnidGD": "", "tablenameNEWGEN": "1101" } }, { "$": { "name": "电容", "label": "Capacitor", "type": "Elec", "data": "3", "icon": "GD_Capacitor", "count": "113", "tablename": "419", "columnid": "", "tablenameGD": "11402", "columnidGD": "", "bindTablenameGDInc": "11327,11403,11404", "bindColumnidGDInc": "", "tablenameNEWGEN": "1402" } }, { "$": { "name": "电抗", "label": "Reactor", "type": "Elec", "data": "3", "icon": "GD_Compensator", "count": "114", "tablename": "419", "columnid": "", "tablenameGD": "11401", "columnidGD": "", "bindTablenameGDInc": "11326,11403,11404", "bindColumnidGDInc": "", "tablenameNEWGEN": "1401" } }, { "$": { "name": "刀闸", "label": "Disconnector", "type": "Elec", "data": "3", "icon": "GD_Switch", "count": "101", "tablename": "408", "columnid": "30", "columnidOSP": "28", "tablenameGD": "11322", "columnidGD": "00005002", "bindTablenameGDInc": "11323", "bindColumnidGDInc": "00005002", "tablenameNEWGEN": "1322" } }, { "$": { "name": "接地刀闸", "label": "GroundDisconnector", "type": "Elec", "data": "3", "icon": "GD_ESwitch", "count": "111", "tablename": "409", "columnid": "30", "columnidOSP": "10", "tablenameGD": "11323", "columnidGD": "00005002", "tablenameNEWGEN": "1323" } }, { "$": { "name": "中性点地刀", "label": "Zxddd", "type": "Elec", "data": "3", "icon": "GD_ZXDDD", "count": "136", "tablename": "409", "columnid": "", "tablenameGD": "11323", "columnidGD": "00005002", "tablenameNEWGEN": "1323" } }, { "$": { "name": "小车开关", "label": "DollyBreaker", "type": "Elec", "data": "3", "icon": "GD_Dolly_Breaker", "count": "110", "tablename": "408", "columnid": "17", "tablenameGD": "11321", "columnidGD": "00005002", "bindTablenameGDInc": "11322", "tablenameNEWGEN": "1321" } }, { "$": { "name": "容抗开关", "label": "RcBreaker", "type": "Elec", "data": "3", "icon": "GD_RC_Breaker", "count": "124", "tablename": "419", "columnid": "", "tablenameGD": "11321", "columnidGD": "00005002", "tablenameNEWGEN": "1321" } }, { "$": { "name": "电压互感器", "label": "PT", "type": "Elec", "data": "3", "icon": "GD_Inductor", "count": "107", "tablename": "421", "columnid": "", "tablenameGD": "11314", "columnidGD": "", "tablenameGDInc": "19903", "columnidGDInc": "", "bindTablenameGDInc": "11314", "bindColumnidGDInc": "", "tablenameNEWGEN": "1314" } }, { "$": { "name": "电流互感器", "label": "CT", "type": "Elec", "data": "3", "icon": "GD_Inductor", "count": "106", "tablename": "", "columnid": "", "tablenameGD": "11313", "columnidGD": "", "tablenameGDInc": "19903", "columnidGDInc": "", "bindTablenameGDInc": "11313", "bindColumnidGDInc": "", "tablenameNEWGEN": "1313" } }, { "$": { "name": "终端设备", "label": "Terminal", "type": "Elec", "data": "3", "icon": "GD_Terminal", "count": "112", "tablename": "421", "bindTablenameInc": "13510,11732", "columnid": "", "tablenameGD": "11314", "bindTablenameGDInc": "19903", "columnidGD": "", "tablenameNEWGEN": "" } }, { "$": { "name": "熔断器", "label": "Fuse", "type": "Elec",