UNPKG

myprint-design

Version:

操作简单,组件丰富的一站式打印解决方案打印设计器

1 lines 8.56 kB
{"version":3,"file":"custombk.mjs","sources":["../../../../../src/constants/provider/custombk.ts"],"sourcesContent":["import {MyElement, ElementOption} from \"../../types/entity\";\n\nexport const customProvider: Array<MyElement> = [\n {\n \"type\": \"Text\",\n iconClass: 'iconfont icon-text',\n \"label\": \"文本\",\n \"data\": \"自定义文本\",\n \"width\": 50,\n \"height\": 10\n } as any,\n {\n \"type\": \"TextTime\",\n contentType: \"Text\",\n iconClass: 'iconfont-color icon-color-text-time',\n \"label\": \"时间文本\",\n option: {formatter: \"{{yyyy-MM-dd hh:mm:ss}}\"} as ElementOption,\n \"width\": 43,\n \"height\": 5\n } as any,\n {\n \"type\": \"Image\",\n iconClass: 'iconfont-color icon-color-img',\n \"label\": \"图片\",\n \"data\": null,\n \"width\": 50.25,\n \"height\": 30\n } as any,\n {\n \"type\": \"HorizontalLine\",\n iconClass: 'iconfont-color icon-color-vertical_solidline',\n \"label\": \"横实线\",\n \"width\": 30.25,\n \"option\": {\n borderWidth: 0.3\n } as ElementOption\n } as any,\n {\n \"type\": \"VerticalLine\",\n iconClass: 'iconfont-color icon-color-crossrange_solidline',\n \"label\": \"竖实线\",\n \"height\": 21,\n \"option\": {\n borderWidth: 0.3\n } as ElementOption,\n } as any,\n {\n \"type\": \"DottedHorizontalLine\",\n iconClass: 'iconfont-color icon-color-vertical_dottedline',\n \"width\": 21,\n \"option\": {\n borderWidth: 0.3\n } as ElementOption,\n } as any,\n {\n \"type\": \"DottedVerticalLine\",\n iconClass: 'iconfont-color icon-color-crossrange_dottedline',\n \"height\": 21,\n option: {\n borderWidth: 0.3\n } as ElementOption,\n } as any,\n {\n type: \"Rect\",\n iconClass: 'iconfont icon-rectangle_solidline',\n \"data\": \"\",\n \"width\": 30,\n option: {\n borderWidth: 0.3\n } as ElementOption,\n \"height\": 30,\n } as any,\n {\n type: \"Container\",\n iconClass: 'iconfont-color icon-color-container',\n \"data\": \"容器\",\n \"width\": 70,\n \"height\": 70,\n } as any,\n {\n type: \"PageHeader\",\n iconClass: 'iconfont-color icon-color-page_header',\n \"data\": \"\",\n \"height\": 30,\n } as any,\n {\n type: \"PageFooter\",\n iconClass: 'iconfont-color icon-color-page_footer',\n \"data\": \"\",\n \"height\": 30,\n } as any,\n {\n field: \"\",\n type: \"PageNum\",\n contentType: \"Text\",\n iconClass: 'iconfont-color icon-color-page',\n option: {\n formatter: \"第{{pageIndex:1}}页/共{{pageSize:1}}页\",\n textAlign: \"end\",\n verticalAlign: \"center\"\n } as ElementOption,\n\n width: 30,\n height: 6,\n } as any,\n {\n field: \"\",\n type: \"SvgPolygonLine\",\n iconClass: 'iconfont-color icon-color-svg-rect',\n width: 30,\n \"option\": {\n borderWidth: 0.3\n } as ElementOption,\n height: 30,\n } as any,\n {\n field: \"\",\n type: \"SvgCircle\",\n iconClass: 'iconfont-color icon-color-svg-circle',\n width: 30,\n \"option\": {\n borderWidth: 0.3\n } as ElementOption,\n height: 30,\n } as any,\n {\n field: \"\",\n type: \"SvgEllipse\",\n iconClass: 'iconfont-color icon-color-svg-ellipse',\n width: 30,\n \"option\": {\n borderWidth: 0.3\n } as ElementOption,\n height: 30,\n } as any,\n {\n field: \"\",\n type: \"DrawPanel\",\n iconClass: 'iconfont-color icon-color-shouxieqianming-icon',\n width: 30,\n \"option\": {\n borderWidth: 0.3\n } as ElementOption,\n height: 30,\n } as any,\n {\n field: \"\",\n type: \"SvgLine\",\n iconClass: 'iconfont-color icon-color-svg-line',\n width: 30,\n \"option\": {\n borderWidth: 0.3\n } as ElementOption,\n height: 30,\n } as any,\n {\n field: \"\",\n type: \"SvgBezierCurve\",\n iconClass: 'iconfont-color icon-color-svg-bezier2',\n width: 30,\n \"option\": {\n borderWidth: 0.3\n } as ElementOption,\n height: 30,\n } as any,\n {\n field: \"\",\n type: \"SvgBezierCurveThree\",\n iconClass: 'iconfont-color icon-color-svg-bezier3',\n width: 30,\n \"option\": {\n borderWidth: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