UNPKG

@pluginarch/create-parch

Version:

this is way to create a ui project

93 lines (92 loc) 2.73 kB
var drawerAttr = { tag: 'Drawer', attrMap: { id: 'drawer1', top: 300, left: 300, width: 50, subpagewidth: 600, orientation: false, backcolor: '#fff', subpagewidth: '450', subpageheight: '380', submenuwidth: '264', submenuscount: 4, menusiconwidth: 25, menusiconheight: 25, submenusiconwidth: 25, submenusiconheight: 25, menus: [ { name: '统计信息', icon: 'tongjixinxi', type: 1, submenuType: 3, //[1]直接嵌入指定页面 [2]根据数据渲染二级子菜单 [3] 自定义回调 fun: function () { console.log('33333') } }, { name: '风险信息', icon: 'fengxianxinxi', type: 1, submenuType: 1, pageurl: 'http://192.168.98.85:9000/osp/GraphPub/Navigator.html' }, { name: '工具箱', icon: 'gongjuxiang', type: 1, submenuType: 2, children: [ { name: '直流电压等级', children: [ { name: '姑苏', index: '2-1', icon: '服务器类', dialogobj: { title: '遥测曲线卡片', url: './YcCurve/遥测曲线卡片.html', width: 500, height: 300, top: 300, left: 500, isDragable: true, dialogtype: 'warning', titlebackcolor: '', closeCallback: function () { console.log('----------------') } } }, { name: '工业园区', index: '2-2', icon: '链路状态', fun: function () { console.log('风险信息') } }, { name: '吴中', index: '2-3', icon: '安控' }, { name: '相城', index: '2-4', icon: '应用' }, { name: '虎丘', index: '2-5', icon: '网安' }, { name: '太仓', index: '2-6', icon: '通信' }, { name: '昆山', index: '2-7', icon: '进程' }, { name: '张家港', index: '2-8', icon: '服务器类' } ] }, { name: '电厂类型', children: [ { name: '地调', index: '3-1', icon: '保护' }, { name: '配调', index: '3-2', icon: '安控' } ], icon: 'messagebus' } ] } ] } }