@ecan-bi/chart-config-panel 1.0.12 → 1.0.14

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,4 +1,4 @@
1
- "use strict";var It=Object.defineProperty,$t=Object.defineProperties;var Pt=Object.getOwnPropertyDescriptors;var be=Object.getOwnPropertySymbols;var Ee=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable;var Be=(o,e,t)=>e in o?It(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,V=(o,e)=>{for(var t in e||(e={}))Ee.call(e,t)&&Be(o,t,e[t]);if(be)for(var t of be(e))We.call(e,t)&&Be(o,t,e[t]);return o},G=(o,e)=>$t(o,Pt(e));var Ge=(o,e)=>{var t={};for(var n in o)Ee.call(o,n)&&e.indexOf(n)<0&&(t[n]=o[n]);if(o!=null&&be)for(var n of be(o))e.indexOf(n)<0&&We.call(o,n)&&(t[n]=o[n]);return t};var J=(o,e,t)=>new Promise((n,a)=>{var l=u=>{try{m(t.next(u))}catch(c){a(c)}},i=u=>{try{m(t.throw(u))}catch(c){a(c)}},m=u=>u.done?n(u.value):Promise.resolve(u.value).then(l,i);m((t=t.apply(o,e)).next())});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("lodash-es"),Ft=require("vue-color"),H=require("vue"),Vt=[{title:"基本属性",excludeType:["border"],dataVNoHas:!0,props:["graphicType","colors"]},{title:"系列",props:["seriesTypes"]},{title:"折线图",onlyType:["line","comboGraph"],props:["areaStyleOpacity","areaGradientShow","areaGradientColor","smooth","lineStyleWidth","symbolSize","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","customPoint"]},{title:"散点图",onlyType:["scatter"],props:["symbolSize","symbolColor","crossShow"]},{title:"雷达图",onlyType:["radar"],props:["areaStyleOpacity","lineStyleWidth","symbolSize","labelShow","axisNameColor"]},{title:"柱状图",onlyType:["bar","comboGraph"],props:["barWidth","barBorderRadius","isUseHorizontalAxis","axisInverse","isStack","labelShow","showBarBackground"]},{title:"饼图",onlyType:"pie",props:["centerTop","centerLeft","innerRadius","outerRadius","roseType","minAngle"]},{title:"布局",excludeType:["pie"],props:["gridTop","gridBottom","gridLeft","gridRight","gridContainLabel"]},{title:"标题",onlyType:["bar","comboGraph","line","pie","radar","scatter"],props:["titleText","titleFontSize","titleColor","fontWeight","textAlign"]},{title:"x轴",props:["xAxisLabelColor","xAxisLineStyleColor","xAxisLabelWidth","xAxisLabelOverflow","xAxisLabelRotate","xAxisTickShow","xAxisSplitLineShow","xAxisSplitLineType","xAxisSplitAreaShow","xAxisLabelShow","xAxisLineShow","isBoundaryGap","xAxisSplitLineInterval","xAxisSplitLineStyleColor","xAxisLabelFormatter","xAxisInverse","xAxisMinInterval","xAxisLabelInterval","xAxisLabelFontSize","xAxisName","xAxisMaxValue","showXAxisLineArrow","xAxisLineInverse","xAxisMax","xAxisMin"]},{title:"y轴",props:["yAxisLabelColor","yAxisLineStyleColor","yAxisLineAlwaysDisplay","yAxisLabelWidth","yAxisLabelOverflow","yAxisLabelRotate","yAxisTickShow","yAxisSplitLineShow","yAxisSplitLineType","yAxisLeftSplitLineShow","yAxisLeftSplitLineType","yAxisRightSplitLineShow","yAxisRightSplitLineType","yAxisSplitAreaShow","yAxisLabelShow","yAxisSplitLineStyleColor","yAxisLabelFormatter","yAxisInverse","yAxisMinInterval","yAxis","yAxisLabelFontSize","yAxisName","yAxisLeftName","yAxisRightName","yAxisLeftUnitAdapt","yAxisRightUnitAdapt","yAxisMaxValue","yAxisLeftMaxValue","yAxisRightMaxValue","showYAxisLineArrow","yAxisLineInverse","yAxisMax","yAxisMin"]},{title:"标签",enableProps:"labelShow",excludeType:"map",props:["labelFormatter","labelWidth","labelColor","isUseLabelColors","labelFontSize","labelPosition","labelOverflow"]},{title:"标签引导线",enableProps:"labelLineShow",props:["labelLineLength","labelLineLength2"]},{title:"图例",enableProps:"legendShow",excludeType:["map","scatter"],props:["legendFormatter","legendWidth","legendHeight","legendTextWidth","legendTextStyleColor","legendFontSize","legendTop","legendLeft","legendOrient","legendType","legendItemGap","legendItemWidth","legendItemHeight","legendScroll"]},{title:"图例",enableProps:"legendShow",onlyType:["scatter"],props:["legendTop","legendLeft","legendOrient","legendTextStyleColor"]},{title:"提示框",enableProps:"tooltipShow",excludeType:["button"],props:["tooltipTrigger","tooltipFormatter","tooltipFontSize","tooltipTextStyleColor","tooltipBackgroundColor","tooltipRequestData","tooltipPosition"]},{title:"自定义设置(气泡颜色)",onlyType:["scatter"],props:["visualColorKey","visualColorCondition"]},{title:"自定义设置(气泡大小)",onlyType:["scatter"],props:["visualSizeKey","visualSizeCondition"]},{title:"工具栏",enableProps:"toolboxShow",onlyType:["bar","comboGraph","line","pie","radar","scatter"],props:["toolboxOrient","toolboxItemSize","toolboxItemGap","toolboxLeft","toolboxTop","toolboxIconStyleBorderColor","toolboxLocation","toolboxDownloadShow","toolboxDataZoomShow","toolboxInfoShow","toolboxInfoSource","toolboxDownloadUrl","toolboxInfoText"]},{title:"渐变",enableProps:"gradientShow",showSwitch:!0,onlyType:["bar","proportion","comboGraph","text","radar","rectangle"],props:["isTransparent","gradientColor","gradientColors","gradientOffset","gradientAngle"]},{title:"图表标线",enableProps:"isShowMarkLine",showSwitch:!0,onlyType:["line","bar","comboGraph","scatter"],props:["markLineType"]},{title:"图表标点",onlyType:["valueLine"],props:["markPointFormatter","axisMarkPoint"]},{title:"图表标线",onlyType:["scatter"],props:["xAxisMarkLineValue","yAxisMarkLineValue"]},{title:"图表标域",onlyType:["scatter"],props:["axisMarkArea"]},{title:"默认范围值",enableProps:"defaultRangeValue",showSwitch:!0,onlyType:["bar","comboGraph","line"],props:["startValue","endValue"]},{title:"链接",onlyType:["pie"],props:["linkConfig"]},{title:"无数据提示",enableProps:"noDataTip",showSwitch:!0,onlyType:["line","bar","comboGraph","scatter","pie","radar"],props:["tipText","tipTextColor","tipTextFontSize"]},{title:"单位",enableProps:"unitShow",onlyType:["text"],props:["unitText","unitFontSize","unitFontWeight","unitColor","unitTop","unitLeft"]},{title:"目标值",enableProps:"targetShow",onlyType:["text"],props:["targetRule","targetValue","notExpectColor"]},{title:"地图数据",onlyType:"map",props:["mapJson","geoCenter"]},{title:"地图样式",onlyType:"map",props:["geoRoam","geoZoom","geoLabelColor","geoLabelShow","geoLabelFontSize","geoBackgroundImage","geoBackgroundImageRepeat","geoItemStyleAreaColor","geoItemStyleBorderColor","geoItemStyleBorderWidth","geoItemStyleShadowColor","geoItemStyleShadowOffsetX","geoItemStyleShadowOffsetY","geoItemStyleShadowBlur","symbolImage","symbolWidth","symbolHeight"]},{title:"悬停地图样式",onlyType:"map",props:["geoEmphasisDisabled","geoEmphasisLabelColor","geoEmphasisItemStyleAreaColor","geoEmphasisItemStyleBorderColor"]},{title:"区域样式",onlyType:["map"],props:["areaStyleKeyName","mapAreaStyleConfig"]},{title:"图例",enableProps:"legendShow",showSwitch:!0,onlyType:"map",props:["legendTitle","legendTitleFontSize","legendTitleColor","legendTextShow","legendFrontText","legendAfterText","legendTextStyleColor","legendOrient","legendTop","legendLeft","mapLegendType","legendBoxShadow"]},{title:"按钮",onlyType:"button",props:["mode","danger","shape","tooltipTextStyleColor","borderColor","buttonBackgroundColor"]},{title:"样式配置",onlyType:"pivotTable",props:["styleConfig"]},{title:"工具栏",enableProps:"toolboxShow",showSwitch:!0,excludeType:["bar","comboGraph","line","pie","radar","scatter","template","pivotTable","timeDisplay","rectangle","border","tabs","input","button","datePicker","rangePicker","navTab","map","image","iframe","indexPanel"],props:["isShowIndDetail","indDetailIconColor"]}],Dt=[{id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",position:"absolute",top:"",left:"",zIndex:1,rotate:"",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,legendType:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",linkConfig:[]},{id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",position:"absolute",top:"",left:"",zIndex:1,rotate:"",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelRotate:0,xAxisLabelWidth:void 0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",tooltipFontSize:"12px",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",defaultRangeValue:!1,startValue:"",endValue:"",isForbidClick:!1},{id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",position:"absolute",top:"",left:"",zIndex:1,rotate:"",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelRotate:0,xAxisLabelWidth:void 0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelRotate:0,yAxisLabelWidth:void 0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",tooltipFontSize:"12px"},{id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",position:"absolute",top:"",left:"",zIndex:1,rotate:"",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",symbolSize:10,symbolColor:"#5470c6",xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",yAxisName:"",xAxisName:"",showXAxisLineArrow:!1,showYAxisLineArrow:!1,xAxisLineInverse:!1,yAxisLineInverse:!1,yAxisTickShow:!0,xAxisMarkLineValue:[],yAxisMarkLineValue:[],axisMarkArea:[],xAxisMax:null,xAxisMin:null,yAxisMax:null,yAxisMin:null,xAxisLabelShow:!0,crossShow:!0,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",visualColorKey:"",visualColorCondition:[],visualSizeKey:"",visualSizeCondition:[]},{id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelWidth:void 0,xAxisLabelOverflow:"none",xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisLeftMaxValue:null,yAxisRightMaxValue:null,xAxisLabelShow:!0,yAxisLeftUnitAdapt:!1,yAxisRightUnitAdapt:!1,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",tooltipFontSize:"12px"},{id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},{id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",position:"absolute",top:"",left:"",zIndex:1,rotate:"",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},{id:"",name:"双值轴折线图",keyName:"双值轴折线图",type:"ecanValueLine",width:"400px",height:"400px",position:"absolute",top:"",left:"",zIndex:1,rotate:"",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px",data:[{name:0,value:0,value2:10},{name:10,value:20,value2:35},{name:20,value:30,value2:25},{name:30,value:40,value2:55}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelRotate:0,xAxisLabelWidth:void 0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a}:{c}",toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",customPoint:"",axisMarkPoint:[],markPointFormatter:"{x}, {y}"}],Le={text:{label:"文本",component:"textarea"},title:{label:"标题",component:"input"},textShadow:{label:"阴影",component:"input"},width:[{label:"宽度",component:"input-number",props:{suffix:[{label:"px",value:"px"},{label:"%",value:"%"}],min:0}}],height:[{label:"高度",component:"input-number",props:{suffix:[{label:"px",value:"px"},{label:"%",value:"%"}],min:1}}],pageFontFamily:{label:"字体",component:"select",updateMode:"page",onlyType:"page",props:{options:[{label:"无",value:""}]}},textColor:{label:"字体颜色",component:"color-pick",updateMode:"page",onlyType:"page",style:"flex: 1;",props:{tooltip:"设置了字体颜色后,页面上所有未设置颜色和变量颜色的文本组件将会使用这里设置的颜色"}},value:[{label:"时间值",component:"time-pick",onlyType:"date"},{label:"默认值",component:"input",onlyType:"select"},{label:"默认值",component:"input",onlyType:"tabs"},{label:"默认值",component:"input",onlyType:"input"},{label:"默认值",component:"checkbox",onlyType:"checkbox"},{label:"默认值",component:"input",onlyType:"radio"}],placeholder:[{label:"占位文字",component:"input"}],imgUrl:{label:"图片",component:"image-pick",show:[{match:"isAnimation",value:!1}]},linkPage:[{label:"",layout:"vertical",component:"page-pick",props:{crossProject:!0},projectKey:"linkProjectId",onlyType:["pie"]}],linkConfig:{label:"",component:"link-config",layout:"vertical",onlyType:"pie"},fontSize:{label:"字号",component:"input-number",props:{suffix:"px",min:12,max:100}},left:{label:"x轴",component:"input-number",props:{suffix:"px"}},top:{label:"y轴",component:"input-number",props:{suffix:"px"}},textAlign:{label:"水平对齐",component:"radio-group",props:{optionType:"button",options:[{label:"左",value:"left"},{label:"中",value:"center"},{label:"右",value:"right"}]}},verticalAlign:{label:"垂直对齐",component:"radio-group",props:{optionType:"button",options:[{label:"上",value:"top"},{label:"中",value:"middle"},{label:"下",value:"bottom"}]}},justifyContent:{label:"水平对齐",component:"radio-group",props:{optionType:"button",options:[{label:"左",value:"flex-start"},{label:"中",value:"center"},{label:"右",value:"flex-end"}]}},alignItems:{label:"垂直对齐",component:"radio-group",props:{optionType:"button",options:[{label:"上",value:"flex-start"},{label:"中",value:"center"},{label:"下",value:"flex-end"}]}},fontFamily:{label:"字体",component:"select",props:{options:[{label:"无",value:""}]}},fontWeight:{label:"字体粗细",component:"radio-group",props:{options:[{label:"细",value:100},{label:"正常",value:400},{label:"粗",value:700}],isTransformNumber:!0}},fontStyle:{label:"字体风格",component:"radio-group",props:{options:[{label:"正常",value:"normal"},{label:"倾斜",value:"italic"}],isTransformNumber:!0}},color:{label:"颜色",component:"color-pick"},colors:{label:"颜色",component:"color-group-pick"},centerLeft:{label:"水平位置",component:"input-number",props:{suffix:"%",min:0,max:100}},centerTop:{label:"垂直位置",component:"input-number",props:{suffix:"%",min:0,max:100}},lineHeight:{label:"行高",component:"input-number",props:{suffix:"px",min:0,step:1}},innerRadius:{label:"内半径",component:"input-number",props:{suffix:"%",min:0,max:100}},outerRadius:{label:"外半径",component:"input-number",props:{suffix:"%",min:0,max:100}},titleText:{label:"标题",component:"input"},titleSubtext:{label:"副标题",component:"input"},tooltipTrigger:{label:"触发条件",component:"radio-group",props:{options:[{label:"图形",value:"item"},{label:"坐标轴",value:"axis"},{label:"无",value:"none"}]}},tooltipTextStyleColor:{label:"文字颜色",component:"color-pick"},tooltipFormatter:{label:"格式化",component:"textarea"},legendTextStyleColor:[{label:"颜色",component:"color-pick",excludeType:"map"},{label:"文字颜色",component:"color-pick",onlyType:"map"}],legendTextShow:{label:"显示文字",component:"switch"},legendTitle:{label:"图例标题",component:"input"},legendFrontText:{label:"两端文本(前)",component:"input"},legendAfterText:{label:"两端文本(后)",component:"input"},legendBoxShadow:{label:"边框阴影",component:"input"},legendTitleFontSize:{label:"标题字号",component:"input-number",props:{suffix:"px",min:12}},legendTitleColor:{label:"标题颜色",component:"color-pick"},legendTop:[{label:"垂直位置",component:"radio-group",excludeType:"map",props:{options:[{label:"上",value:"top"},{label:"中",value:"middle"},{label:"下",value:"bottom"}]}},{label:"垂直位置",component:"radio-group",onlyType:"map",props:{options:[{label:"上",value:"top"},{label:"下",value:"bottom"}]}}],legendLeft:[{label:"水平位置",component:"radio-group",excludeType:"map",props:{options:[{label:"左",value:"left"},{label:"中",value:"center"},{label:"右",value:"right"}]}},{label:"水平位置",component:"radio-group",onlyType:"map",props:{options:[{label:"左",value:"left"},{label:"右",value:"right"}]}}],legendOrient:{label:"布局",component:"radio-group",props:{options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]}},labelFormatter:{label:"格式化",component:"input"},labelColor:{label:"标签颜色",component:"color-pick"},isUseLabelColors:{label:"系列色",component:"switch"},labelFontSize:{label:"字体大小",component:"input-number",props:{min:12,suffix:"px"}},labelPosition:[{label:"位置",component:"radio-group",onlyType:"pie",props:{options:[{label:"外侧",value:"outside"},{label:"内侧",value:"inside"},{label:"中心",value:"center"}]}},{label:"位置",component:"select",onlyType:["bar","radar","comboGraph","scatter"],props:{options:[{label:"上",value:"top"},{label:"中",value:"inside"},{label:"下",value:"bottom"},{label:"右",value:"right"},{label:"左",value:"left"}]}}],labelLineLength:{label:"第一段",component:"input-number",props:{min:0}},labelLineLength2:{label:"第二段",component:"input-number",props:{min:0}},symbolSize:{label:"标记点尺寸",component:"input-number",props:{min:0}},symbolColor:{label:"标记点颜色",component:"color-pick"},symbolWidth:{label:"图标宽",component:"input-number",props:{min:0}},symbolHeight:{label:"图标高",component:"input-number",props:{min:0}},smooth:{label:"线条光滑",component:"switch"},lineStyleWidth:{label:"线条宽度",component:"input-number",props:{min:0}},picker:{label:"选择类型",component:"select",props:{options:[{label:"日期",value:"date"},{label:"年份",value:"year"},{label:"月份",value:"month"},{label:"星期",value:"week"},{label:"季度",value:"quarter"}]}},format:[{label:"格式化",onlyType:"text",component:"select",props:{options:[{label:"无",value:""},{label:"百分比",value:"percent"},{label:"涨跌幅",value:"percentage"},{label:"金额",value:"money"},{label:"千分位",value:"thousands"}]}},{label:"格式化",component:"input",onlyType:["date","range","time"]}],showTime:{label:"展示时间",component:"switch"},xAxisSplitLineShow:{label:"分割线",component:"switch"},xAxisSplitAreaShow:{label:"分隔区域",component:"switch"},xAxisLineShow:{label:"显示轴线",component:"switch"},isBoundaryGap:{label:"两边留白",component:"switch"},xAxisSplitLineInterval:{label:"分割线间隔",component:"input-number",props:{suffix:"",min:0}},xAxisSplitLineStyleColor:{label:"分割线颜色",component:"color-pick"},xAxisLabelColor:{label:"名称颜色",component:"color-pick"},xAxisLineStyleColor:{label:"横边颜色",component:"color-pick"},xAxisTickShow:{label:"显示刻度",component:"switch"},yAxisTickShow:{label:"显示刻度",component:"switch"},xAxisLabelFormatter:{label:"格式化",component:"input"},yAxisSplitLineShow:{label:"分割线",component:"switch"},yAxisLeftSplitLineShow:{label:"分割线-左轴",component:"switch"},yAxisRightSplitLineShow:{label:"分割线-右轴",component:"switch"},yAxisSplitLineType:{label:"分割线类型",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisLeftSplitLineType:{label:"分割线类型-左轴",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisRightSplitLineType:{label:"分割线类型-左轴",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},xAxisSplitLineType:{label:"分割线类型",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisSplitAreaShow:{label:"分隔区域",component:"switch"},yAxisLabelShow:{label:"刻度标签",component:"switch"},xAxisLabelShow:{label:"刻度标签",component:"switch"},yAxisLineAlwaysDisplay:{label:"显示轴线",component:"switch"},yAxisSplitLineStyleColor:{label:"分割线颜色",component:"color-pick"},yAxisLabelColor:{label:"名称颜色",component:"color-pick"},yAxisLineStyleColor:{label:"竖边颜色",component:"color-pick"},yAxisLabelFormatter:{label:"格式化",component:"input"},roseType:{label:"玫瑰图",component:"radio-group",props:{options:[{label:"不展示",value:""},{label:"圆心角",value:"area"},{label:"半径",value:"radius"}]}},fullModal:{label:"全屏",component:"switch"},size:[{label:"尺寸",onlyType:"table",component:"radio-group",props:{options:[{label:"默认",value:"default"},{label:"中等",value:"middle"},{label:"小号",value:"small"}]}}],variableColor:{label:"变量颜色",component:"color-pick"},mode:[{label:"类型",component:"select",onlyType:"border",props:{options:[{label:"无标题",value:"no-title"},{label:"上标题",value:"top-title"},{label:"左标题",value:"left-title"}]}},{label:"类型",component:"radio-group",onlyType:"tabs",props:{options:[{label:"线条",value:"line"},{label:"卡片",value:"card"}]}},{label:"类型",component:"select",onlyType:"button",props:{options:[{label:"默认",value:"default"},{label:"主要",value:"primary"},{label:"虚线",value:"dashed"},{label:"链接",value:"link"},{label:"文本",value:"text"}]}},{label:"模式",onlyType:"select",component:"radio-group",props:{options:[{label:"单选",value:""},{label:"多选",value:"multiple"}]}}],position:[{label:"位置",onlyType:"modal",component:"select",props:{options:[{label:"默认",value:"default"},{label:"顶部",value:"top"},{label:"居中",value:"middle"},{label:"底部",value:"bottom"}]}}],yAxis:{label:"系列",component:"form-group",layout:"vertical",props:{max:2,format:[{label:["左轴","右轴"],type:"input",value:"axisLabelFormatter",props:{options:[{label:"柱状图",value:"bar"},{label:"折线图",value:"line"}]}}]}},seriesTypes:{label:"系列",component:"form-group",layout:"vertical",props:{format:[{label:"系列",type:"select",value:"type",useLabelIndex:!0,props:{options:[{label:"柱状图",value:"bar"},{label:"折线图",value:"line"}]}},{label:"对应轴",type:"select",value:"axisIndex",props:{options:[{label:"左轴",value:0},{label:"右轴",value:1}]}},{label:"提示框格式化",type:"input",value:"tooltipFormatter"}]}},barWidth:{label:"宽度",component:"input-number",props:{suffix:[{label:"%",value:"%"},{label:"px",value:"px"}],min:0}},itemHeight:{label:"高度",component:"input-number",props:{suffix:"px",min:0}},titleColor:{label:"字体颜色",component:"color-pick"},titleFontSize:{label:"字体大小",component:"input-number",props:{suffix:"px",min:12,max:100}},gridTop:{label:"上侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridBottom:{label:"下侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridLeft:{label:"左侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridRight:{label:"右侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridContainLabel:{label:"包含刻度标签",component:"switch"},geoLabelShow:{label:"展示文字",component:"switch"},toolboxOrient:{label:"排版",component:"radio-group",props:{options:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}]}},toolboxItemSize:{label:"图标大小",component:"input-number"},toolboxItemGap:{label:"图标间距",component:"input-number"},toolboxLeft:{label:"水平位置",component:"radio-group",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},toolboxTop:{label:"垂直位置",component:"radio-group",props:{options:[{label:"顶部",value:"top"},{label:"居中",value:"middle"},{label:"底部",value:"bottom"}]}},toolboxDownloadUrl:{label:"下载文件地址",component:"input",show:[{match:"toolboxDownloadShow",value:!0}]},toolboxInfoText:{label:"说明信息内容",component:"input",show:[{match:"toolboxInfoShow",value:!0}]},shape:{label:"形状",component:"radio-group",props:{options:[{label:"默认",value:"default"},{label:"圆角",value:"round"},{label:"圆形",value:"circle"}]}},href:[{label:"链接",component:"textarea",onlyType:["pie"],show:[{match:"linkPage",value:""}]}],target:[{label:"链接方式",component:"select",onlyType:["pie"],props:{options:[{label:"当前窗口",value:"self"},{label:"新窗口",value:"blank"},{label:"事件",value:"event"},{label:"模板",value:"template"},{label:"平台标签页",value:"ygt-tab"}]}}],targetTemplate:{label:"目标模板",component:"template-pick",onlyType:["pie"],show:[{match:"target",value:"template"}]},transParams:{label:"传递参数",component:"unit-config",layout:"vertical",onlyType:["pie"],props:{indexTip:`【参数名】是跳转链接上携带参数的key值;
1
+ "use strict";var It=Object.defineProperty,$t=Object.defineProperties;var Pt=Object.getOwnPropertyDescriptors;var be=Object.getOwnPropertySymbols;var Ee=Object.prototype.hasOwnProperty,We=Object.prototype.propertyIsEnumerable;var Be=(o,e,t)=>e in o?It(o,e,{enumerable:!0,configurable:!0,writable:!0,value:t}):o[e]=t,V=(o,e)=>{for(var t in e||(e={}))Ee.call(e,t)&&Be(o,t,e[t]);if(be)for(var t of be(e))We.call(e,t)&&Be(o,t,e[t]);return o},G=(o,e)=>$t(o,Pt(e));var Ge=(o,e)=>{var t={};for(var n in o)Ee.call(o,n)&&e.indexOf(n)<0&&(t[n]=o[n]);if(o!=null&&be)for(var n of be(o))e.indexOf(n)<0&&We.call(o,n)&&(t[n]=o[n]);return t};var J=(o,e,t)=>new Promise((n,a)=>{var l=u=>{try{m(t.next(u))}catch(c){a(c)}},i=u=>{try{m(t.throw(u))}catch(c){a(c)}},m=u=>u.done?n(u.value):Promise.resolve(u.value).then(l,i);m((t=t.apply(o,e)).next())});Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const I=require("lodash-es"),Ft=require("vue-color"),Vt=require("ant-design-vue"),H=require("vue"),Dt=[{title:"基本属性",excludeType:["border"],dataVNoHas:!0,props:["graphicType","colors"]},{title:"系列",props:["seriesTypes"]},{title:"折线图",onlyType:["line","comboGraph"],props:["areaStyleOpacity","areaGradientShow","areaGradientColor","smooth","lineStyleWidth","symbolSize","shadowColor","shadowBlur","shadowOffsetX","shadowOffsetY","customPoint"]},{title:"散点图",onlyType:["scatter"],props:["symbolSize","symbolColor","crossShow"]},{title:"雷达图",onlyType:["radar"],props:["areaStyleOpacity","lineStyleWidth","symbolSize","labelShow","axisNameColor"]},{title:"柱状图",onlyType:["bar","comboGraph"],props:["barWidth","barGap","barBorderRadius","isUseHorizontalAxis","axisInverse","isStack","labelShow","showBarBackground"]},{title:"饼图",onlyType:"pie",props:["centerTop","centerLeft","innerRadius","outerRadius","roseType","minAngle"]},{title:"布局",excludeType:["pie"],props:["gridTop","gridBottom","gridLeft","gridRight","gridContainLabel"]},{title:"标题",onlyType:["bar","comboGraph","line","pie","radar","scatter"],props:["titleText","titleFontSize","titleColor","fontWeight","textAlign"]},{title:"x轴",props:["xAxisLabelColor","xAxisLineStyleColor","xAxisLabelWidth","xAxisLabelOverflow","xAxisLabelRotate","xAxisTickShow","xAxisSplitLineShow","xAxisSplitLineType","xAxisSplitAreaShow","xAxisLabelShow","xAxisLineShow","isBoundaryGap","xAxisSplitLineInterval","xAxisSplitLineStyleColor","xAxisLabelFormatter","xAxisInverse","xAxisMinInterval","xAxisLabelInterval","xAxisLabelFontSize","xAxisName","xAxisMaxValue","showXAxisLineArrow","xAxisLineInverse","xAxisMax","xAxisMin"]},{title:"y轴",props:["yAxisLabelColor","yAxisLineStyleColor","yAxisLineAlwaysDisplay","yAxisLabelWidth","yAxisLabelOverflow","yAxisLabelRotate","yAxisTickShow","yAxisSplitLineShow","yAxisSplitLineType","yAxisLeftSplitLineShow","yAxisLeftSplitLineType","yAxisRightSplitLineShow","yAxisRightSplitLineType","yAxisSplitAreaShow","yAxisLabelShow","yAxisSplitLineStyleColor","yAxisLabelFormatter","yAxisInverse","yAxisMinInterval","yAxis","yAxisLabelFontSize","yAxisName","yAxisLeftName","yAxisRightName","yAxisLeftUnitAdapt","yAxisRightUnitAdapt","yAxisMaxValue","yAxisLeftMaxValue","yAxisRightMaxValue","showYAxisLineArrow","yAxisLineInverse","yAxisMax","yAxisMin"]},{title:"标签",enableProps:"labelShow",excludeType:"map",props:["labelFormatter","labelWidth","labelColor","isUseLabelColors","labelFontSize","labelPosition","labelOverflow"]},{title:"标签引导线",enableProps:"labelLineShow",props:["labelLineLength","labelLineLength2"]},{title:"图例",enableProps:"legendShow",excludeType:["map","scatter"],props:["legendFormatter","legendWidth","legendHeight","legendTextWidth","legendTextStyleColor","legendFontSize","legendTop","legendLeft","legendOrient","legendType","legendItemGap","legendItemWidth","legendItemHeight","legendScroll"]},{title:"图例",enableProps:"legendShow",onlyType:["scatter"],props:["legendTop","legendLeft","legendOrient","legendTextStyleColor"]},{title:"提示框",enableProps:"tooltipShow",excludeType:["button"],props:["tooltipTrigger","tooltipFormatter","tooltipFontSize","tooltipTextStyleColor","tooltipBackgroundColor","tooltipRequestData","tooltipPosition"]},{title:"自定义设置(气泡颜色)",onlyType:["scatter"],props:["visualColorKey","visualColorCondition"]},{title:"自定义设置(气泡大小)",onlyType:["scatter"],props:["visualSizeKey","visualSizeCondition"]},{title:"工具栏",enableProps:"toolboxShow",onlyType:["bar","comboGraph","line","pie","radar","scatter"],props:["toolboxOrient","toolboxItemSize","toolboxItemGap","toolboxLeft","toolboxTop","toolboxIconStyleBorderColor","toolboxLocation","toolboxDownloadShow","toolboxDataZoomShow","toolboxInfoShow","toolboxInfoSource","toolboxDownloadUrl","toolboxInfoText"]},{title:"渐变",enableProps:"gradientShow",showSwitch:!0,onlyType:["bar","proportion","comboGraph","text","radar","rectangle"],props:["isTransparent","gradientColor","gradientColors","gradientOffset","gradientAngle"]},{title:"图表标线",enableProps:"isShowMarkLine",showSwitch:!0,onlyType:["line","bar","comboGraph","scatter"],props:["markLineType"]},{title:"图表标点",onlyType:["valueLine"],props:["markPointFormatter","axisMarkPoint"]},{title:"图表标线",onlyType:["scatter"],props:["xAxisMarkLineValue","yAxisMarkLineValue"]},{title:"图表标域",onlyType:["scatter"],props:["axisMarkArea"]},{title:"默认范围值",enableProps:"defaultRangeValue",showSwitch:!0,onlyType:["bar","comboGraph","line"],props:["startValue","endValue"]},{title:"链接",onlyType:["pie"],props:["linkConfig"]},{title:"无数据提示",enableProps:"noDataTip",showSwitch:!0,onlyType:["line","bar","comboGraph","scatter","pie","radar"],props:["tipText","tipTextColor","tipTextFontSize"]},{title:"单位",enableProps:"unitShow",onlyType:["text"],props:["unitText","unitFontSize","unitFontWeight","unitColor","unitTop","unitLeft"]},{title:"目标值",enableProps:"targetShow",onlyType:["text"],props:["targetRule","targetValue","notExpectColor"]},{title:"地图数据",onlyType:"map",props:["mapJson","geoCenter"]},{title:"地图样式",onlyType:"map",props:["geoRoam","geoZoom","geoLabelColor","geoLabelShow","geoLabelFontSize","geoBackgroundImage","geoBackgroundImageRepeat","geoItemStyleAreaColor","geoItemStyleBorderColor","geoItemStyleBorderWidth","geoItemStyleShadowColor","geoItemStyleShadowOffsetX","geoItemStyleShadowOffsetY","geoItemStyleShadowBlur","symbolImage","symbolWidth","symbolHeight"]},{title:"悬停地图样式",onlyType:"map",props:["geoEmphasisDisabled","geoEmphasisLabelColor","geoEmphasisItemStyleAreaColor","geoEmphasisItemStyleBorderColor"]},{title:"区域样式",onlyType:["map"],props:["areaStyleKeyName","mapAreaStyleConfig"]},{title:"图例",enableProps:"legendShow",showSwitch:!0,onlyType:"map",props:["legendTitle","legendTitleFontSize","legendTitleColor","legendTextShow","legendFrontText","legendAfterText","legendTextStyleColor","legendOrient","legendTop","legendLeft","mapLegendType","legendBoxShadow"]},{title:"按钮",onlyType:"button",props:["mode","danger","shape","tooltipTextStyleColor","borderColor","buttonBackgroundColor"]},{title:"样式配置",onlyType:"pivotTable",props:["styleConfig"]},{title:"工具栏",enableProps:"toolboxShow",showSwitch:!0,excludeType:["bar","comboGraph","line","pie","radar","scatter","template","pivotTable","timeDisplay","rectangle","border","tabs","input","button","datePicker","rangePicker","navTab","map","image","iframe","indexPanel"],props:["isShowIndDetail","indDetailIconColor"]}],Mt=[{id:"",name:"饼图",keyName:"饼图",type:"ecanPie",width:"400px",height:"400px",position:"absolute",top:"",left:"",zIndex:1,rotate:"",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px",data:[{name:"名称一",value:335},{name:"名称二",value:310},{name:"名称三",value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleLeft:"",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],backgroundColor:"",tooltipShow:!0,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c} ({d}%)",legendShow:!0,legendTextStyleColor:"#333",legendOrient:"vertical",legendTop:"top",legendLeft:"left",innerRadius:"0%",outerRadius:"60%",centerLeft:"50%",centerTop:"50%",minAngle:0,labelShow:!0,labelColor:"#333",labelWidth:100,labelOverflow:"none",isUseLabelColors:!1,labelFontSize:12,labelPosition:"outside",labelFormatter:"{b}\\n{d}%",labelLineShow:!0,labelLineLength:10,labelLineLength2:15,roseType:"",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},dataFieldConfigType:"value",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendFormatter:"{name}",legendFontSize:"12px",tooltipPosition:"",graphicType:"ecanPie",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,legendType:"",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",linkConfig:[]},{id:"",name:"折线图",keyName:"折线图",type:"ecanLine",width:"400px",height:"400px",position:"absolute",top:"",left:"",zIndex:1,rotate:"",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelRotate:0,xAxisLabelWidth:void 0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanLine",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",tooltipFontSize:"12px",noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",defaultRangeValue:!1,startValue:"",endValue:"",isForbidClick:!1},{id:"",name:"柱状图",keyName:"柱状图",type:"ecanBar",width:"400px",height:"400px",position:"absolute",top:"",left:"",zIndex:1,rotate:"",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px",xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisLineAlwaysDisplay:!1,data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:310,type:"类型一"},{name:"名称三",value:310,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipFormatter:"{marker} {a} {c}",xAxisSplitLineShow:!0,xAxisSplitLineInterval:0,xAxisSplitAreaShow:!1,xAxisSplitLineStyleColor:"#333",xAxisLabelInterval:0,xAxisLabelColor:"#333",xAxisLabelRotate:0,xAxisLabelWidth:void 0,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelRotate:0,yAxisLabelWidth:void 0,yAxisLabelOverflow:"none",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",barWidth:"40%",barGap:"",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",isUseHorizontalAxis:!1,axisInverse:!1,xAxisInverse:!1,yAxisInverse:!1,isStack:!1,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,barBorderRadius:"",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,showBarBackground:!1,legendType:"",legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanBar",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",tooltipFontSize:"12px"},{id:"",name:"散点图",keyName:"散点图",type:"ecanScatter",width:"400px",height:"400px",position:"absolute",top:"",left:"",zIndex:1,rotate:"",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px",data:[{name:233,value:335},{name:556,value:310},{name:56,value:234}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",tooltipShow:!0,tooltipTrigger:"item",tooltipFormatter:"{marker} {b} {c}",legendShow:!1,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",symbolSize:10,symbolColor:"#5470c6",xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",xAxisLabelWidth:void 0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisLabelRotate:0,xAxisLabelFormatter:"{value}",yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",dataFieldNames:{name:"name",value:"value"},gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",yAxisLabelShow:!0,yAxisSplitLineType:"solid",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanScatter",tooltipPosition:"",yAxisName:"",xAxisName:"",showXAxisLineArrow:!1,showYAxisLineArrow:!1,xAxisLineInverse:!1,yAxisLineInverse:!1,yAxisTickShow:!0,xAxisMarkLineValue:[],yAxisMarkLineValue:[],axisMarkArea:[],xAxisMax:null,xAxisMin:null,yAxisMax:null,yAxisMin:null,xAxisLabelShow:!0,crossShow:!0,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",visualColorKey:"",visualColorCondition:[],visualSizeKey:"",visualSizeCondition:[]},{id:"",name:"组合图表",keyName:"组合图表",type:"ecanComboGraph",width:"400px",height:"400px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px",data:[{name:"名称一",value:335,type:"类型一"},{name:"名称二",value:410,type:"类型一"},{name:"名称三",value:210,type:"类型一"},{name:"名称一",value:510,type:"类型二"},{name:"名称二",value:731,type:"类型二"},{name:"名称三",value:910,type:"类型二"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],legendShow:!0,legendTextStyleColor:"#333",legendOrient:"horizontal",legendTop:"top",legendLeft:"center",tooltipShow:!0,tooltipTextStyleColor:"",tooltipTrigger:"item",tooltipFormatter:"{marker} {a} {c}",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisLabelRotate:0,xAxisLabelWidth:void 0,xAxisLabelOverflow:"none",xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisMinInterval:0,xAxisLabelFormatter:"{value}",yAxisLabelFormatter:"{value}",yAxisMinInterval:0,yAxisLeftSplitLineShow:!0,yAxisRightSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",seriesTypes:[{type:"bar",axisIndex:0},{type:"line",axisIndex:0}],yAxis:[{axisLabelFormatter:"{value}"},{axisLabelFormatter:"{value}"}],gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},toolboxLocation:!1,toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,symbolSize:4,lineStyleWidth:2,smooth:!1,barWidth:"40%",barGap:"",isStack:!1,barBorderRadius:"",areaGradientShow:!1,areaGradientColor:"",yAxisLabelShow:!0,yAxisLeftSplitLineType:"solid",yAxisRightSplitLineType:"solid",gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,legendType:"",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",graphicType:"ecanComboGraph",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisLeftName:"",yAxisRightName:"",xAxisName:"",defaultRangeValue:!1,startValue:"",endValue:"",xAxisMaxValue:null,yAxisLeftMaxValue:null,yAxisRightMaxValue:null,xAxisLabelShow:!0,yAxisLeftUnitAdapt:!1,yAxisRightUnitAdapt:!1,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px",labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{c}",tooltipFontSize:"12px"},{id:"",name:"自定义图表",keyName:"自定义图表",type:"ecanCustomGraph",width:"400px",height:"400px",position:"absolute",top:"0px",left:"0px",zIndex:1,rotate:"0deg",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px",option:{},optionCode:"",graphicType:"ecanCustomGraph"},{id:"",name:"雷达图",keyName:"雷达图",type:"ecanRadar",width:"400px",height:"400px",position:"absolute",top:"",left:"",zIndex:1,rotate:"",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px",data:[{name:"名称一",value:235,type:"类型一"},{name:"名称二",value:280,type:"类型一"},{name:"名称三",value:230,type:"类型一"},{name:"名称四",value:335,type:"类型一"},{name:"名称五",value:435,type:"类型一"},{name:"名称六",value:215,type:"类型一"}],titleText:"",titleSubtext:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],valueTypeDataFieldNames:{name:"name",value:"value",type:"type"},keyTypeDataFieldNames:{name:"name",types:[]},dataFieldConfigType:"value",tooltipShow:!0,tooltipFormatter:"{marker} {a} {c}",toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",lineStyleWidth:2,symbolSize:4,labelShow:!1,labelFontSize:"12px",labelPosition:"inside",labelColor:"",labelWidth:100,labelOverflow:"none",labelFormatter:"{value}",axisNameColor:"",legendFontSize:"12px",graphicConfig:{},graphicType:"ecanRadar",tooltipPosition:"",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,gradientShow:!1,gradientColors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],gradientOffset:1,noDataTip:!1,tipText:"暂无数据",tipTextColor:"#000000",tipTextFontSize:"18px"},{id:"",name:"双值轴折线图",keyName:"双值轴折线图",type:"ecanValueLine",width:"400px",height:"400px",position:"absolute",top:"",left:"",zIndex:1,rotate:"",isShow:!0,isRender:!0,requestUrl:"",requestType:0,requestMethod:"get",dataSetParam:{},requestHeaders:"{}",isOpenRequestTimer:!1,isViewRedrawing:!1,requestInterval:1,requestSort:0,requestParams:[{key:null,value:{}}],events:[],dataType:"static",scale:1,requestParamsMode:"1",customRequestParams:"{}",componentDoc:null,extendData:{},toolboxShow:!1,isShowIndDetail:!1,isShowTrend:!1,indDetailIconColor:"#333",indDetailIconFontSize:"16px",data:[{name:0,value:0,value2:10},{name:10,value:20,value2:35},{name:20,value:30,value2:25},{name:30,value:40,value2:55}],titleText:"",titleFontSize:"12px",titleColor:"#333",fontWeight:400,textAlign:"left",titleSubtext:"",titleLeft:"",legendShow:!0,legendOrient:"horizontal",legendTextStyleColor:"#333",legendTop:"top",legendLeft:"center",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:4,lineStyleWidth:2,smooth:!1,xAxisLabelRotate:0,xAxisLabelWidth:void 0,xAxisLabelOverflow:"none",xAxisLabelInterval:0,xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLabelColor:"#333",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelFormatter:"{value}",xAxisMinInterval:0,yAxisMinInterval:0,yAxisSplitLineShow:!0,yAxisSplitAreaShow:!1,yAxisSplitLineStyleColor:"#333",yAxisLabelColor:"#333",yAxisLineStyleColor:"#333",yAxisLineAlwaysDisplay:!1,yAxisLabelFormatter:"{value}",gridContainLabel:!0,gridTop:"10%",gridBottom:"10%",gridLeft:"5%",gridRight:"5%",graphicConfig:{},tooltipShow:!0,tooltipFormatter:"{marker} {a}:{c}",toolboxDownloadShow:!0,toolboxDataZoomShow:!0,toolboxInfoShow:!0,toolboxInfoSource:!1,toolboxOrient:"horizontal",toolboxItemSize:16,toolboxItemGap:8,toolboxLeft:"right",toolboxTop:"top",toolboxIconStyleBorderColor:"#666",toolboxDownloadUrl:"",toolboxInfoText:"当前无说明信息",areaStyleOpacity:0,areaGradientShow:!1,areaGradientColor:"",isBoundaryGap:!0,yAxisLabelShow:!0,yAxisSplitLineType:"solid",legendItemGap:10,legendItemWidth:25,legendItemHeight:14,legendType:"",shadowColor:"",shadowBlur:0,shadowOffsetY:0,shadowOffsetX:0,legendFontSize:"12px",xAxisLabelFontSize:"12px",yAxisLabelFontSize:"12px",tooltipPosition:"",isShowMarkLine:!1,markLineType:"average",legendFormatter:"{name}",legendWidth:null,legendHeight:null,legendTextWidth:null,legendScroll:!1,yAxisName:"",xAxisName:"",xAxisMaxValue:null,yAxisMaxValue:null,xAxisLabelShow:!0,tooltipTextStyleColor:"",customPoint:"",axisMarkPoint:[],markPointFormatter:"{x}, {y}"}],Le={text:{label:"文本",component:"textarea"},title:{label:"标题",component:"input"},textShadow:{label:"阴影",component:"input"},width:[{label:"宽度",component:"input-number",props:{suffix:[{label:"px",value:"px"},{label:"%",value:"%"}],min:0}}],height:[{label:"高度",component:"input-number",props:{suffix:[{label:"px",value:"px"},{label:"%",value:"%"}],min:1}}],pageFontFamily:{label:"字体",component:"select",updateMode:"page",onlyType:"page",props:{options:[{label:"无",value:""}]}},textColor:{label:"字体颜色",component:"color-pick",updateMode:"page",onlyType:"page",style:"flex: 1;",props:{tooltip:"设置了字体颜色后,页面上所有未设置颜色和变量颜色的文本组件将会使用这里设置的颜色"}},value:[{label:"时间值",component:"time-pick",onlyType:"date"},{label:"默认值",component:"input",onlyType:"select"},{label:"默认值",component:"input",onlyType:"tabs"},{label:"默认值",component:"input",onlyType:"input"},{label:"默认值",component:"checkbox",onlyType:"checkbox"},{label:"默认值",component:"input",onlyType:"radio"}],placeholder:[{label:"占位文字",component:"input"}],imgUrl:{label:"图片",component:"image-pick",show:[{match:"isAnimation",value:!1}]},linkPage:[{label:"",layout:"vertical",component:"page-pick",props:{crossProject:!0},projectKey:"linkProjectId",onlyType:["pie"]}],linkConfig:{label:"",component:"link-config",layout:"vertical",onlyType:"pie"},fontSize:{label:"字号",component:"input-number",props:{suffix:"px",min:12,max:100}},left:{label:"x轴",component:"input-number",props:{suffix:"px"}},top:{label:"y轴",component:"input-number",props:{suffix:"px"}},textAlign:{label:"水平对齐",component:"radio-group",props:{optionType:"button",options:[{label:"左",value:"left"},{label:"中",value:"center"},{label:"右",value:"right"}]}},verticalAlign:{label:"垂直对齐",component:"radio-group",props:{optionType:"button",options:[{label:"上",value:"top"},{label:"中",value:"middle"},{label:"下",value:"bottom"}]}},justifyContent:{label:"水平对齐",component:"radio-group",props:{optionType:"button",options:[{label:"左",value:"flex-start"},{label:"中",value:"center"},{label:"右",value:"flex-end"}]}},alignItems:{label:"垂直对齐",component:"radio-group",props:{optionType:"button",options:[{label:"上",value:"flex-start"},{label:"中",value:"center"},{label:"下",value:"flex-end"}]}},fontFamily:{label:"字体",component:"select",props:{options:[{label:"无",value:""}]}},fontWeight:{label:"字体粗细",component:"radio-group",props:{options:[{label:"细",value:100},{label:"正常",value:400},{label:"粗",value:700}],isTransformNumber:!0}},fontStyle:{label:"字体风格",component:"radio-group",props:{options:[{label:"正常",value:"normal"},{label:"倾斜",value:"italic"}],isTransformNumber:!0}},color:{label:"颜色",component:"color-pick"},colors:{label:"颜色",component:"color-group-pick"},centerLeft:{label:"水平位置",component:"input-number",props:{suffix:"%",min:0,max:100}},centerTop:{label:"垂直位置",component:"input-number",props:{suffix:"%",min:0,max:100}},lineHeight:{label:"行高",component:"input-number",props:{suffix:"px",min:0,step:1}},innerRadius:{label:"内半径",component:"input-number",props:{suffix:"%",min:0,max:100}},outerRadius:{label:"外半径",component:"input-number",props:{suffix:"%",min:0,max:100}},titleText:{label:"标题",component:"input"},titleSubtext:{label:"副标题",component:"input"},tooltipTrigger:{label:"触发条件",component:"radio-group",props:{options:[{label:"图形",value:"item"},{label:"坐标轴",value:"axis"},{label:"无",value:"none"}]}},tooltipTextStyleColor:{label:"文字颜色",component:"color-pick"},tooltipFormatter:{label:"格式化",component:"textarea"},legendTextStyleColor:[{label:"颜色",component:"color-pick",excludeType:"map"},{label:"文字颜色",component:"color-pick",onlyType:"map"}],legendTextShow:{label:"显示文字",component:"switch"},legendTitle:{label:"图例标题",component:"input"},legendFrontText:{label:"两端文本(前)",component:"input"},legendAfterText:{label:"两端文本(后)",component:"input"},legendBoxShadow:{label:"边框阴影",component:"input"},legendTitleFontSize:{label:"标题字号",component:"input-number",props:{suffix:"px",min:12}},legendTitleColor:{label:"标题颜色",component:"color-pick"},legendTop:[{label:"垂直位置",component:"radio-group",excludeType:"map",props:{options:[{label:"上",value:"top"},{label:"中",value:"middle"},{label:"下",value:"bottom"}]}},{label:"垂直位置",component:"radio-group",onlyType:"map",props:{options:[{label:"上",value:"top"},{label:"下",value:"bottom"}]}}],legendLeft:[{label:"水平位置",component:"radio-group",excludeType:"map",props:{options:[{label:"左",value:"left"},{label:"中",value:"center"},{label:"右",value:"right"}]}},{label:"水平位置",component:"radio-group",onlyType:"map",props:{options:[{label:"左",value:"left"},{label:"右",value:"right"}]}}],legendOrient:{label:"布局",component:"radio-group",props:{options:[{label:"垂直",value:"vertical"},{label:"水平",value:"horizontal"}]}},labelFormatter:{label:"格式化",component:"input"},labelColor:{label:"标签颜色",component:"color-pick"},isUseLabelColors:{label:"系列色",component:"switch"},labelFontSize:{label:"字体大小",component:"input-number",props:{min:12,suffix:"px"}},labelPosition:[{label:"位置",component:"radio-group",onlyType:"pie",props:{options:[{label:"外侧",value:"outside"},{label:"内侧",value:"inside"},{label:"中心",value:"center"}]}},{label:"位置",component:"select",onlyType:["bar","radar","comboGraph","scatter"],props:{options:[{label:"上",value:"top"},{label:"中",value:"inside"},{label:"下",value:"bottom"},{label:"右",value:"right"},{label:"左",value:"left"}]}}],labelLineLength:{label:"第一段",component:"input-number",props:{min:0}},labelLineLength2:{label:"第二段",component:"input-number",props:{min:0}},symbolSize:{label:"标记点尺寸",component:"input-number",props:{min:0}},symbolColor:{label:"标记点颜色",component:"color-pick"},symbolWidth:{label:"图标宽",component:"input-number",props:{min:0}},symbolHeight:{label:"图标高",component:"input-number",props:{min:0}},smooth:{label:"线条光滑",component:"switch"},lineStyleWidth:{label:"线条宽度",component:"input-number",props:{min:0}},picker:{label:"选择类型",component:"select",props:{options:[{label:"日期",value:"date"},{label:"年份",value:"year"},{label:"月份",value:"month"},{label:"星期",value:"week"},{label:"季度",value:"quarter"}]}},format:[{label:"格式化",onlyType:"text",component:"select",props:{options:[{label:"无",value:""},{label:"百分比",value:"percent"},{label:"涨跌幅",value:"percentage"},{label:"金额",value:"money"},{label:"千分位",value:"thousands"}]}},{label:"格式化",component:"input",onlyType:["date","range","time"]}],showTime:{label:"展示时间",component:"switch"},xAxisSplitLineShow:{label:"分割线",component:"switch"},xAxisSplitAreaShow:{label:"分隔区域",component:"switch"},xAxisLineShow:{label:"显示轴线",component:"switch"},isBoundaryGap:{label:"两边留白",component:"switch"},xAxisSplitLineInterval:{label:"分割线间隔",component:"input-number",props:{suffix:"",min:0}},xAxisSplitLineStyleColor:{label:"分割线颜色",component:"color-pick"},xAxisLabelColor:{label:"名称颜色",component:"color-pick"},xAxisLineStyleColor:{label:"横边颜色",component:"color-pick"},xAxisTickShow:{label:"显示刻度",component:"switch"},yAxisTickShow:{label:"显示刻度",component:"switch"},xAxisLabelFormatter:{label:"格式化",component:"input"},yAxisSplitLineShow:{label:"分割线",component:"switch"},yAxisLeftSplitLineShow:{label:"分割线-左轴",component:"switch"},yAxisRightSplitLineShow:{label:"分割线-右轴",component:"switch"},yAxisSplitLineType:{label:"分割线类型",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisLeftSplitLineType:{label:"分割线类型-左轴",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisRightSplitLineType:{label:"分割线类型-左轴",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},xAxisSplitLineType:{label:"分割线类型",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},yAxisSplitAreaShow:{label:"分隔区域",component:"switch"},yAxisLabelShow:{label:"刻度标签",component:"switch"},xAxisLabelShow:{label:"刻度标签",component:"switch"},yAxisLineAlwaysDisplay:{label:"显示轴线",component:"switch"},yAxisSplitLineStyleColor:{label:"分割线颜色",component:"color-pick"},yAxisLabelColor:{label:"名称颜色",component:"color-pick"},yAxisLineStyleColor:{label:"竖边颜色",component:"color-pick"},yAxisLabelFormatter:{label:"格式化",component:"input"},roseType:{label:"玫瑰图",component:"radio-group",props:{options:[{label:"不展示",value:""},{label:"圆心角",value:"area"},{label:"半径",value:"radius"}]}},fullModal:{label:"全屏",component:"switch"},size:[{label:"尺寸",onlyType:"table",component:"radio-group",props:{options:[{label:"默认",value:"default"},{label:"中等",value:"middle"},{label:"小号",value:"small"}]}}],variableColor:{label:"变量颜色",component:"color-pick"},mode:[{label:"类型",component:"select",onlyType:"border",props:{options:[{label:"无标题",value:"no-title"},{label:"上标题",value:"top-title"},{label:"左标题",value:"left-title"}]}},{label:"类型",component:"radio-group",onlyType:"tabs",props:{options:[{label:"线条",value:"line"},{label:"卡片",value:"card"}]}},{label:"类型",component:"select",onlyType:"button",props:{options:[{label:"默认",value:"default"},{label:"主要",value:"primary"},{label:"虚线",value:"dashed"},{label:"链接",value:"link"},{label:"文本",value:"text"}]}},{label:"模式",onlyType:"select",component:"radio-group",props:{options:[{label:"单选",value:""},{label:"多选",value:"multiple"}]}}],position:[{label:"位置",onlyType:"modal",component:"select",props:{options:[{label:"默认",value:"default"},{label:"顶部",value:"top"},{label:"居中",value:"middle"},{label:"底部",value:"bottom"}]}}],yAxis:{label:"系列",component:"form-group",layout:"vertical",props:{max:2,format:[{label:["左轴","右轴"],type:"input",value:"axisLabelFormatter",props:{options:[{label:"柱状图",value:"bar"},{label:"折线图",value:"line"}]}}]}},seriesTypes:{label:"系列",component:"form-group",layout:"vertical",props:{format:[{label:"系列",type:"select",value:"type",useLabelIndex:!0,props:{options:[{label:"柱状图",value:"bar"},{label:"折线图",value:"line"}]}},{label:"对应轴",type:"select",value:"axisIndex",props:{options:[{label:"左轴",value:0},{label:"右轴",value:1}]}},{label:"提示框格式化",type:"input",value:"tooltipFormatter"}]}},barWidth:{label:"宽度",component:"input-number",props:{suffix:[{label:"%",value:"%"},{label:"px",value:"px"}],min:0}},barGap:{label:"柱间距",component:"input-number",props:{suffix:"%",min:-100}},itemHeight:{label:"高度",component:"input-number",props:{suffix:"px",min:0}},titleColor:{label:"字体颜色",component:"color-pick"},titleFontSize:{label:"字体大小",component:"input-number",props:{suffix:"px",min:12,max:100}},gridTop:{label:"上侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridBottom:{label:"下侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridLeft:{label:"左侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridRight:{label:"右侧距离",component:"input-number",props:{suffix:"%",min:0,max:100}},gridContainLabel:{label:"包含刻度标签",component:"switch"},geoLabelShow:{label:"展示文字",component:"switch"},toolboxOrient:{label:"排版",component:"radio-group",props:{options:[{label:"水平",value:"horizontal"},{label:"垂直",value:"vertical"}]}},toolboxItemSize:{label:"图标大小",component:"input-number"},toolboxItemGap:{label:"图标间距",component:"input-number"},toolboxLeft:{label:"水平位置",component:"radio-group",props:{options:[{label:"居左",value:"left"},{label:"居中",value:"center"},{label:"居右",value:"right"}]}},toolboxTop:{label:"垂直位置",component:"radio-group",props:{options:[{label:"顶部",value:"top"},{label:"居中",value:"middle"},{label:"底部",value:"bottom"}]}},toolboxDownloadUrl:{label:"下载文件地址",component:"input",show:[{match:"toolboxDownloadShow",value:!0}]},toolboxInfoText:{label:"说明信息内容",component:"input",show:[{match:"toolboxInfoShow",value:!0}]},shape:{label:"形状",component:"radio-group",props:{options:[{label:"默认",value:"default"},{label:"圆角",value:"round"},{label:"圆形",value:"circle"}]}},href:[{label:"链接",component:"textarea",onlyType:["pie"],show:[{match:"linkPage",value:""}]}],target:[{label:"链接方式",component:"select",onlyType:["pie"],props:{options:[{label:"当前窗口",value:"self"},{label:"新窗口",value:"blank"},{label:"事件",value:"event"},{label:"模板",value:"template"},{label:"平台标签页",value:"ygt-tab"}]}}],targetTemplate:{label:"目标模板",component:"template-pick",onlyType:["pie"],show:[{match:"target",value:"template"}]},transParams:{label:"传递参数",component:"unit-config",layout:"vertical",onlyType:["pie"],props:{indexTip:`【参数名】是跳转链接上携带参数的key值;
2
2
  【参数值】是跳转链接上携带参数的value值。`,keyName:"参数名",fieldName:"参数值",layout:"vertical"},show:[{match:"actionType",value:"link",rule:"or"},{match:"actionType",value:void 0}]},barBorderRadius:{label:"圆角",component:"input"},isUseHorizontalAxis:{label:"横向排列",component:"switch"},axisInverse:{label:"倒叙排列",component:"switch"},xAxisInverse:{label:"图形反转",component:"switch"},yAxisInverse:{label:"图形反转",component:"switch"},decimalFormat:{label:"保留小数",component:"switch"},variableDefaultValue:{label:"变量默认值",component:"input"},strokeTextShow:{label:"显示文本",component:"switch"},areaStyleOpacity:{label:"面积透明度",component:"input-number",props:{step:.1,min:0,max:1}},areaGradientShow:{label:"面积渐变",component:"switch"},areaGradientColor:{label:"渐变颜色",component:"color-pick",show:[{match:"areaGradientShow",value:!0}]},xAxisLabelWidth:{label:"名称宽度",component:"input-number",props:{min:0}},xAxisLabelOverflow:{label:"名称溢出",component:"radio-group",props:{optionType:"button",options:[{label:"无",value:"none"},{label:"换行",value:"break"},{label:"省略号",value:"truncate"}]}},xAxisLabelRotate:{label:"名称旋转",component:"input-number"},yAxisLabelWidth:{label:"名称宽度",component:"input-number",props:{min:0}},yAxisLabelOverflow:{label:"名称溢出",component:"radio-group",props:{optionType:"button",options:[{label:"无",value:"none"},{label:"换行",value:"break"},{label:"省略号",value:"truncate"}]}},yAxisLabelRotate:{label:"名称旋转",component:"input-number"},isStack:{label:"是否堆叠",component:"switch"},clickHighlight:{label:"点击高亮",component:"switch"},labelShow:{label:"展示标签",component:"switch"},isReverse:{label:"是否反转",component:"switch"},link:{label:"链接",component:"textarea"},linkType:{onlyType:"iframe",label:"链接类型",component:"radio-group",props:{options:[{label:"网页",value:"web"},{label:"报表工程",value:"erd"}]}},maxTagCount:{label:"显示最大数",component:"input-number",show:[{match:"mode",value:"multiple"}]},xAxisMinInterval:{label:"最小间距",component:"input-number",props:{min:0}},yAxisMinInterval:{label:"最小间距",component:"input-number",props:{min:0}},minAngle:{label:"最小角度",component:"input-number",props:{min:0,max:360}},autoSwitch:{label:"自动切换",component:"switch"},autoSwitchInterval:{label:"切换间隔",component:"input-number",props:{min:0},show:[{match:"autoSwitch",value:!0}]},xAxisLabelInterval:{label:"标签间隔",component:"input-number",props:{min:-1}},toolboxLocation:{label:"快速定位",component:"switch"},toolboxDownloadShow:{label:"使用数据下载",component:"switch"},toolboxDataZoomShow:{label:"使用放大",component:"switch"},toolboxInfoShow:{label:"使用说明信息",component:"switch"},toolboxInfoSource:{label:"指标来源",component:"switch"},gradientColor:{label:"渐变颜色",component:"color-pick"},gradientOffset:{label:"渐变度",component:"slider"},legendItemGap:{label:"图例项间隔",component:"input-number",props:{min:1}},legendItemWidth:{label:"图例图形宽度",component:"input-number",props:{min:1}},legendItemHeight:{label:"图例图形高度",component:"input-number",props:{min:1}},showBarBackground:{label:"背景色",component:"switch"},gradientColors:{label:"颜色",onlyType:"bar",component:"color-group-pick"},legendType:{label:"图例类型 ",component:"select",props:{options:[{label:"默认",value:""},{label:"圆形",value:"circle"},{label:"矩形",value:"rect"},{label:"圆角矩形",value:"roundRect"},{label:"三角形",value:"triangle"},{label:"菱形",value:"diamond"},{label:"箭头",value:"arrow"}]}},mapLegendType:{label:"图例类型 ",component:"select",props:{options:[{label:"圆形",value:"circle"},{label:"矩形",value:"rect"}]}},radioMode:{label:"模式",component:"radio-group",props:{options:[{label:"默认",value:"native"},{label:"自定义",value:"custom"}]}},optionType:{label:"样式",component:"radio-group",props:{options:[{label:"默认",value:"default"},{label:"框组",value:"button"}]},show:[{match:"radioMode",value:"native"}]},gradientAngle:{label:"渐变角度",component:"input-number",props:{suffix:"deg"}},axisNameColor:{label:"名称颜色",component:"color-pick"},shadowColor:{label:"阴影颜色",component:"color-pick"},shadowBlur:{label:"阴影模糊度",component:"input-number",props:{min:0}},shadowOffsetX:{label:"阴影偏移(X)",component:"input-number",props:{min:0}},shadowOffsetY:{label:"阴影偏移(Y)",component:"input-number",props:{min:0}},borderStyle:{label:"边框线类型",component:"radio-group",props:{optionType:"button",options:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},unitText:{label:"文本",component:"input"},unitFontSize:{label:"字号",component:"input-number",props:{suffix:"px",min:12,max:100}},unitFontWeight:{label:"字体粗细",component:"radio-group",props:{options:[{label:"细",value:100},{label:"正常",value:400},{label:"粗",value:700}],isTransformNumber:!0}},unitColor:{label:"颜色",component:"color-pick"},unitTop:{label:"上侧距离",component:"input-number",props:{suffix:"%"}},unitLeft:{label:"左侧距离",component:"input-number",props:{suffix:"%"}},legendFormatter:{label:"格式化",component:"textarea"},titleMode:{label:"标题背景",component:"select",props:{options:[{label:"类型一",value:"type-1"},{label:"类型二",value:"type-2"}]}},legendFontSize:{label:"字体大小",component:"input-number",props:{min:1,suffix:"px"}},valueType:{label:"传值类型",component:"select",props:{options:[{label:"值",value:"value"},{label:"名称",value:"label"}]}},xAxisLabelFontSize:{label:"字体大小",component:"input-number",props:{min:1,suffix:"px"}},yAxisLabelFontSize:{label:"字体大小",component:"input-number",props:{min:1,suffix:"px"}},tooltipRequestData:{label:"配置请求",component:"tooltip-request"},tooltipBackgroundColor:{label:"背景颜色",component:"color-pick"},seqWidth:{label:"宽度",component:"input-number",props:{min:0,max:100,suffix:"%"}},isAllowClear:{label:"支持清除",component:"switch"},isSummaryFixed:{label:"固定小计行",component:"switch"},labelWidth:{label:"标签宽度",component:"input-number",props:{min:0}},labelOverflow:{label:"标签溢出",component:"radio-group",props:{optionType:"button",options:[{label:"无",value:"none"},{label:"换行",value:"break"},{label:"省略号",value:"truncate"}]}},isPageBottom:{label:"固定在底部",component:"switch"},optionFontSize:{label:"字体大小",component:"input-number",props:{min:12,suffix:"px"}},isShowTotal:{label:"显示总数",component:"switch"},graphicType:{label:"图表类型",component:"select",props:{options:[{label:"饼图",value:"ecanPie"},{label:"折线图",value:"ecanLine"},{label:"柱状图",value:"ecanBar"},{label:"散点图",value:"ecanScatter"},{label:"雷达图",value:"ecanRadar"},{label:"组合图表",value:"ecanComboGraph"},{label:"自定义图表",value:"ecanCustomGraph"}],graphic:!0}},isTransparent:{label:"透明色",component:"switch"},hideTableHeader:{label:"隐藏",component:"switch"},closeBtnColor:{label:"关闭按钮颜色",component:"color-pick"},tooltipPosition:{label:"位置",component:"select",props:{options:[{label:"默认",value:""},{label:"左侧",value:"left"},{label:"右侧",value:"right"}]}},markLineType:{label:"标线类型",component:"select",props:{options:[{label:"平均值",value:"average"},{label:"最小值",value:"min"},{label:"最大值",value:"max"},{label:"中位数",value:"median"}]}},legendWidth:{label:"区域宽度",component:"input-number"},legendHeight:{label:"区域高度",component:"input-number"},legendTextWidth:{label:"文字宽度",component:"input-number"},legendScroll:{label:"分页",component:"switch"},boxShadow:{label:"阴影",component:"textarea"},limitInterval:{label:"限制范围",component:"input-number",props:{min:0,suffixValueKey:"mode",suffix:[{label:"年",value:"year"},{label:"月",value:"month"},{label:"周",value:"week"},{label:"日",value:"day"},{label:"时",value:"hour"},{label:"分",value:"minute"}]}},xAxisName:{label:"坐标轴名称",component:"input"},yAxisName:{label:"坐标轴名称",component:"input"},yAxisLeftName:{label:"坐标轴名称-左轴",component:"input"},yAxisRightName:{label:"坐标轴名称-右轴",component:"input"},seqIconWidth:{label:"图标宽度",component:"input-number",props:{suffix:"px",min:0}},seqIconHeight:{label:"图标高度",component:"input-number",props:{suffix:"px",min:0}},seqIconOffsetX:{label:"横向偏移",component:"input-number",props:{suffix:"px"}},seqIconOffsetY:{label:"纵向偏移",component:"input-number",props:{suffix:"px"}},seqIndexFormatter:{label:"格式化",component:"textarea"},unitInterval:{label:"单位间隔",component:"input-number",props:{min:0}},keyFieldMap:{label:"数据配置",component:"unit-config",layout:"vertical",onlyType:"circulate",props:{indexTip:`【别名】是循环列表内部要循环的组件别名;
3
3
  【字段】是接口返回的数据字段;`,keyName:"别名",fieldName:"字段"}},itemWidth:{label:"宽度",component:"input-number",props:{suffix:"%",min:1,max:100}},startValue:{label:"开始值",component:"textarea"},endValue:{label:"结束值",component:"textarea"},colNum:{label:"列数量",component:"input-number"},digits:{label:"位数",component:"input-number",props:{min:0}},unitWidth:{label:"单位宽度",component:"input-number",props:{suffix:"px",min:10}},unitHeight:{label:"单位高度",component:"input-number",props:{suffix:"px",min:10}},counterBackgroundImage:{label:"背景图",component:"image-pick"},showEllipsis:{label:"超出省略号",component:"switch"},exceedConfig:{label:"内容超出时",component:"select",props:{options:[{label:"默认",value:""},{label:"换行",value:"wrap"},{label:"省略号",value:"ellipsis"}]},show:[{match:"isContentMarkDown",value:!1}]},xAxisMaxValue:{label:"最大值",component:"input-number",props:{min:0}},yAxisMaxValue:{label:"最大值",component:"input-number",props:{min:0}},yAxisLeftMaxValue:{label:"最大值-左轴",component:"input-number",props:{min:0}},yAxisRightMaxValue:{label:"最大值-右轴",component:"input-number",props:{min:0}},scrollDirection:{label:"滚动方向",component:"radio-group",props:{options:[{label:"竖直",value:"vertical"},{label:"水平",value:"horizontal"}]}},hideTabs:{label:"隐藏标签",component:"switch"},gridTopPx:{label:"上侧距离",component:"input-number",props:{suffix:"px",min:0}},gridBottomPx:{label:"下侧距离",component:"input-number",props:{suffix:"px",min:0}},gridLeftPx:{label:"左侧距离",component:"input-number",props:{suffix:"px",min:0}},gridRightPx:{label:"右侧距离",component:"input-number",props:{suffix:"px",min:0}},showXAxisLineArrow:{label:"显示箭头",component:"switch"},showYAxisLineArrow:{label:"显示箭头",component:"switch"},xAxisLineInverse:{label:"倒序",component:"switch"},yAxisLineInverse:{label:"倒序",component:"switch"},xAxisMarkLineValue:{label:"x轴标线",component:"mark-link-config",layout:"vertical",onlyType:"scatter",props:{indexTip:`【值】代表标线在x轴上的刻度。固定的值直接输入数字;动态的值可以输入表达式,系统提供了两个变量:max和min,
4
4
  max表示x轴刻度最大值,min表示x轴刻度最小值。使用变量的时候需要用“{}”符号包裹变量,例如添加一根位于x轴正中间的标线可以这么写:({max} + {min}) / 2`}},yAxisMarkLineValue:{label:"y轴标线",component:"mark-link-config",layout:"vertical",onlyType:"scatter",props:{indexTip:`【值】代表标线在y轴上的刻度。固定的值直接输入数字;动态的值可以输入表达式,系统提供了两个变量:max和min,
@@ -6,8 +6,8 @@
6
6
  正确的标出区域。如果不设置标域颜色将会使用图表默认颜色。系统提供四个变量:xMax、xMin、yMax、yMin,xMax表示x轴刻度最大值,xMin表示x轴刻度最小值,
7
7
  yMax表示y轴刻度最大值,yMin表示y轴刻度最小值。使用变量的时候需要用“{}”符号包裹变量`}},areaStyleKeyName:{label:"值字段",component:"input",style:{width:"85%"},props:{tooltip:"条件判断依据的值字段,即地图数据中每个区域数据中某个值的key。不要用value作为判断的字段,因为在地图里面value用于表示坐标了。"}},mapAreaStyleConfig:{label:"条件设置",component:"map-area-config",layout:"vertical",onlyType:"map"},xAxisMax:{label:"最大值",component:"input-number"},xAxisMin:{label:"最小值",component:"input-number"},yAxisMax:{label:"最大值",component:"input-number"},yAxisMin:{label:"最小值",component:"input-number"},dimensionList:{label:"维度",component:"dim-ind-pick",props:{dimension:!0}},indicatorList:{label:"指标",component:"dim-ind-pick",props:{indicators:!0}},parentIframeId:{label:"Iframe Id",component:"input",style:{width:"85%"},props:{tooltip:"当大屏被嵌入到其他系统时,全屏弹窗需要触发指定的iframe做出变化,不填写将会默认触发父级iframe"},show:[{match:"fullModal",value:!0}]},banScale:{label:"禁用缩放",component:"switch"},crossShow:{label:"十字准星",component:"switch"},customPoint:{label:"自定义数据",component:"custom-point",onlyType:"valueLine"},axisMarkPoint:{label:"图表标点",component:"mark-point-config",layout:"vertical",onlyType:"valueLine",props:{indexTip:`标点提供了一个计算两根直线交点的内置函数:getIntersectPoint,该函数的入参为两个直线的4个端点坐标,坐标值可以用 “{}” 包裹组件别名作为变量。
8
8
  例如直线1端点坐标为(x1, y1)、(x2, y2),直线2端点坐标为(x3, y3)、(x4, y4),那么函数这么写:getIntersectPoint(x1, y1, x2, y2, x3, y3, x4, y4),
9
- 其中坐标值可以是这样:{固定成本},固定成本是某个文本组件的别名,那么坐标值将会等于别名为固定成本的文本组件的值`}},markPointFormatter:{label:"提示框格式化",component:"textarea"},yAxisLeftUnitAdapt:{label:"左轴单位适配",component:"switch"},yAxisRightUnitAdapt:{label:"右轴单位适配",component:"switch"},tipText:{label:"提示文字",component:"input"},tipTextColor:{label:"文字颜色",component:"color-pick"},tipTextFontSize:{label:"文字大小",component:"input-number",props:{suffix:"px"}},titleContent:{label:"内容",component:"input"},titleFontColor:{label:"文字颜色",component:"color-pick"},titleBackgroundColor:{label:"背景色",component:"color-pick"},isShowIndDetail:{label:"指标详情",component:"switch",style:"width: auto;",props:{tooltip:"控件数据来源选择指标库时有效。点击后显示指标详细信息弹窗"}},isShowTrend:{label:"趋势图",component:"switch",style:"width: auto;",props:{tooltip:"控件数据来源选择指标库时有效。点击后显示趋势图弹窗"}},indDetailIconColor:{label:"图标颜色",component:"color-pick"},indDetailIconFontSize:{label:"图标大小",component:"input-number",props:{suffix:"px",disabled:!1}},gridInterval:{label:"操作",component:"operation-wrapper"},bodyRowHeight:{label:"行高",component:"input-number",props:{suffix:"px",min:0}},headRowHeight:{label:"行高",component:"input-number",props:{suffix:"px",min:0}},lineTextPosition:{label:"文本位置",component:"select",onlyType:"proportion",props:{options:[{label:"进度条右侧",value:"right"},{label:"跟随进度条",value:"shadow"}]}},drillDetailUrl:{label:"钻取明细url",component:"textarea",show:[{match:"drillingMode",value:"pivotTable",rule:"or"},{match:"drillingMode",value:"normalTable"}]},visualColorKey:{label:"匹配字段",component:"graphic-field-select",style:{width:"85%"},props:{tooltip:"条件判断依据的字段,图表接口返回数据中的数据字段"}},visualColorCondition:{label:"条件设置",component:"visual-color-config",layout:"vertical"},visualSizeKey:{label:"匹配字段",component:"graphic-field-select",style:{width:"85%"},props:{tooltip:"条件判断依据的字段,图表接口返回数据中的数据字段"}},visualSizeCondition:{label:"条件设置",component:"visual-size-config",layout:"vertical"},tooltipFontSize:{label:"字号",component:"input-number",props:{suffix:"px",min:1}}};function w(o,e,t,n,a,l,i,m){var u=typeof o=="function"?o.options:o;e&&(u.render=e,u.staticRenderFns=t,u._compiled=!0),n&&(u.functional=!0),l&&(u._scopeId="data-v-"+l);var c;if(i?(c=function(x){x=x||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!x&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(x=__VUE_SSR_CONTEXT__),a&&a.call(this,x),x&&x._registeredComponents&&x._registeredComponents.add(i)},u._ssrRegister=c):a&&(c=m?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(u.functional){u._injectStyles=c;var v=u.render;u.render=function(S,L){return c.call(L),v(S,L)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:o,options:u}}const Mt={name:"Input",components:{},props:{value:{type:String,default:""},disabled:{type:Boolean,default:!1},isKeyName:{type:Boolean,default:!1},propKey:{type:String,default:""}},data(){return{myValue:this.value,saveKeyName:""}},computed:{},watch:{value:{handler(o){this.myValue=o},immediate:!0}},methods:{onInputChange(o){this.$emit("change",o.target.value)}}};var Ot=function(){var e=this,t=e._self._c;return t("div",[t("a-input",{attrs:{value:e.myValue,disabled:e.disabled},on:{change:e.onInputChange}})],1)},Nt=[],zt=w(Mt,Ot,Nt,!1,null,"004eecbd",null,null);const Rt=zt.exports;const jt={name:"InputNumber",props:{value:{type:[String,Number,Object],default:""},valueKey:{type:String,default:"value"},prefixValueKey:{type:String,default:"prefix"},prefix:{type:[String,Array],default:""},suffixValueKey:{type:String,default:"suffix"},suffix:{type:[String,Array],default:""},min:{type:Number,default:-1/0},max:{type:Number,default:1/0},step:{type:[String,Number],default:1},useBlurEvent:{type:Boolean,default:!1},propKey:{type:String,default:""}},components:{},data(){return{prefixValue:null,suffixValue:null,isVue3:window.isVue3}},computed:{inputValue(){const o=this.value;return typeof o=="string"?parseFloat(o):typeof o=="object"&&o!=null?o[this.valueKey]:o}},watch:{value:{handler(){this.prefixValue=this.getPrefixOrSuffixValue("prefix"),this.suffixValue=this.getPrefixOrSuffixValue("suffix")},deep:!0,immediate:!0}},methods:{getPrefixOrSuffixValue(o){return this.value!=null&&typeof this.value=="object"?this.value[this[`${o}ValueKey`]]:Array.isArray(this[o])?this[o][0]&&this[o][0].value:null},onInputChange(o){let e=o;const t=this.suffix;Array.isArray(this.prefix)||Array.isArray(this.suffix)?this.$emit("change",{[this.valueKey]:e,[this.prefixValueKey]:this.prefixValue,[this.suffixValueKey]:this.suffixValue}):t===""||e==null?this.$emit("change",e):this.$emit("change",`${e}${t}`)},onPrefixChange(o){this.prefixValue=o,Array.isArray(this.prefix)&&this.$emit("change",{[this.valueKey]:this.inputValue,[this.prefixValueKey]:this.prefixValue,[this.suffixValueKey]:this.suffixValue})},onSuffixChange(o){this.suffixValue=o,Array.isArray(this.suffix)&&this.$emit("change",{[this.valueKey]:this.inputValue,[this.prefixValueKey]:this.prefixValue,[this.suffixValueKey]:this.suffixValue})},parser(o){return typeof this.suffix=="string"?o.replace(this.suffix,""):Array.isArray(this.suffix)&&this.value!=null&&typeof this.value=="object"?o.replace(this.value[this.suffixValueKey],""):o},onInputBlur(){if(this.useBlurEvent){const o={useContainer:!0,useContainerTime:0};this.$emit("change",null,o,!1)}}}};var qt=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{display:"flex","align-items":"center"}},[!e.isVue3&&e.prefix?[t("div",{staticClass:"prefix-section icon-section"},[Array.isArray(e.prefix)&&e.prefix.length>0?[t("a-select",{attrs:{value:e.prefixValue},on:{change:e.onPrefixChange}},e._l(e.prefix,function(n,a){return t("a-select-option",{key:a,attrs:{value:n.value}},[e._v(" "+e._s(n.label)+" ")])}),1)]:t("span",[e._v(e._s(e.prefix))])],2)]:e._e(),t("a-input-number",{style:V({flex:1},e.isVue3?{}:{borderRadius:`${e.prefix?0:"4px"} ${e.suffix?0:"4px"} ${e.suffix?0:"4px"} ${e.prefix?0:"4px"}`}),attrs:{value:e.inputValue,min:e.min,max:e.max,step:e.step,parser:e.parser,"addon-before":Array.isArray(e.prefix)?void 0:e.prefix,"addon-after":Array.isArray(e.suffix)?void 0:e.suffix},on:{change:e.onInputChange,blur:e.onInputBlur},scopedSlots:e._u([Array.isArray(e.prefix)&&e.prefix.length>0?{key:"addonBefore",fn:function(){return[t("a-select",{attrs:{value:e.prefixValue},on:{change:e.onPrefixChange}},e._l(e.prefix,function(n,a){return t("a-select-option",{key:a,attrs:{value:n.value}},[e._v(" "+e._s(n.label)+" ")])}),1)]},proxy:!0}:null,Array.isArray(e.suffix)&&e.suffix.length>0?{key:"addonAfter",fn:function(){return[t("a-select",{attrs:{value:e.suffixValue},on:{change:e.onSuffixChange}},e._l(e.suffix,function(n,a){return t("a-select-option",{key:a,attrs:{value:n.value}},[e._v(" "+e._s(n.label)+" ")])}),1)]},proxy:!0}:null],null,!0)}),!e.isVue3&&e.suffix?[t("div",{staticClass:"suffix-section icon-section"},[Array.isArray(e.suffix)&&e.suffix.length>0?[t("a-select",{attrs:{value:e.suffixValue},on:{change:e.onSuffixChange}},e._l(e.suffix,function(n,a){return t("a-select-option",{key:a,attrs:{value:n.value}},[e._v(" "+e._s(n.label)+" ")])}),1)]:t("span",[e._v(e._s(e.suffix))])],2)]:e._e()],2)},Bt=[],Et=w(jt,qt,Bt,!1,null,"d6ca6a85",null,null);const mt=Et.exports;const Wt={name:"RadioGroup",components:{},props:{value:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},optionType:{type:String,default:"default"}},data(){return{size:"default"}},created(){this.size=window.isVue3?"default":"small"},methods:{onRadioChange(o){this.$emit("change",o.target.value)}}};var Gt=function(){var e=this,t=e._self._c;return t("a-radio-group",{staticStyle:{"white-space":"nowrap"},attrs:{value:e.value,optionType:e.optionType,size:e.size},on:{change:e.onRadioChange}},e._l(e.options,function(n){return t("a-radio-button",{key:n.value,attrs:{value:n.value}},[e._v(" "+e._s(n.label)+" ")])}),1)},Ht=[],Ut=w(Wt,Gt,Ht,!1,null,"1201737e",null,null);const Kt=Ut.exports,Yt=()=>{},Xt=Object.assign,Zt=Array.isArray,Oe=o=>typeof o=="function",Jt=o=>typeof o=="symbol";let He;const ke=()=>He||(He=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function Ie(o){const e=o&&o.__v_raw;return e?Ie(e):o}function Qt(o){return!(!o||o.__v_isRef!==!0)}new Set(Object.getOwnPropertyNames(Symbol).filter(o=>o!=="arguments"&&o!=="caller").map(o=>Symbol[o]).filter(Jt));const U=[];function Ne(o,...e){if(process.env.NODE_ENV==="production")return;const t=U.length?U[U.length-1].component:null,n=t&&t.appContext.config.warnHandler,a=function(){let l=U[U.length-1];if(!l)return[];const i=[];for(;l;){const m=i[0];m&&m.vnode===l?m.recurseCount++:i.push({vnode:l,recurseCount:0});const u=l.component&&l.component.parent;l=u&&u.vnode}return i}();if(n)ze(n,t,11,[o+e.join(""),t&&t.proxy,a.map(({vnode:l})=>`at <${Ze(t,l.type)}>`).join(`
9
+ 其中坐标值可以是这样:{固定成本},固定成本是某个文本组件的别名,那么坐标值将会等于别名为固定成本的文本组件的值`}},markPointFormatter:{label:"提示框格式化",component:"textarea"},yAxisLeftUnitAdapt:{label:"左轴单位适配",component:"switch"},yAxisRightUnitAdapt:{label:"右轴单位适配",component:"switch"},tipText:{label:"提示文字",component:"input"},tipTextColor:{label:"文字颜色",component:"color-pick"},tipTextFontSize:{label:"文字大小",component:"input-number",props:{suffix:"px"}},titleContent:{label:"内容",component:"input"},titleFontColor:{label:"文字颜色",component:"color-pick"},titleBackgroundColor:{label:"背景色",component:"color-pick"},isShowIndDetail:{label:"指标详情",component:"switch",style:"width: auto;",props:{tooltip:"控件数据来源选择指标库时有效。点击后显示指标详细信息弹窗"}},isShowTrend:{label:"趋势图",component:"switch",style:"width: auto;",props:{tooltip:"控件数据来源选择指标库时有效。点击后显示趋势图弹窗"}},indDetailIconColor:{label:"图标颜色",component:"color-pick"},indDetailIconFontSize:{label:"图标大小",component:"input-number",props:{suffix:"px",disabled:!1}},gridInterval:{label:"操作",component:"operation-wrapper"},bodyRowHeight:{label:"行高",component:"input-number",props:{suffix:"px",min:0}},headRowHeight:{label:"行高",component:"input-number",props:{suffix:"px",min:0}},lineTextPosition:{label:"文本位置",component:"select",onlyType:"proportion",props:{options:[{label:"进度条右侧",value:"right"},{label:"跟随进度条",value:"shadow"}]}},drillDetailUrl:{label:"钻取明细url",component:"textarea",show:[{match:"drillingMode",value:"pivotTable",rule:"or"},{match:"drillingMode",value:"normalTable"}]},visualColorKey:{label:"匹配字段",component:"graphic-field-select",style:{width:"85%"},props:{tooltip:"条件判断依据的字段,图表接口返回数据中的数据字段"}},visualColorCondition:{label:"条件设置",component:"visual-color-config",layout:"vertical"},visualSizeKey:{label:"匹配字段",component:"graphic-field-select",style:{width:"85%"},props:{tooltip:"条件判断依据的字段,图表接口返回数据中的数据字段"}},visualSizeCondition:{label:"条件设置",component:"visual-size-config",layout:"vertical"},tooltipFontSize:{label:"字号",component:"input-number",props:{suffix:"px",min:1}}};function w(o,e,t,n,a,l,i,m){var u=typeof o=="function"?o.options:o;e&&(u.render=e,u.staticRenderFns=t,u._compiled=!0),n&&(u.functional=!0),l&&(u._scopeId="data-v-"+l);var c;if(i?(c=function(x){x=x||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!x&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(x=__VUE_SSR_CONTEXT__),a&&a.call(this,x),x&&x._registeredComponents&&x._registeredComponents.add(i)},u._ssrRegister=c):a&&(c=m?function(){a.call(this,(u.functional?this.parent:this).$root.$options.shadowRoot)}:a),c)if(u.functional){u._injectStyles=c;var v=u.render;u.render=function(S,L){return c.call(L),v(S,L)}}else{var h=u.beforeCreate;u.beforeCreate=h?[].concat(h,c):[c]}return{exports:o,options:u}}const Ot={name:"Input",components:{},props:{value:{type:String,default:""},disabled:{type:Boolean,default:!1},isKeyName:{type:Boolean,default:!1},propKey:{type:String,default:""}},data(){return{myValue:this.value,saveKeyName:""}},computed:{},watch:{value:{handler(o){this.myValue=o},immediate:!0}},methods:{onInputChange(o){this.$emit("change",o.target.value)}}};var Nt=function(){var e=this,t=e._self._c;return t("div",[t("a-input",{attrs:{value:e.myValue,disabled:e.disabled},on:{change:e.onInputChange}})],1)},zt=[],Rt=w(Ot,Nt,zt,!1,null,"004eecbd",null,null);const jt=Rt.exports;const qt={name:"InputNumber",props:{value:{type:[String,Number,Object],default:""},valueKey:{type:String,default:"value"},prefixValueKey:{type:String,default:"prefix"},prefix:{type:[String,Array],default:""},suffixValueKey:{type:String,default:"suffix"},suffix:{type:[String,Array],default:""},min:{type:Number,default:-1/0},max:{type:Number,default:1/0},step:{type:[String,Number],default:1},useBlurEvent:{type:Boolean,default:!1},propKey:{type:String,default:""}},components:{},data(){return{prefixValue:null,suffixValue:null,isVue3:window.isVue3}},computed:{inputValue(){const o=this.value;return typeof o=="string"?parseFloat(o):typeof o=="object"&&o!=null?o[this.valueKey]:o}},watch:{value:{handler(){this.prefixValue=this.getPrefixOrSuffixValue("prefix"),this.suffixValue=this.getPrefixOrSuffixValue("suffix")},deep:!0,immediate:!0}},methods:{getPrefixOrSuffixValue(o){return this.value!=null&&typeof this.value=="object"?this.value[this[`${o}ValueKey`]]:Array.isArray(this[o])?this[o][0]&&this[o][0].value:null},onInputChange(o){let e=o;const t=this.suffix;Array.isArray(this.prefix)||Array.isArray(this.suffix)?this.$emit("change",{[this.valueKey]:e,[this.prefixValueKey]:this.prefixValue,[this.suffixValueKey]:this.suffixValue}):t===""||e==null?this.$emit("change",e):this.$emit("change",`${e}${t}`)},onPrefixChange(o){this.prefixValue=o,Array.isArray(this.prefix)&&this.$emit("change",{[this.valueKey]:this.inputValue,[this.prefixValueKey]:this.prefixValue,[this.suffixValueKey]:this.suffixValue})},onSuffixChange(o){this.suffixValue=o,Array.isArray(this.suffix)&&this.$emit("change",{[this.valueKey]:this.inputValue,[this.prefixValueKey]:this.prefixValue,[this.suffixValueKey]:this.suffixValue})},parser(o){return typeof this.suffix=="string"?o.replace(this.suffix,""):Array.isArray(this.suffix)&&this.value!=null&&typeof this.value=="object"?o.replace(this.value[this.suffixValueKey],""):o},onInputBlur(){if(this.useBlurEvent){const o={useContainer:!0,useContainerTime:0};this.$emit("change",null,o,!1)}}}};var Bt=function(){var e=this,t=e._self._c;return t("div",{staticStyle:{display:"flex","align-items":"center"}},[!e.isVue3&&e.prefix?[t("div",{staticClass:"prefix-section icon-section"},[Array.isArray(e.prefix)&&e.prefix.length>0?[t("a-select",{attrs:{value:e.prefixValue},on:{change:e.onPrefixChange}},e._l(e.prefix,function(n,a){return t("a-select-option",{key:a,attrs:{value:n.value}},[e._v(" "+e._s(n.label)+" ")])}),1)]:t("span",[e._v(e._s(e.prefix))])],2)]:e._e(),t("a-input-number",{style:V({flex:1},e.isVue3?{}:{borderRadius:`${e.prefix?0:"4px"} ${e.suffix?0:"4px"} ${e.suffix?0:"4px"} ${e.prefix?0:"4px"}`}),attrs:{value:e.inputValue,min:e.min,max:e.max,step:e.step,parser:e.parser,"addon-before":Array.isArray(e.prefix)?void 0:e.prefix,"addon-after":Array.isArray(e.suffix)?void 0:e.suffix},on:{change:e.onInputChange,blur:e.onInputBlur},scopedSlots:e._u([Array.isArray(e.prefix)&&e.prefix.length>0?{key:"addonBefore",fn:function(){return[t("a-select",{attrs:{value:e.prefixValue},on:{change:e.onPrefixChange}},e._l(e.prefix,function(n,a){return t("a-select-option",{key:a,attrs:{value:n.value}},[e._v(" "+e._s(n.label)+" ")])}),1)]},proxy:!0}:null,Array.isArray(e.suffix)&&e.suffix.length>0?{key:"addonAfter",fn:function(){return[t("a-select",{attrs:{value:e.suffixValue},on:{change:e.onSuffixChange}},e._l(e.suffix,function(n,a){return t("a-select-option",{key:a,attrs:{value:n.value}},[e._v(" "+e._s(n.label)+" ")])}),1)]},proxy:!0}:null],null,!0)}),!e.isVue3&&e.suffix?[t("div",{staticClass:"suffix-section icon-section"},[Array.isArray(e.suffix)&&e.suffix.length>0?[t("a-select",{attrs:{value:e.suffixValue},on:{change:e.onSuffixChange}},e._l(e.suffix,function(n,a){return t("a-select-option",{key:a,attrs:{value:n.value}},[e._v(" "+e._s(n.label)+" ")])}),1)]:t("span",[e._v(e._s(e.suffix))])],2)]:e._e()],2)},Et=[],Wt=w(qt,Bt,Et,!1,null,"d6ca6a85",null,null);const mt=Wt.exports;const Gt={name:"RadioGroup",components:{},props:{value:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},optionType:{type:String,default:"default"}},data(){return{size:"default"}},created(){this.size=window.isVue3?"default":"small"},methods:{onRadioChange(o){this.$emit("change",o.target.value)}}};var Ht=function(){var e=this,t=e._self._c;return t("a-radio-group",{staticStyle:{"white-space":"nowrap"},attrs:{value:e.value,optionType:e.optionType,size:e.size},on:{change:e.onRadioChange}},e._l(e.options,function(n){return t("a-radio-button",{key:n.value,attrs:{value:n.value}},[e._v(" "+e._s(n.label)+" ")])}),1)},Ut=[],Kt=w(Gt,Ht,Ut,!1,null,"1201737e",null,null);const Yt=Kt.exports,Xt=()=>{},Zt=Object.assign,Jt=Array.isArray,Oe=o=>typeof o=="function",Qt=o=>typeof o=="symbol";let He;const ke=()=>He||(He=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function Ie(o){const e=o&&o.__v_raw;return e?Ie(e):o}function eo(o){return!(!o||o.__v_isRef!==!0)}new Set(Object.getOwnPropertyNames(Symbol).filter(o=>o!=="arguments"&&o!=="caller").map(o=>Symbol[o]).filter(Qt));const U=[];function Ne(o,...e){if(process.env.NODE_ENV==="production")return;const t=U.length?U[U.length-1].component:null,n=t&&t.appContext.config.warnHandler,a=function(){let l=U[U.length-1];if(!l)return[];const i=[];for(;l;){const m=i[0];m&&m.vnode===l?m.recurseCount++:i.push({vnode:l,recurseCount:0});const u=l.component&&l.component.parent;l=u&&u.vnode}return i}();if(n)ze(n,t,11,[o+e.join(""),t&&t.proxy,a.map(({vnode:l})=>`at <${Ze(t,l.type)}>`).join(`
10
10
  `),a]);else{const l=[`[Vue warn]: ${o}`,...e];a.length&&l.push(`
11
11
  `,...function(i){const m=[];return i.forEach((u,c)=>{m.push(...c===0?[]:[`
12
- `],...function({vnode:v,recurseCount:h}){const x=h>0?`... (${h} recursive calls)`:"",S=!!v.component&&v.component.parent==null,L=` at <${Ze(v.component,v.type,S)}`,$=">"+x;return v.props?[L,...eo(v.props),$]:[L+$]}(u))}),m}(a)),console.warn(...l)}}function eo(o){const e=[],t=Object.keys(o);return t.slice(0,3).forEach(n=>{e.push(...ht(n,o[n]))}),t.length>3&&e.push(" ..."),e}function ht(o,e,t){return typeof e=="string"?(e=JSON.stringify(e),t?e:[`${o}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?t?e:[`${o}=${e}`]:Qt(e)?(e=ht(o,Ie(e.value),!0),t?e:[`${o}=Ref<`,e,">"]):Oe(e)?[`${o}=fn${e.name?`<${e.name}>`:""}`]:(e=Ie(e),t?e:[`${o}=`,e])}const Ue={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function ze(o,e,t,n){let a;try{a=n?o(...n):o()}catch(l){(function(i,m,u,c=!0){const v=m?m.vnode:null;if(m){let h=m.parent;const x=m.proxy,S=process.env.NODE_ENV!=="production"?Ue[u]:u;for(;h;){const $=h.ec;if($){for(let P=0;P<$.length;P++)if($[P](i,x,S)===!1)return}h=h.parent}const L=m.appContext.config.errorHandler;if(L)return void ze(L,null,10,[i,x,S])}(function(h,x,S,L=!0){if(process.env.NODE_ENV!=="production"){const P=Ue[x];if(S&&($=S,U.push($)),Ne("Unhandled error"+(P?` during execution of ${P}`:"")),S&&U.pop(),L)throw h;console.error(h)}else console.error(h);var $})(i,u,v,c)})(l,e,t)}return a}let ge=!1,$e=!1;const M=[];let B=0;const ee=[];let O=null,q=0;const to=Promise.resolve();function oo(o){M.length&&M.includes(o,ge&&o.allowRecurse?B+1:B)||(o.id==null?M.push(o):M.splice(function(e){let t=B+1,n=M.length;for(;t<n;){const a=t+n>>>1,l=M[a],i=ce(l);i<e||i===e&&l.pre?t=a+1:n=a}return t}(o.id),0,o),ft())}function ft(){ge||$e||($e=!0,to.then(bt))}const ce=o=>o.id==null?1/0:o.id,no=(o,e)=>{const t=ce(o)-ce(e);if(t===0){if(o.pre&&!e.pre)return-1;if(e.pre&&!o.pre)return 1}return t};function bt(o){$e=!1,ge=!0,process.env.NODE_ENV!=="production"&&(o=o||new Map),M.sort(no);const e=process.env.NODE_ENV!=="production"?t=>Ke(o,t):Yt;try{for(B=0;B<M.length;B++){const t=M[B];if(t&&t.active!==!1){if(process.env.NODE_ENV!=="production"&&e(t))continue;ze(t,null,14)}}}finally{B=0,M.length=0,function(t){if(ee.length){const n=[...new Set(ee)];if(ee.length=0,O)return void O.push(...n);for(O=n,process.env.NODE_ENV!=="production"&&(t=t||new Map),O.sort((a,l)=>ce(a)-ce(l)),q=0;q<O.length;q++)process.env.NODE_ENV!=="production"&&Ke(t,O[q])||O[q]();O=null,q=0}}(o),ge=!1,(M.length||ee.length)&&bt(o)}}function Ke(o,e){if(o.has(e)){const t=o.get(e);if(t>100){const n=e.ownerInstance,a=n&&yt(n.type);return Ne(`Maximum recursive updates exceeded${a?` in component <${a}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}o.set(e,t+1)}else o.set(e,1)}const se=new Set;process.env.NODE_ENV!=="production"&&(ke().__VUE_HMR_RUNTIME__={createRecord:we(function(o,e){return ye.has(o)?!1:(ye.set(o,{initialDef:re(e),instances:new Set}),!0)}),rerender:we(function(o,e){const t=ye.get(o);t&&(t.initialDef.render=e,[...t.instances].forEach(n=>{e&&(n.render=e,re(n.type).render=e),n.renderCache=[],n.update()}))}),reload:we(function(o,e){const t=ye.get(o);if(!t)return;e=re(e),Ye(t.initialDef,e);const n=[...t.instances];for(const l of n){const i=re(l.type);se.has(i)||(i!==t.initialDef&&Ye(i,e),se.add(i)),l.appContext.propsCache.delete(l.type),l.appContext.emitsCache.delete(l.type),l.appContext.optionsCache.delete(l.type),l.ceReload?(se.add(i),l.ceReload(e.styles),se.delete(i)):l.parent?oo(l.parent.update):l.appContext.reload?l.appContext.reload():typeof window!="undefined"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}a=()=>{for(const l of n)se.delete(re(l.type))},Zt(a)?ee.push(...a):O&&O.includes(a,a.allowRecurse?q+1:q)||ee.push(a),ft();var a})});const ye=new Map;function re(o){return Oe(e=o)&&"__vccOpts"in e?o.__vccOpts:o;var e}function Ye(o,e){Xt(o,e);for(const t in o)t==="__file"||t in e||delete o[t]}function we(o){return(e,t)=>{try{return o(e,t)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Ce;process.env.NODE_ENV;let Xe="__VUE_INSTANCE_SETTERS__";(Ce=ke()[Xe])||(Ce=ke()[Xe]=[]),Ce.push(o=>o);const lo=/(?:^|[-_])(\w)/g,ao=o=>o.replace(lo,e=>e.toUpperCase()).replace(/[-_]/g,"");function yt(o,e=!0){return Oe(o)?o.displayName||o.name:o.name||e&&o.__name}function Ze(o,e,t=!1){let n=yt(e);if(!n&&e.__file){const a=e.__file.match(/([^/\\]+)\.\w+$/);a&&(n=a[1])}if(!n&&o&&o.parent){const a=l=>{for(const i in l)if(l[i]===e)return i};n=a(o.components||o.parent.type.components)||a(o.appContext.components)}return n?ao(n):t?"App":"Anonymous"}function io(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Je,Qe={exports:{}};function so(){return Je||(Je=1,Qe.exports=function(){var o=1e3,e=6e4,t=36e5,n="millisecond",a="second",l="minute",i="hour",m="day",u="week",c="month",v="quarter",h="year",x="date",S="Invalid Date",L=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,P={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(f){var r=["th","st","nd","rd"],s=f%100;return"["+f+(r[(s-20)%10]||r[s]||r[0])+"]"}},me=function(f,r,s){var d=String(f);return!d||d.length>=r?f:""+Array(r+1-d.length).join(s)+f},qe={s:me,z:function(f){var r=-f.utcOffset(),s=Math.abs(r),d=Math.floor(s/60),p=s%60;return(r<=0?"+":"-")+me(d,2,"0")+":"+me(p,2,"0")},m:function f(r,s){if(r.date()<s.date())return-f(s,r);var d=12*(s.year()-r.year())+(s.month()-r.month()),p=r.clone().add(d,c),b=s-p<0,y=r.clone().add(d+(b?-1:1),c);return+(-(d+(s-p)/(b?p-y:y-p))||0)},a:function(f){return f<0?Math.ceil(f)||0:Math.floor(f)},p:function(f){return{M:c,y:h,w:u,d:m,D:x,h:i,m:l,s:a,ms:n,Q:v}[f]||String(f||"").toLowerCase().replace(/s$/,"")},u:function(f){return f===void 0}},X="en",R={};R[X]=P;var _e="$isDayjsObject",he=function(f){return f instanceof le||!(!f||!f[_e])},ne=function f(r,s,d){var p;if(!r)return X;if(typeof r=="string"){var b=r.toLowerCase();R[b]&&(p=b),s&&(R[b]=s,p=b);var y=r.split("-");if(!p&&y.length>1)return f(y[0])}else{var _=r.name;R[_]=r,p=_}return!d&&p&&(X=p),p||!d&&X},A=function(f,r){if(he(f))return f.clone();var s=typeof r=="object"?r:{};return s.date=f,s.args=arguments,new le(s)},g=qe;g.l=ne,g.i=he,g.w=function(f,r){return A(f,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var le=function(){function f(s){this.$L=ne(s.locale,null,!0),this.parse(s),this.$x=this.$x||s.x||{},this[_e]=!0}var r=f.prototype;return r.parse=function(s){this.$d=function(d){var p=d.date,b=d.utc;if(p===null)return new Date(NaN);if(g.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var y=p.match(L);if(y){var _=y[2]-1||0,C=(y[7]||"0").substring(0,3);return b?new Date(Date.UTC(y[1],_,y[3]||1,y[4]||0,y[5]||0,y[6]||0,C)):new Date(y[1],_,y[3]||1,y[4]||0,y[5]||0,y[6]||0,C)}}return new Date(p)}(s),this.init()},r.init=function(){var s=this.$d;this.$y=s.getFullYear(),this.$M=s.getMonth(),this.$D=s.getDate(),this.$W=s.getDay(),this.$H=s.getHours(),this.$m=s.getMinutes(),this.$s=s.getSeconds(),this.$ms=s.getMilliseconds()},r.$utils=function(){return g},r.isValid=function(){return this.$d.toString()!==S},r.isSame=function(s,d){var p=A(s);return this.startOf(d)<=p&&p<=this.endOf(d)},r.isAfter=function(s,d){return A(s)<this.startOf(d)},r.isBefore=function(s,d){return this.endOf(d)<A(s)},r.$g=function(s,d,p){return g.u(s)?this[d]:this.set(p,s)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(s,d){var p=this,b=!!g.u(d)||d,y=g.p(s),_=function(W,F){var j=g.w(p.$u?Date.UTC(p.$y,F,W):new Date(p.$y,F,W),p);return b?j:j.endOf(m)},C=function(W,F){return g.w(p.toDate()[W].apply(p.toDate("s"),(b?[0,0,0,0]:[23,59,59,999]).slice(F)),p)},T=this.$W,k=this.$M,D=this.$D,Z="set"+(this.$u?"UTC":"");switch(y){case h:return b?_(1,0):_(31,11);case c:return b?_(1,k):_(0,k+1);case u:var E=this.$locale().weekStart||0,ae=(T<E?T+7:T)-E;return _(b?D-ae:D+(6-ae),k);case m:case x:return C(Z+"Hours",0);case i:return C(Z+"Minutes",1);case l:return C(Z+"Seconds",2);case a:return C(Z+"Milliseconds",3);default:return this.clone()}},r.endOf=function(s){return this.startOf(s,!1)},r.$set=function(s,d){var p,b=g.p(s),y="set"+(this.$u?"UTC":""),_=(p={},p[m]=y+"Date",p[x]=y+"Date",p[c]=y+"Month",p[h]=y+"FullYear",p[i]=y+"Hours",p[l]=y+"Minutes",p[a]=y+"Seconds",p[n]=y+"Milliseconds",p)[b],C=b===m?this.$D+(d-this.$W):d;if(b===c||b===h){var T=this.clone().set(x,1);T.$d[_](C),T.init(),this.$d=T.set(x,Math.min(this.$D,T.daysInMonth())).$d}else _&&this.$d[_](C);return this.init(),this},r.set=function(s,d){return this.clone().$set(s,d)},r.get=function(s){return this[g.p(s)]()},r.add=function(s,d){var p,b=this;s=Number(s);var y=g.p(d),_=function(k){var D=A(b);return g.w(D.date(D.date()+Math.round(k*s)),b)};if(y===c)return this.set(c,this.$M+s);if(y===h)return this.set(h,this.$y+s);if(y===m)return _(1);if(y===u)return _(7);var C=(p={},p[l]=e,p[i]=t,p[a]=o,p)[y]||1,T=this.$d.getTime()+s*C;return g.w(T,this)},r.subtract=function(s,d){return this.add(-1*s,d)},r.format=function(s){var d=this,p=this.$locale();if(!this.isValid())return p.invalidDate||S;var b=s||"YYYY-MM-DDTHH:mm:ssZ",y=g.z(this),_=this.$H,C=this.$m,T=this.$M,k=p.weekdays,D=p.months,Z=p.meridiem,E=function(F,j,ie,fe){return F&&(F[j]||F(d,b))||ie[j].slice(0,fe)},ae=function(F){return g.s(_%12||12,F,"0")},W=Z||function(F,j,ie){var fe=F<12?"AM":"PM";return ie?fe.toLowerCase():fe};return b.replace($,function(F,j){return j||function(ie){switch(ie){case"YY":return String(d.$y).slice(-2);case"YYYY":return g.s(d.$y,4,"0");case"M":return T+1;case"MM":return g.s(T+1,2,"0");case"MMM":return E(p.monthsShort,T,D,3);case"MMMM":return E(D,T);case"D":return d.$D;case"DD":return g.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return E(p.weekdaysMin,d.$W,k,2);case"ddd":return E(p.weekdaysShort,d.$W,k,3);case"dddd":return k[d.$W];case"H":return String(_);case"HH":return g.s(_,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return W(_,C,!0);case"A":return W(_,C,!1);case"m":return String(C);case"mm":return g.s(C,2,"0");case"s":return String(d.$s);case"ss":return g.s(d.$s,2,"0");case"SSS":return g.s(d.$ms,3,"0");case"Z":return y}return null}(F)||y.replace(":","")})},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(s,d,p){var b,y=this,_=g.p(d),C=A(s),T=(C.utcOffset()-this.utcOffset())*e,k=this-C,D=function(){return g.m(y,C)};switch(_){case h:b=D()/12;break;case c:b=D();break;case v:b=D()/3;break;case u:b=(k-T)/6048e5;break;case m:b=(k-T)/864e5;break;case i:b=k/t;break;case l:b=k/e;break;case a:b=k/o;break;default:b=k}return p?b:g.a(b)},r.daysInMonth=function(){return this.endOf(c).$D},r.$locale=function(){return R[this.$L]},r.locale=function(s,d){if(!s)return this.$L;var p=this.clone(),b=ne(s,d,!0);return b&&(p.$L=b),p},r.clone=function(){return g.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},f}(),Se=le.prototype;return A.prototype=Se,[["$ms",n],["$s",a],["$m",l],["$H",i],["$W",m],["$M",c],["$y",h],["$D",x]].forEach(function(f){Se[f[1]]=function(r){return this.$g(r,f[0],f[1])}}),A.extend=function(f,r){return f.$i||(f(r,le,A),f.$i=!0),A},A.locale=ne,A.isDayjs=he,A.unix=function(f){return A(1e3*f)},A.en=R[X],A.Ls=R,A.p={},A}()),Qe.exports}io(so());var xt=typeof global=="object"&&global&&global.Object===Object&&global,ro=typeof self=="object"&&self&&self.Object===Object&&self,z=xt||ro||Function("return this")(),te=z.Symbol,gt=Object.prototype,po=gt.hasOwnProperty,uo=gt.toString,pe=te?te.toStringTag:void 0,co=Object.prototype.toString,et=te?te.toStringTag:void 0;function ve(o){return o==null?o===void 0?"[object Undefined]":"[object Null]":et&&et in Object(o)?function(e){var t=po.call(e,pe),n=e[pe];try{e[pe]=void 0;var a=!0}catch(i){}var l=uo.call(e);return a&&(t?e[pe]=n:delete e[pe]),l}(o):function(e){return co.call(e)}(o)}function vt(o){return o!=null&&typeof o=="object"}function _t(o){var e=typeof o;return o!=null&&(e=="object"||e=="function")}function mo(o){if(!_t(o))return!1;var e=ve(o);return e=="[object Function]"||e=="[object GeneratorFunction]"||e=="[object AsyncFunction]"||e=="[object Proxy]"}var tt,Ae=z["__core-js_shared__"],ot=(tt=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||""))?"Symbol(src)_1."+tt:"",ho=Function.prototype.toString;function K(o){if(o!=null){try{return ho.call(o)}catch(e){}try{return o+""}catch(e){}}return""}var fo=/^\[object .+?Constructor\]$/,bo=Function.prototype,yo=Object.prototype,xo=bo.toString,go=yo.hasOwnProperty,vo=RegExp("^"+xo.call(go).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function _o(o){return!(!_t(o)||(e=o,ot&&ot in e))&&(mo(o)?vo:fo).test(K(o));var e}function Y(o,e){var t=function(n,a){return n==null?void 0:n[a]}(o,e);return _o(t)?t:void 0}var Pe=Y(z,"WeakMap");(function(){try{var o=Y(Object,"defineProperty");return o({},"",{}),o}catch(e){}})();function nt(o){return vt(o)&&ve(o)=="[object Arguments]"}var St=Object.prototype,So=St.hasOwnProperty,wo=St.propertyIsEnumerable;nt(function(){return arguments}());var wt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lt=wt&&typeof module=="object"&&module&&!module.nodeType&&module,at=lt&&lt.exports===wt?z.Buffer:void 0;at&&at.isBuffer;var Ct=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ue=Ct&&typeof module=="object"&&module&&!module.nodeType&&module,Te=ue&&ue.exports===Ct&&xt.process,oe=function(){try{var o=ue&&ue.require&&ue.require("util").types;return o||Te&&Te.binding&&Te.binding("util")}catch(e){}}();oe&&oe.isTypedArray;Y(Object,"create");var Fe=Y(z,"Map"),Ve=Y(z,"DataView"),De=Y(z,"Promise"),Me=Y(z,"Set"),it="[object Map]",st="[object Promise]",rt="[object Set]",pt="[object WeakMap]",ut="[object DataView]",Co=K(Ve),Ao=K(Fe),To=K(De),Lo=K(Me),ko=K(Pe),Q=ve;(Ve&&Q(new Ve(new ArrayBuffer(1)))!=ut||Fe&&Q(new Fe)!=it||De&&Q(De.resolve())!=st||Me&&Q(new Me)!=rt||Pe&&Q(new Pe)!=pt)&&(Q=function(o){var e=ve(o),t=e=="[object Object]"?o.constructor:void 0,n=t?K(t):"";if(n)switch(n){case Co:return ut;case Ao:return it;case To:return st;case Lo:return rt;case ko:return pt}return e});z.Uint8Array;var ct=te?te.prototype:void 0;ct&&ct.valueOf;oe&&oe.isMap;oe&&oe.isSet;const Io=(o,e)=>{if(typeof o=="string"&&typeof e=="string")return o.toLocaleLowerCase().includes(e.toLocaleLowerCase());if(typeof o=="string"&&Array.isArray(e)){const t=e.length;for(let n=0;n<t;n++){const a=e[n];if(typeof a=="string"&&o.toLocaleLowerCase().includes(a.toLocaleLowerCase()))return!0}}return!1},$o=(o,e)=>Object.prototype.hasOwnProperty.call(o,e);const Po={name:"EcanSelect",components:{},props:{value:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},graphic:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"},allowClear:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["change","update:value"],computed:{computedOptions(){return!this.options||this.options.length===0?[{label:"暂无数据",value:void 0,disabled:!0}]:this.options}},inject:["componentList","selectedComponent"],methods:{onSelectChange(o){if(this.graphic){const e=this.componentList.find(t=>t.type===o);if(e){const t=I.cloneDeep(this.selectedComponent),{events:n,dataType:a,dataFieldConfigType:l,id:i,keyName:m,top:u,left:c,width:v,height:h,zIndex:x}=t,S={},L=["type","graphicType","data"];for(const P in t)!L.includes(P)&&$o(e,P)&&(S[P]=I.cloneDeep(t[P]));let $=G(V(V({},e),S),{events:n,dataType:a,id:i,keyName:m,top:u,left:c,width:v,height:h,zIndex:x});l&&($.dataFieldConfigType=l),this.$emit("change",$,{all:!0})}}else this.$emit("change",o);this.$emit("update:value",o)}}};var Fo=function(){var e=this,t=e._self._c;return t("a-select",{attrs:{value:e.value},on:{change:e.onSelectChange}},e._l(e.computedOptions,function(n){return t("a-select-option",{key:n.value,attrs:{value:n.value,disabled:n.disabled}},[e._v(" "+e._s(n.label)+" ")])}),1)},Vo=[],Do=w(Po,Fo,Vo,!1,null,"9283c55b",null,null);const At=Do.exports;const Mo={name:"Switch",components:{},props:{value:{type:Boolean,default:!1},width:{type:[String,Number],default:150},disabled:{type:Boolean,default:!1}},emits:["change"],methods:{onSwitchChange(o){this.$emit("change",o)}}};var Oo=function(){var e=this,t=e._self._c;return t("div",{style:{width:`${e.width}px`}},[t("a-switch",{attrs:{disabled:e.disabled,checked:e.value},on:{change:e.onSwitchChange}})],1)},No=[],zo=w(Mo,Oo,No,!1,null,"2976c406",null,null);const Ro=zo.exports;const jo={name:"ColorPicker",components:{SketchPicker:Ft.Sketch},props:{value:{type:String,default:"#1890ff"},presetColors:{type:Array,default:()=>["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},size:{type:Number,default:20}},data(){return{popoverVisible:!1,currentColor:this.value}},watch:{value(o){o&&(this.currentColor=o)}},methods:{handleVisibleChange(o){this.popoverVisible=o},handleColorChange({hex:o}){this.currentColor=o,this.$emit("input",o),this.$emit("change",o),this.$emit("update:value",o)}}};var qo=function(){var e=this,t=e._self._c;return t("a-popover",{attrs:{visible:e.popoverVisible,trigger:"click",placement:"bottomLeft",overlayClassName:"color-picker-popover",getPopupContainer:n=>n.parentNode,destroyTooltipOnHide:!0},on:{visibleChange:e.handleVisibleChange},scopedSlots:e._u([{key:"content",fn:function(){return[t("div",{staticClass:"name",on:{click:function(n){n.stopPropagation()}}},[t("sketch-picker",{attrs:{value:{hex:e.currentColor},disableAlpha:!0,presetColors:e.presetColors},on:{input:e.handleColorChange}})],1)]},proxy:!0}])},[t("div",{staticClass:"popover-trigger",style:{backgroundColor:e.currentColor,height:e.size+"px",width:e.size+"px"}})])},Bo=[],Eo=w(jo,qo,Bo,!1,null,"c77d9ba2",null,null);const Re=Eo.exports;const Wo={name:"ColorPick",components:{PickColors:Re},props:{value:{type:String,required:!0},disabled:{type:Boolean,default:!1}},data(){return{theme:null,internalValue:this.value}},computed:{colorValue:{get(){return this.value},set(o){this.$emit("change",o),this.$emit("input",o),this.$emit("update:value",o)}}},created(){},methods:{onChangColor(o){this.colorValue=o.hex}}};var Go=function(){var e=this,t=e._self._c;return t("div",{staticClass:"color-pick"},[t("a-input",{staticClass:"input",staticStyle:{flex:"1"},attrs:{disabled:e.disabled},model:{value:e.colorValue,callback:function(n){e.colorValue=n},expression:"colorValue"}}),e.disabled?e._e():t("pick-colors",{staticClass:"pick-colors",attrs:{size:25},model:{value:e.colorValue,callback:function(n){e.colorValue=n},expression:"colorValue"}})],1)},Ho=[],Uo=w(Wo,Go,Ho,!1,null,"a79249c3",null,null);const de=Uo.exports;const Ko={name:"ColorPickerGroup",components:{ColorPick:Re},props:{value:{type:Array,default:[]},presetColors:{type:Array,default:()=>["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},size:{type:Number,default:20}},methods:{addColor(){this.value.push("#333"),this.handleColorChange()},handleColorChange(){this.$emit("input",this.value),this.$emit("change",this.value),this.$emit("update:value",this.value)}}};var Yo=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pick-color-group"},[e._l(e.value,function(n,a){return t("ColorPick",{key:a,staticStyle:{margin:"5px"},attrs:{size:e.size},on:{change:e.handleColorChange},model:{value:e.value[a],callback:function(l){e.$set(e.value,a,l)},expression:"value[index]"}})}),t("div",{staticClass:"popover-trigger",style:{backgroundColor:"#fff",height:e.size+"px",width:e.size+"px",margin:"5px"},on:{click:e.addColor}},[e._v("+")])],2)},Xo=[],Zo=w(Ko,Yo,Xo,!1,null,"932bd405",null,null);const Jo=Zo.exports;const Qo={name:"ColorGroupPick",components:{PickColors:Jo},props:{value:{type:Array,default:()=>[]}},emits:["change"],data(){return{max:13,theme:null}},methods:{onColorsChange(o){this.$emit("change",o)},onOverflowMax(){message.warn(`已经超出最大添加个数:${this.max}`)}}};var en=function(){var e=this,t=e._self._c;return t("div",{staticClass:"color-group-pick"},[t("pick-colors",{attrs:{value:e.value,theme:e.theme,"add-color":"",max:e.max},on:{change:e.onColorsChange,"overflow-max":e.onOverflowMax}})],1)},tn=[],on=w(Qo,en,tn,!1,null,"dbed4801",null,null);const nn=on.exports;const ln={name:"Slider",components:{},props:{value:{type:Number,default:1}},emits:["change"],methods:{onChange(o){this.$emit("change",o)}}};var an=function(){var e=this,t=e._self._c;return t("a-row",[t("a-col",{attrs:{span:16}},[t("a-slider",{attrs:{value:e.value,min:0,max:1,step:.1},on:{change:e.onChange}})],1),t("a-col",{staticStyle:{"padding-left":"10px"},attrs:{span:8}},[t("a-input-number",{staticStyle:{width:"100%"},attrs:{value:e.value,min:0,max:1,step:.1},on:{change:e.onChange}})],1)],1)},sn=[],rn=w(ln,an,sn,!1,null,"02978b05",null,null);const pn=rn.exports;const un={name:"Textarea",components:{},props:{value:{type:String,default:""},disabled:{type:Boolean,default:!1}},methods:{onTextareaChange(o){this.$emit("change",o.target.value)}}};var cn=function(){var e=this,t=e._self._c;return t("a-textarea",{attrs:{value:e.value,disabled:e.disabled,autoSize:{minRows:3}},on:{change:e.onTextareaChange}})},dn=[],mn=w(un,cn,dn,!1,null,"3c2ddd12",null,null);const hn=mn.exports,je="",fn="",bn="";const yn={components:{ColorPick:de},props:{value:{type:Array,default:()=>[]},indexTip:{type:String,default:""}},data(){return{isVue3:window.isVue3,dataList:[]}},emits:["change"],mounted(){this.dataList=JSON.parse(JSON.stringify(this.value||[]))},watch:{value:{handler(o){this.dataList=JSON.parse(JSON.stringify(o||[]))},immediate:!0,deep:!0}},methods:{onAdd(){this.dataList.push({startX:"",startY:"",endX:"",endY:"",color:"",label:""}),this.$emit("change",this.dataList)},onDelete(o){this.dataList.splice(o,1),this.$emit("change",this.dataList)},onInputChange(){this.$emit("change",this.dataList)},setColor(o,e){o.color=e,this.$emit("change",this.dataList)}}};var xn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mark-area-config"},[t("div",{staticClass:"add"},[e.isVue3?t("a-tooltip",{attrs:{title:e.indexTip,overlayClassName:"question-tooltip",color:"#fff"}},[t("question-circle-outlined",{staticClass:"icon",staticStyle:{"margin-right":"207px",color:"#989898","font-size":"18px",cursor:"pointer"}})],1):e._e(),e.isVue3?t("appstore-add-outlined",{staticClass:"icon",on:{click:e.onAdd}}):t("span",{staticClass:"icon",on:{click:e.onAdd}},[e._v("+")])],1),e._l(e.dataList,function(n,a){return t("div",{key:a,staticClass:"config-item"},[t("div",{staticClass:"item"},[t("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[t("span",[e._v("标域"+e._s(Number(a)+1)+":")]),n.isGenerate?e._e():t("span",{staticStyle:{color:"red",cursor:"pointer"},on:{click:function(l){e.onDelete(Number(a))}}},[e._v("删除")])]),t("div",{staticStyle:{"margin-top":"10px"}},[t("a-input-group",{staticStyle:{display:"flex","margin-bottom":"12px"},attrs:{compact:""}},[t("a-input",{attrs:{placeholder:"开始坐标",disabled:!!n.isGenerate},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonBefore",fn:function(){return[e._v(" x1 ")]},proxy:!0}],null,!0),model:{value:n.startX,callback:function(l){e.$set(n,"startX",l)},expression:"data.startX"}}),t("div",{staticStyle:{padding:"0 5px"}}),t("a-input",{attrs:{placeholder:"开始坐标",disabled:!!n.isGenerate},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonBefore",fn:function(){return[e._v(" y1 ")]},proxy:!0}],null,!0),model:{value:n.startY,callback:function(l){e.$set(n,"startY",l)},expression:"data.startY"}})],1),t("a-input-group",{staticStyle:{display:"flex","margin-bottom":"12px"},attrs:{compact:""}},[t("a-input",{attrs:{placeholder:"结束坐标",disabled:!!n.isGenerate},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonBefore",fn:function(){return[e._v(" x2 ")]},proxy:!0}],null,!0),model:{value:n.endX,callback:function(l){e.$set(n,"endX",l)},expression:"data.endX"}}),t("div",{staticStyle:{padding:"0 5px"}}),t("a-input",{attrs:{placeholder:"结束坐标",disabled:!!n.isGenerate},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonBefore",fn:function(){return[e._v(" y2 ")]},proxy:!0}],null,!0),model:{value:n.endY,callback:function(l){e.$set(n,"endY",l)},expression:"data.endY"}})],1),t("div",[e._v("标域颜色:")]),t("color-pick",{attrs:{value:n.color},on:{change:function(l){return e.setColor(n,l)}}}),t("div",{staticStyle:{"margin-top":"12px"}},[e._v("标域文字:")]),t("a-input",{on:{change:e.onInputChange},model:{value:n.label,callback:function(l){e.$set(n,"label",l)},expression:"data.label"}})],1)])])})],2)},gn=[],vn=w(yn,xn,gn,!1,null,"2201b980",null,null);const _n=vn.exports;const Sn={components:{ColorPick:de},props:{value:{type:Array,default:()=>[]},indexTip:{type:String,default:""}},inject:["selectedComponent","componentList","renderUsedComponentList"],emits:["change"],data(){return{isVue3:window.isVue3,dataList:[],lineTypeOptions:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},computed:{componentList:()=>globalThis.renderUsedComponentList.map(o=>({label:o.keyName,value:o.keyName})),calcList:()=>[{label:"平均值",value:"{average}"},{label:"中位数",value:"{median}"},{label:"最大值",value:"{max}"},{label:"最小值",value:"{min}"},{label:"自定义值",value:"customValue"}]},watch:{value:{handler(o){if(!this.selectedComponent)return;this.dataList=JSON.parse(JSON.stringify(o||[]));const{xAxisMarkLineValue:e,yAxisMarkLineValue:t,axisMarkArea:n=[]}=this.selectedComponent;if((e==null?void 0:e.length)===1&&(t==null?void 0:t.length)===1&&e[0].value&&t[0].value){const a=!!n.find(c=>c.isGenerate),l=["{xMin}"],i=["{yMin}"],m={"{max}":"最大值","{min}":"最小值","{average}":"平均值","{median}":"中位数"};for(const c of e)c.value&&l.push(m[c.value]||c.value);l.push("{xMax}");for(const c of t)c.value&&i.push(m[c.value]||c.value);i.push("{yMax}");let u=0;l.forEach((c,v)=>{v<l.length-1&&i.forEach((h,x)=>{if(x<i.length-1){const S={startX:c,startY:h,endX:l[v+1],endY:i[x+1],color:"",label:"",isGenerate:!0};a?(S.color=n[u].color,S.label=n[u].label,n[u++]=S):n.unshift(S)}})})}else this.selectedComponent.axisMarkArea=n.filter(a=>!a.isGenerate)},immediate:!0,deep:!0}},mounted(){this.dataList=JSON.parse(JSON.stringify(this.value||[]))},methods:{onAdd(){this.dataList.push({value:"",lineType:"dashed",type:"customValue"}),this.$emit("change",this.dataList)},onDelete(o){this.dataList.splice(o,1),this.$emit("change",this.dataList)},onInputChange(){this.$emit("change",this.dataList)},setColor(o,e){o.color=e,this.$emit("change",this.dataList)},setLineColor(o,e){o.lineColor=e,this.$emit("change",this.dataList)},setLabelColor(o,e){o.labelColor=e,this.$emit("change",this.dataList)},setLineType(o,e){o.lineType=e,this.$emit("change",this.dataList)},onClickMenuItem(o,e){let t=o.key;t==="customValue"&&(t=""),e.type=o.key,e.value=t,this.$emit("change",this.dataList)},onSelectChange(o,e){e.type=o,o==="customValue"&&(e.value=""),this.$emit("change",this.dataList)}}};var wn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mark-link-config"},[t("div",{staticClass:"add"},[e.isVue3?t("a-tooltip",{attrs:{title:e.indexTip,overlayClassName:"question-tooltip",color:"#fff"}},[t("question-circle-outlined",{staticClass:"icon",staticStyle:{"margin-right":"207px",color:"#989898","font-size":"18px",cursor:"pointer"}})],1):e._e(),e.isVue3?t("appstore-add-outlined",{staticClass:"icon",on:{click:e.onAdd}}):t("span",{staticClass:"icon",on:{click:e.onAdd}},[e._v("+")])],1),e._l(e.dataList,function(n,a){return t("div",{key:a,staticClass:"config-item"},[t("div",{staticClass:"item"},[t("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[t("span",[e._v("标线"+e._s(Number(a)+1)+":")]),t("span",{staticStyle:{color:"red",cursor:"pointer"},on:{click:function(l){e.onDelete(Number(a))}}},[e._v("删除")])]),t("div",{staticStyle:{"margin-top":"10px"}},[t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("值:")]),!n.type||n.type==="customValue"?t("a-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入"},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonAfter",fn:function(){return[t("a-dropdown",{attrs:{trigger:["click"]},scopedSlots:e._u([{key:"overlay",fn:function(){return[t("a-menu",{on:{click:function(l){return e.onClickMenuItem(l,n)}}},e._l(e.calcList,function(l){return t("a-menu-item",{key:l.value},[e._v(e._s(l.label))])}),1)]},proxy:!0}],null,!0)},[e.isVue3?t("down-outlined",{staticStyle:{color:"#aaa"}}):t("span",{staticStyle:{"font-size":"14px"}},[e._v("⌵")])],1)]},proxy:!0}],null,!0),model:{value:n.value,callback:function(l){e.$set(n,"value",l)},expression:"data.value"}}):t("a-select",{staticStyle:{width:"100%"},attrs:{options:e.calcList},on:{change:function(l){return e.onSelectChange(l,n)}},model:{value:n.value,callback:function(l){e.$set(n,"value",l)},expression:"data.value"}})],1),t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("文本:")]),t("a-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入"},on:{change:e.onInputChange},model:{value:n.label,callback:function(l){e.$set(n,"label",l)},expression:"data.label"}})],1),t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("文本水平偏移量:")]),t("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入",controls:!1},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonAfter",fn:function(){return[e._v(" px ")]},proxy:!0}],null,!0),model:{value:n.offsetHorizontal,callback:function(l){e.$set(n,"offsetHorizontal",l)},expression:"data.offsetHorizontal"}})],1),t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("文本垂直偏移量:")]),t("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入",controls:!1},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonAfter",fn:function(){return[e._v(" px ")]},proxy:!0}],null,!0),model:{value:n.offsetVertical,callback:function(l){e.$set(n,"offsetVertical",l)},expression:"data.offsetVertical"}})],1),t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("标线类型:")]),t("a-select",{staticStyle:{width:"100%"},attrs:{options:e.lineTypeOptions},on:{change:function(l){return e.setLineType(n,l)}},model:{value:n.lineType,callback:function(l){e.$set(n,"lineType",l)},expression:"data.lineType"}})],1),t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("标线颜色:")]),t("color-pick",{attrs:{value:n.lineColor||""},on:{change:function(l){return e.setLineColor(n,l)}}})],1),t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("文本颜色:")]),t("color-pick",{attrs:{value:n.labelColor||""},on:{change:function(l){return e.setLabelColor(n,l)}}})],1)])])])})],2)},Cn=[],An=w(Sn,wn,Cn,!1,null,"fe59467a",null,null);const Tn=An.exports;const Ln={name:"FormGroup",components:{PickColors:Re,InputNumber:mt},inject:["selectedComponent","componentList","renderUsedComponentList","theme"],emits:["change"],props:{value:{type:Array,default:()=>[]},format:{type:Array,default:()=>[]},useLabelIndex:{type:Boolean,default:!1},max:{type:Number,default:-1}},data(){return{isVue3:window.isVue3}},computed:{formatTypeValue(){return o=>o||"value"},useComponentType(){return o=>({input:"AInput",select:"ASelect",color:"PickColors","input-number":"InputNumber",switch:"ASwitch"})[o]},myValue:{get(){return this.value},set(o){this.$emit("change",o)}},newFormat(){const o=this.selectedComponent.requestType||0,e=this.selectedComponent.dataType||"",t=this.selectedComponent.DataSetFieldOptions||[],n=[...this.format];return o===1&&e==="request"?n.forEach((a,l)=>{a.label==="索引"&&(n[l]=G(V({},n[l]),{type:"select",props:{options:t.map(i=>({label:i,value:i}))}}))}):n.forEach((a,l)=>{a.label==="索引"&&(n[l]=G(V({},n[l]),{type:"input"}))}),n}},methods:{onValueChange(o,e,t){var a;const n=(a=this.value)==null?void 0:a.slice();if(Array.isArray(n)){const l=o==null?void 0:o.target,i=(l==null?void 0:l.value)!=null?l==null?void 0:l.value:o;t?n[e][t]=i:n[e]=i,this.myValue=n}},onAdd(){var t;const o=(t=this.value)==null?void 0:t.slice();if(!Array.isArray(o))return;const e=o.length;if(this.max===-1||this.max>e){const n=o[0];if(Object.prototype.toString.call(n)==="[object Object]"){const a=Object.keys(n),l={};a.forEach(i=>{l[i]=""}),o.push(l)}else typeof n=="string"&&o.push(n);this.myValue=o}else this.$message.warn("已达到最大上限")},onDelete(o){var t;const e=(t=this.value)==null?void 0:t.slice();if(Array.isArray(e)){if(e.length===1){this.$message.warn("已经是最后一条数据,无法删除");return}e.splice(o,1),this.myValue=e}},isShow(o,e){let t=!0;if(o.show){const{match:n,value:a}=o.show;typeof a=="string"&&e[n]===a||Array.isArray(a)&&a.includes(e[n])?t=!0:t=!1}return t}}};var kn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"form-group"},[e.isVue3?t("appstore-add-outlined",{staticClass:"icon add",on:{click:e.onAdd}}):t("span",{staticClass:"icon add",on:{click:e.onAdd}},[e._v("+")]),e.isVue3?t("draggable",{staticClass:"form",attrs:{"item-key":"id"},scopedSlots:e._u([{key:"item",fn:function({element:n,index:a}){return[t("div",{staticClass:"form-row"},e._l(e.newFormat,function(l,i){var m;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.isShow(l,n),expression:"isShow(f, e)"}],key:i,staticClass:"form-item"},[Array.isArray(l.label)?[t("span",{staticClass:"label"},[e._v(" "+e._s(l.useLabelIndex?l.label[a]+(a+1):l.label[a])+" ")])]:t("span",{staticClass:"label"},[e._v(" "+e._s(l.useLabelIndex?l.label+(a+1):l.label)+" ")]),t(e.useComponentType(l.type),e._b(e._b({tag:"component",staticClass:"value",style:{width:!["color","switch"].includes(l.type)&&e.format.length>1?"110px":""},attrs:{theme:e.theme,"use-blur-event":!1},on:{change:function(u){return e.onValueChange(u,a,l.value)}}},"component",e._d({},[e.formatTypeValue(l.typeValue),typeof n=="string"?n:(m=n[l.value])!=null?m:l.defaultValue])),"component",l.props,!1))],2)}),0)]}}],null,!1,220332434),model:{value:e.myValue,callback:function(n){e.myValue=n},expression:"myValue"}}):t("draggable",{staticClass:"form",attrs:{list:e.myValue,"item-key":"id"},model:{value:e.myValue,callback:function(n){e.myValue=n},expression:"myValue"}},[e._l(e.myValue,function(n,a){return[t("div",{staticClass:"form-row"},e._l(e.newFormat,function(l,i){var m;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.isShow(l,n),expression:"isShow(f, e)"}],key:i,staticClass:"form-item"},[Array.isArray(l.label)?[t("span",{staticClass:"label"},[e._v(" "+e._s(l.useLabelIndex?l.label[a]+(a+1):l.label[a])+" ")])]:t("span",{staticClass:"label"},[e._v(" "+e._s(l.useLabelIndex?l.label+(a+1):l.label)+" ")]),t(e.useComponentType(l.type),e._b(e._b({tag:"component",staticClass:"value",style:{width:!["color","switch"].includes(l.type)&&e.format.length>1?"110px":""},attrs:{"use-blur-event":!1},on:{change:function(u){return e.onValueChange(u,a,l.value)}}},"component",e._d({},[e.formatTypeValue(l.typeValue),typeof n=="string"?n:(m=n[l.value])!=null?m:l.defaultValue])),"component",l.props,!1))],2)}),0)]})],2),t("div",{staticClass:"icon-group"},e._l(e.myValue,function(n,a){return t("div",{key:a,staticClass:"icon-item"},[e.isVue3?t("minus-circle-outlined",{staticClass:"icon delete",on:{click:function(l){return e.onDelete(a)}}}):t("span",{staticClass:"icon delete",staticStyle:{"padding-bottom":"12px"},on:{click:function(l){return e.onDelete(a)}}},[e._v("-")])],1)}),0)],1)},In=[],$n=w(Ln,kn,In,!1,null,"a826f5d7",null,null);const Pn=$n.exports;const Fn={name:"GraphicFieldSelect",props:{value:{type:String,default:""}},inject:["selectedComponent"],emits:["change"],computed:{myValue:{get(){return this.value},set(o){this.$emit("change",o)}},options(){var e;const{indicators:o=[]}=((e=this.selectedComponent)==null?void 0:e.graphicConfig)||{};return o.map(t=>({label:t.label,value:t.label}))}}};var Vn=function(){var e=this,t=e._self._c;return t("a-select",{attrs:{options:e.options},model:{value:e.myValue,callback:function(n){e.myValue=n},expression:"myValue"}})},Dn=[],Mn=w(Fn,Vn,Dn,!1,null,"cbd51c5b",null,null);const On=Mn.exports;const Nn=[{label:"大于",value:">"},{label:"大于等于",value:">="},{label:"小于",value:"<"},{label:"小于等于",value:"<="},{label:"等于",value:"=="}],zn={name:"VisualColorConfig",components:{AppstoreAddOutlined:je,ColorPick:de},props:{value:{type:Array,default:()=>[]},indexTip:{type:String,default:""}},emits:["change"],data(){return{dataList:[],ruleOptions:Nn}},watch:{value:{handler(o){this.dataList=I.cloneDeep(o||[])},immediate:!0,deep:!0}},methods:{onAdd(){this.dataList.push({value1:"",value2:"",rule1:">=",rule2:"<",color:""}),this.$emit("change",this.dataList)},onDelete(o){this.dataList.splice(o,1),this.$emit("change",this.dataList)},onInputChange(){this.$emit("change",this.dataList)},setColor(o,e){typeof e=="object"&&(e!=null&&e.target)||(o.color=e,this.$emit("change",this.dataList))}},mounted(){this.dataList=I.cloneDeep(this.value||[])}};var Rn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"visual-color-config"},[t("div",{staticClass:"add"},[t("appstore-add-outlined",{staticClass:"icon",on:{click:e.onAdd}})],1),e._l(e.dataList,function(n,a){return t("div",{key:a,staticClass:"config-item"},[t("div",{staticClass:"item"},[t("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[t("span",[e._v("条件"+e._s(Number(a)+1)+":")]),t("span",{staticStyle:{color:"red",cursor:"pointer"},on:{click:function(l){e.onDelete(Number(a))}}},[e._v("删除")])]),t("div",{staticStyle:{margin:"10px 0"}},[t("a-input",{attrs:{placeholder:"请输入"},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonBefore",fn:function(){return[t("a-select",{staticStyle:{width:"100px"},attrs:{options:e.ruleOptions},on:{change:e.onInputChange},model:{value:n.rule1,callback:function(l){e.$set(n,"rule1",l)},expression:"data.rule1"}})]},proxy:!0}],null,!0),model:{value:n.value1,callback:function(l){e.$set(n,"value1",l)},expression:"data.value1"}})],1),t("div",{staticStyle:{margin:"15px 0 10px"}},[t("a-input",{attrs:{placeholder:"请输入"},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonBefore",fn:function(){return[t("a-select",{staticStyle:{width:"100px"},attrs:{options:e.ruleOptions},on:{change:e.onInputChange},model:{value:n.rule2,callback:function(l){e.$set(n,"rule2",l)},expression:"data.rule2"}})]},proxy:!0}],null,!0),model:{value:n.value2,callback:function(l){e.$set(n,"value2",l)},expression:"data.value2"}})],1),t("div",{staticStyle:{margin:"10px 0"}},[e._v("名称:")]),t("a-input",{attrs:{placeholder:"请输入名称"},on:{change:e.onInputChange},model:{value:n.name,callback:function(l){e.$set(n,"name",l)},expression:"data.name"}}),t("div",{staticStyle:{margin:"10px 0"}},[e._v("颜色:")]),t("color-pick",{attrs:{value:n.color},on:{change:function(l){return e.setColor(n,l)}}})],1)])})],2)},jn=[],qn=w(zn,Rn,jn,!1,null,"d1d2fffe",null,null);const Bn=qn.exports;const En=[{label:"大于",value:">"},{label:"大于等于",value:">="},{label:"小于",value:"<"},{label:"小于等于",value:"<="},{label:"等于",value:"=="}],Wn={name:"VisualSizeConfig",components:{AppstoreAddOutlined:je,ColorPick:de},props:{value:{type:Array,default:()=>[]},indexTip:{type:String,default:""}},emits:["change"],data(){return{dataList:[],ruleOptions:En}},watch:{value:{handler(o){this.dataList=I.cloneDeep(o||[])},immediate:!0,deep:!0}},methods:{onAdd(){this.dataList.push({value1:"",value2:"",rule1:">=",rule2:"<",color:""}),this.$emit("change",this.dataList)},onDelete(o){this.dataList.splice(o,1),this.$emit("change",this.dataList)},onInputChange(){this.$emit("change",this.dataList)}},mounted(){this.dataList=I.cloneDeep(this.value||[])}};var Gn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"visual-size-config"},[t("div",{staticClass:"add"},[t("appstore-add-outlined",{staticClass:"icon",on:{click:e.onAdd}})],1),e._l(e.dataList,function(n,a){return t("div",{key:a,staticClass:"config-item"},[t("div",{staticClass:"item"},[t("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[t("span",[e._v("条件"+e._s(Number(a)+1)+":")]),t("span",{staticStyle:{color:"red",cursor:"pointer"},on:{click:function(l){e.onDelete(Number(a))}}},[e._v("删除")])]),t("div",{staticStyle:{margin:"10px 0"}},[t("a-input",{attrs:{placeholder:"请输入"},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonBefore",fn:function(){return[t("a-select",{staticStyle:{width:"100px"},attrs:{options:e.ruleOptions},on:{change:e.onInputChange},model:{value:n.rule1,callback:function(l){e.$set(n,"rule1",l)},expression:"data.rule1"}})]},proxy:!0}],null,!0),model:{value:n.value1,callback:function(l){e.$set(n,"value1",l)},expression:"data.value1"}})],1),t("div",{staticStyle:{margin:"15px 0 10px"}},[t("a-input",{attrs:{placeholder:"请输入"},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonBefore",fn:function(){return[t("a-select",{staticStyle:{width:"100px"},attrs:{options:e.ruleOptions},on:{change:e.onInputChange},model:{value:n.rule2,callback:function(l){e.$set(n,"rule2",l)},expression:"data.rule2"}})]},proxy:!0}],null,!0),model:{value:n.value2,callback:function(l){e.$set(n,"value2",l)},expression:"data.value2"}})],1),t("div",{staticStyle:{margin:"10px 0"}},[e._v("尺寸:")]),t("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入"},on:{change:e.onInputChange},model:{value:n.size,callback:function(l){e.$set(n,"size",l)},expression:"data.size"}})],1)])})],2)},Hn=[],Un=w(Wn,Gn,Hn,!1,null,"ed0b93ce",null,null);const Kn=Un.exports;const xe={pageName:"无",pageId:""},Yn="1986455206262427650",Xn={name:"PagePick",props:{value:{type:[String,Object],default:""},crossProject:{type:Boolean,default:!1},linkProjectId:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["change"],inject:{pageId:{default:""},projectId:{default:""},request:{default:null}},data(){return{pageList:[],projectList:[],selectedProjectId:"",loading:!1}},computed:{myValue:{get(){return this.value},set(o){this.$emit("change",this.crossProject?{projectId:this.selectedProjectId,pageId:o}:o)}}},mounted(){this.crossProject?this.initCrossProject():this.handlePageList()},methods:{getPageId(){const o=this.value;return o&&typeof o=="object"?o.pageId||"":o||""},handlePageList(){return J(this,null,function*(){var o;if(this.request)try{const e=yield this.request.get(`/page/others/${this.pageId}`);this.pageList=[xe].concat(((o=e==null?void 0:e.data)==null?void 0:o.data)||[])}catch(e){console.error(e)}})},handleProjectList(){return J(this,null,function*(){var t,n;const o=yield this.request.get("/project/query?pageSize=100"),e=(n=(t=o==null?void 0:o.data)==null?void 0:t.data)==null?void 0:n.rows;return this.projectList=(Array.isArray(e)?e:[]).filter(a=>a.projectId!==Yn),this.projectList})},handleCrossProjectPageList(){return J(this,null,function*(){var o,e;if(this.request){if(!this.selectedProjectId){this.pageList=[xe];return}try{this.loading=!0;const t=yield this.request.get("/page/query",{params:{projectId:this.selectedProjectId,pageNum:1,pageSize:1e3,pageName:""}}),n=(e=(o=t==null?void 0:t.data)==null?void 0:o.data)==null?void 0:e.rows,a=(Array.isArray(n)?n:[]).filter(l=>l.pageId!==this.pageId);this.pageList=[xe].concat(a)}catch(t){console.error(t),this.pageList=[xe]}finally{this.loading=!1}}})},getSelectedPageProjectId(){return J(this,null,function*(){var o,e;if(!this.request||!this.getPageId())return"";try{const t=yield this.request.get("/page",{params:{pageId:this.getPageId()}});return((e=(o=t==null?void 0:t.data)==null?void 0:o.data)==null?void 0:e.projectId)||""}catch(t){return console.error(t),""}})},initCrossProject(){return J(this,null,function*(){var o;if(this.request){try{this.loading=!0;const[e,t]=yield Promise.all([this.handleProjectList(),this.getSelectedPageProjectId()]),n=[this.linkProjectId,this.projectId,t].find(a=>a&&e.some(l=>l.projectId===a));this.selectedProjectId=n||((o=e[0])==null?void 0:o.projectId)||"",!this.linkProjectId&&this.selectedProjectId&&this.$emit("change",{projectId:this.selectedProjectId,pageId:this.getPageId()})}catch(e){console.error(e),this.projectList=[]}finally{this.loading=!1}yield this.handleCrossProjectPageList()}})},handleProjectChange(o){this.selectedProjectId=o,this.$emit("change",{projectId:o,pageId:""}),this.handleCrossProjectPageList()}}};var Zn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-pick",class:{"is-cross-project":e.crossProject}},[e.crossProject?t("div",{staticClass:"field-row"},[t("span",{staticClass:"field-label"},[e._v("项目")]),t("a-select",{staticClass:"field-control",attrs:{options:e.projectList,"field-names":{label:"projectName",value:"projectId"},disabled:e.disabled,loading:e.loading,placeholder:"请选择项目","option-filter-prop":"projectName","show-search":""},on:{change:e.handleProjectChange},model:{value:e.selectedProjectId,callback:function(n){e.selectedProjectId=n},expression:"selectedProjectId"}})],1):e._e(),t("div",{class:e.crossProject?"field-row":"page-select-wrapper"},[e.crossProject?t("span",{staticClass:"field-label"},[e._v("页面")]):e._e(),t("a-select",{class:["page-select",{"field-control":e.crossProject}],attrs:{options:e.pageList,"field-names":{label:"pageName",value:"pageId"},disabled:e.disabled,loading:e.loading,placeholder:e.crossProject?"请选择页面":void 0,"option-filter-prop":"pageName","show-search":""},model:{value:e.myValue,callback:function(n){e.myValue=n},expression:"myValue"}})],1)])},Jn=[],Qn=w(Xn,Zn,Jn,!1,null,"08ee3da7",null,null);const Tt=Qn.exports,el=H.defineComponent({components:{AppstoreAddOutlined:je,MinusCircleOutlined:bn,QuestionCircleOutlined:fn},props:{value:{type:Array,default:()=>[]},indexTip:{type:String,default:""},keyName:{type:String,defalut:"别名"},fieldName:{type:String,defalut:"字段"},layout:{type:String,default:""},isColumnLink:{type:Boolean,defalut:!1}},emits:["change"],setup(o,{emit:e}){const t=H.ref([]),n=()=>{t.value.push({keyName:"",fieldName:""}),e("change",H.unref(t))},a=i=>{t.value.splice(i,1),e("change",H.unref(t))},l=()=>{e("change",H.unref(t))};return H.watch(()=>o.value,i=>{t.value=I.cloneDeep(i||[])},{immediate:!0,deep:!0}),H.onMounted(()=>{t.value=I.cloneDeep(o.value||[])}),{dataList:t,onAdd:n,onDelete:a,onInputChange:l}}});var tl=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"unit-config"},[t("div",{staticClass:"add",class:{vertical:e.isColumnLink}},[t("a-tooltip",{attrs:{title:e.indexTip,overlayClassName:"question-tooltip",color:"#fff"}},[t("question-circle-outlined",{staticClass:"icon question-icon"})],1),t("appstore-add-outlined",{staticClass:"icon add-icon",on:{click:e.onAdd}})],1),e._l(e.dataList,function(n,a){return t("div",{key:a,staticClass:"config-item",class:e.layout?"vertical":""},[e.layout?[t("div",{staticStyle:{width:"100%"}},[t("div",{staticClass:"item"},[e._v(" "+e._s(e.keyName)+": "),t("a-input",{staticStyle:{width:"70%"},on:{change:e.onInputChange},model:{value:n.keyName,callback:function(l){e.$set(n,"keyName",l)},expression:"data.keyName"}})],1),t("div",{staticClass:"item"},[e._v(" "+e._s(e.fieldName)+": "),t("a-input",{staticStyle:{width:"70%"},on:{change:e.onInputChange},model:{value:n.fieldName,callback:function(l){e.$set(n,"fieldName",l)},expression:"data.fieldName"}})],1)]),t("minus-circle-outlined",{staticClass:"icon",staticStyle:{"font-size":"16px"},on:{click:function(l){return e.onDelete(a)}}})]:[t("div",{staticClass:"item"},[e._v(" "+e._s(e.keyName)+": "),t("a-input",{staticStyle:{width:"85px"},on:{change:e.onInputChange},model:{value:n.keyName,callback:function(l){e.$set(n,"keyName",l)},expression:"data.keyName"}})],1),t("div",{staticClass:"item"},[e._v(" "+e._s(e.fieldName)+": "),t("a-input",{staticStyle:{width:"85px"},on:{change:e.onInputChange},model:{value:n.fieldName,callback:function(l){e.$set(n,"fieldName",l)},expression:"data.fieldName"}})],1),t("minus-circle-outlined",{staticClass:"icon",staticStyle:{"font-size":"16px"},on:{click:function(l){return e.onDelete(a)}}})]],2)})],2)},ol=[],nl=w(el,tl,ol,!1,null,"91cabbb1",null,null);const Lt=nl.exports;const ll=`【参数名】是跳转链接上携带参数的key值;
13
- 【参数值】是跳转链接上携带参数的value值。`,al=()=>({rule:"",data:{linkPage:"",linkProjectId:"",href:"",target:"self",targetTemplate:"",transParams:[]}}),dt=(o={})=>{const e=I.cloneDeep(o.data)||{};return G(V({},I.cloneDeep(o)),{rule:o.rule||"",data:G(V({},e),{linkPage:e.linkPage||"",linkProjectId:e.linkProjectId||"",href:e.href||"",target:e.target||"self",targetTemplate:e.targetTemplate||"",transParams:Array.isArray(e.transParams)?e.transParams:[]})})},il={name:"LinkConfig",components:{PagePick:Tt,SelectConfig:At,UnitConfig:Lt},props:{value:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1}},emits:["change"],data(){return{dataList:[],transParamsTip:ll,targetOptions:[{label:"当前窗口",value:"self"},{label:"新窗口",value:"blank"},{label:"事件",value:"event"},{label:"模板",value:"template"},{label:"平台标签页",value:"ygt-tab"}]}},watch:{value:{handler(o){this.dataList=(Array.isArray(o)?o:[]).map(dt)},immediate:!0,deep:!0}},mounted(){this.dataList=(Array.isArray(this.value)?this.value:[]).map(dt)},methods:{onAdd(){this.dataList.push(al()),this.onInputChange()},onDelete(o){this.dataList.splice(o,1),this.onInputChange()},onInputChange(){this.$emit("change",I.cloneDeep(this.dataList))},setDataValue(o,e,t){e==="linkPage"&&t&&typeof t=="object"?(o.data.linkPage=t.pageId||"",o.data.linkProjectId=t.projectId||""):o.data[e]=t,e==="linkPage"&&o.data.linkPage&&(o.data.href=""),this.onInputChange()},setHref(o,e){o.data.href=e!=null&&e.target?e.target.value:e,this.onInputChange()}}};var sl=function(){var e=this,t=e._self._c;return t("div",{staticClass:"link-config"},[t("a-button",{staticStyle:{"margin-bottom":"15px"},attrs:{size:"small",type:"primary"},on:{click:e.onAdd}},[e._v("新增配置")]),e._l(e.dataList,function(n,a){return t("div",{key:a,staticClass:"config-item"},[t("div",{staticClass:"item"},[t("div",{staticClass:"item-header"},[t("span",[e._v("规则"+e._s(Number(a)+1))]),t("span",{staticClass:"delete",on:{click:function(l){e.onDelete(Number(a))}}},[e._v("删除")])]),t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("规则:")]),t("a-input",{staticClass:"full-width",attrs:{disabled:e.disabled,placeholder:"请输入"},on:{change:e.onInputChange},model:{value:n.rule,callback:function(l){e.$set(n,"rule",l)},expression:"item.rule"}})],1),t("div",{staticClass:"item-row page-pick-row"},[t("page-pick",{staticClass:"full-width",attrs:{value:n.data.linkPage,"link-project-id":n.data.linkProjectId,disabled:e.disabled,"cross-project":""},on:{change:function(l){return e.setDataValue(n,"linkPage",l)}}})],1),n.data.linkPage?e._e():t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("链接:")]),t("a-textarea",{staticClass:"full-width",attrs:{value:n.data.href,disabled:e.disabled,"auto-size":{minRows:3}},on:{change:function(l){return e.setHref(n,l)}}})],1),t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("方式:")]),t("select-config",{staticClass:"full-width",attrs:{value:n.data.target,options:e.targetOptions,disabled:e.disabled},on:{change:function(l){return e.setDataValue(n,"target",l)}}})],1),t("div",{staticClass:"item-row trans-params-row"},[t("div",{staticClass:"title"},[e._v("参数:")]),t("unit-config",{staticClass:"trans-params-config",attrs:{value:n.data.transParams,"index-tip":e.transParamsTip,"key-name":"参数名","field-name":"参数值",layout:"vertical",isColumnLink:!0},on:{change:function(l){return e.setDataValue(n,"transParams",l)}}})],1)])])})],2)},rl=[],pl=w(il,sl,rl,!1,null,"60be3fee",null,null);const ul=pl.exports,N=(o,e)=>Io(o,e);const cl={name:"PropsToForm",components:{EcanInput:Rt,EcanInputNumber:mt,EcanRadioGroup:Kt,EcanSelect:At,EcanSwitch:Ro,EcanColorPick:de,EcanColorGroupPick:nn,EcanSlider:pn,EcanTextarea:hn,EcanMarkAreaConfig:_n,EcanMarkLinkConfig:Tn,EcanFormGroup:Pn,EcanGraphicFieldSelect:On,EcanVisualColorConfig:Bn,EcanVisualSizeConfig:Kn,EcanPagePick:Tt,EcanUnitConfig:Lt,EcanLinkConfig:ul},props:{props:{type:Object,required:!0},disabled:{type:Boolean,default:!1},selectedComponentType:{type:String,default:""}},emits:["change"],inject:{selectedComponent:{default:null}},data(){return{isVue3:window.isVue3,questionStyle:{marginLeft:"10px",fontSize:"18px",color:"#7c7c7c",cursor:"pointer"}}},computed:{formProps(){const o=this.props;if(o==null||typeof o!="object")return{};const e={};for(const t in o){const n=Le[t],a=n==null?void 0:n.show;a?this.getShowResult(a,o).isMatch&&(e[t]=o[t]):e[t]=o[t]}return I.reduce(e,(t,n,a)=>{const l=Le[a];if(Array.isArray(l)){const i=l.find(m=>{const{onlyType:u,excludeType:c,dataVNoHas:v}=m;let h=!1;return u==null&&c==null?h=!0:u?h=N(this.selectedComponentType,u):c&&(h=!N(this.selectedComponentType,c)),h&&m.show&&(h=this.getShowResult(m.show,o).isMatch),v&&isVue3&&(h=!1),h});i&&this.setFormProps({result:t,value:n,key:a,mapAttributeProp:i})}else this.setFormProps({result:t,value:n,key:a,mapAttributeProp:l});return t},{})}},methods:{setFormProps({result:o,mapAttributeProp:e,key:t,value:n}){var v;if(o==null||typeof o!="object")return;const{valueProp:a="value",changeValueEventName:l="change",events:i,updateMode:m,projectKey:u}=e,c=V({},e.props);u&&(c.linkProjectId=((v=this.selectedComponent)==null?void 0:v[u])||""),o[t]=G(V({},e),{valueProp:a,value:n,props:c,events:V({[l]:(h,x={useContainer:!1},S=!0)=>{const L=u&&h&&typeof h=="object"?{[t]:h.pageId||"",[u]:h.projectId||""}:{[t]:h};[void 0,"component"].includes(m)&&S&&!h.target&&this.$emit("change",L,x)}},i)})},getShowResult(o=[],e){return o.reduce((t,n)=>{let a={isMatch:!0,rule:null};t&&(a=t);let l=!1;if(n.valueRule==="not"?l=e[n.match]!==n.value:l=e[n.match]===n.value,t){if(a.rule)switch(a.rule){case"and":a.isMatch=a.isMatch&&l;break;case"or":a.isMatch=a.isMatch||l;break}}else a.isMatch=l;return a.rule=n.rule||"and",a},null)}}};var dl=function(){var e=this,t=e._self._c;return t("div",{staticClass:"props-to-form"},e._l(e.formProps,function(n,a){var l;return t("div",{key:a,class:["prop-item",{layout:n.layout==="vertical"}]},[n.label?t("span",{class:["label",n.layout==="vertical"?"label-vertical":""],style:{width:e.isVue3?"28%":"38%"}},[e._v(" "+e._s(n.label)+" ")]):e._e(),t("div",{staticClass:"component-wrapper"},[Array.isArray(n)?e._l(n,function(i,m){return t("div",{key:m,staticClass:"component"},[t("Ecan"+i.component[0].toUpperCase()+i.component.slice(1),e._g(e._b(e._b({tag:"component",style:i.style,attrs:{disabled:e.disabled}},"component",e._d({},[i.valueProp,i.value])),"component",i.props,!1),i.events))],1)}):e._e(),Array.isArray(n)?e._e():[n.component?t("Ecan"+n.component[0].toUpperCase()+n.component.slice(1),e._g(e._b(e._b({tag:"component",staticClass:"component",style:n.style,attrs:{disabled:e.disabled}},"component",e._d({},[n.valueProp,n.value])),"component",n.props,!1),n.events)):e._e(),(l=n==null?void 0:n.props)!=null&&l.tooltip?t("a-tooltip",{attrs:{title:n.props.tooltip,placement:"topRight",overlayClassName:"question-tooltip",color:"#fff"}},[t("question-circle-outlined",{style:e.questionStyle})],1):e._e()]],2)])}),0)},ml=[],hl=w(cl,dl,ml,!1,null,"c86c2a34",null,null);const fl=hl.exports;const bl={name:"AttributeConfig",components:{PropsToForm:fl},props:["searchValue","selectedComponent","selectedComponentType","renderUsedComponentList","pageId","projectId","request"],provide(){return{componentList:this.componentList,selectedComponent:this.selectedComponent,renderUsedComponentList:this.renderUsedComponentList,pageId:this.pageId||"",projectId:this.projectId||"",request:this.request}},data(){return{componentList:Dt,activeKey:[]}},emits:["change"],computed:{searchProps(){return I.reduce(Le,(o,e,t)=>(Array.isArray(e)?e.forEach(n=>{N(n.label,this.searchValue)&&o.push(t)}):!Array.isArray(e)&&N(e.label,this.searchValue)&&o.push(t),o),[])},finalProps(){var t,n;const o=(t=this.selectedComponent)==null?void 0:t.type;let e={};if(o!=null){const a=((n=this.componentList)==null?void 0:n.find(i=>N(i.type,o)))||{},l=I.pick(this.selectedComponent||{},Object.keys(a||{}));e=V(V({},a),l)}return I.pick(e,this.searchProps)},detailPropsGroups(){return Vt.map(o=>{const{props:e,title:t,enableProps:n,onlyType:a,excludeType:l,showSwitch:i,dataVNoHas:m}=o,u=[];return e.forEach(c=>{var v,h;m&&isVue3||(typeof c=="string"?u.push(c):N((v=this.selectedComponent)==null?void 0:v.type,c.onlyType)?u.push(c.value):N((h=this.selectedComponent)==null?void 0:h.type,c.excludeType)||u.push(c.value))}),{title:t,enableProps:typeof n=="string"&&this.selectedComponent?this.selectedComponent[n]:void 0,enablePropsName:n,onlyType:a,excludeType:l,showSwitch:i,props:I.pick(this.finalProps,u)}}).filter(({props:o})=>Object.keys(o).length>0)}},watch:{searchValue(o){},selectedComponent:{handler(o){if(o&&Object.keys(o).length===1){const e=this.componentList.find(s=>s.type==="ecanBar"),{id:t,name:n,keyName:a,width:l,height:i,position:m,top:u,left:c,zIndex:v,rotate:h,isShow:x,isRender:S,requestUrl:L,requestType:$,requestMethod:P,dataSetParam:me,requestHeaders:qe,isOpenRequestTimer:X,isViewRedrawing:R,requestInterval:_e,requestSort:he,requestParams:ne,events:A,dataType:g,scale:le,requestParamsMode:Se,customRequestParams:f}=e,r=Ge(e,["id","name","keyName","width","height","position","top","left","zIndex","rotate","isShow","isRender","requestUrl","requestType","requestMethod","dataSetParam","requestHeaders","isOpenRequestTimer","isViewRedrawing","requestInterval","requestSort","requestParams","events","dataType","scale","requestParamsMode","customRequestParams"]);this.change(r)}},immediate:!0}},methods:{onSwitchChange(o,e){e!=null&&this.change({[e]:o})},onSwitchClick(o,e){e==null||e.stopPropagation()},isRenderForm(o,e){const{onlyType:t,excludeType:n}=o;return t==null&&n==null?!0:t?N(e,t):n?!N(e,n):!1},lowerCaseIncludes(o,e){return N(o,e)},change(...o){this.$emit("change",...o)}}};var yl=function(){var e=this,t=e._self._c;return t("div",[t("a-collapse",{model:{value:e.activeKey,callback:function(n){e.activeKey=n},expression:"activeKey"}},[e._l(e.detailPropsGroups,function(n,a){return[e.isRenderForm(n,e.selectedComponentType)?[n.title?t("a-collapse-panel",{key:String(a),attrs:{header:n.title},scopedSlots:e._u([{key:"extra",fn:function(){return[typeof n.enableProps=="boolean"||n.showSwitch?t("a-switch",{attrs:{checked:n.enableProps},on:{change:l=>e.onSwitchChange(l,n.enablePropsName),click:e.onSwitchClick}}):e._e()]},proxy:!0}],null,!0)},[t("props-to-form",{attrs:{selectedComponentType:e.selectedComponentType,props:n.props,disabled:typeof n.enableProps=="boolean"?!n.enableProps:!!n.showSwitch},on:{change:e.change}})],1):t("div",{staticClass:"props-to-form-wrapper"},[t("props-to-form",{attrs:{props:n.props},on:{change:e.change}})],1)]:e._e()]})],2)],1)},xl=[],gl=w(bl,yl,xl,!1,null,"246153c0",null,null);const kt=gl.exports;window.VUE_VERSION="2";window.isVue3=!1;const vl={install(o,e){o.component("ChartPanel",kt)}};exports.ChartPanel=kt;exports.default=vl;
12
+ `],...function({vnode:v,recurseCount:h}){const x=h>0?`... (${h} recursive calls)`:"",S=!!v.component&&v.component.parent==null,L=` at <${Ze(v.component,v.type,S)}`,$=">"+x;return v.props?[L,...to(v.props),$]:[L+$]}(u))}),m}(a)),console.warn(...l)}}function to(o){const e=[],t=Object.keys(o);return t.slice(0,3).forEach(n=>{e.push(...ht(n,o[n]))}),t.length>3&&e.push(" ..."),e}function ht(o,e,t){return typeof e=="string"?(e=JSON.stringify(e),t?e:[`${o}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?t?e:[`${o}=${e}`]:eo(e)?(e=ht(o,Ie(e.value),!0),t?e:[`${o}=Ref<`,e,">"]):Oe(e)?[`${o}=fn${e.name?`<${e.name}>`:""}`]:(e=Ie(e),t?e:[`${o}=`,e])}const Ue={sp:"serverPrefetch hook",bc:"beforeCreate hook",c:"created hook",bm:"beforeMount hook",m:"mounted hook",bu:"beforeUpdate hook",u:"updated",bum:"beforeUnmount hook",um:"unmounted hook",a:"activated hook",da:"deactivated hook",ec:"errorCaptured hook",rtc:"renderTracked hook",rtg:"renderTriggered hook",0:"setup function",1:"render function",2:"watcher getter",3:"watcher callback",4:"watcher cleanup function",5:"native event handler",6:"component event handler",7:"vnode hook",8:"directive hook",9:"transition hook",10:"app errorHandler",11:"app warnHandler",12:"ref function",13:"async component loader",14:"scheduler flush. This is likely a Vue internals bug. Please open an issue at https://new-issue.vuejs.org/?repo=vuejs/core"};function ze(o,e,t,n){let a;try{a=n?o(...n):o()}catch(l){(function(i,m,u,c=!0){const v=m?m.vnode:null;if(m){let h=m.parent;const x=m.proxy,S=process.env.NODE_ENV!=="production"?Ue[u]:u;for(;h;){const $=h.ec;if($){for(let P=0;P<$.length;P++)if($[P](i,x,S)===!1)return}h=h.parent}const L=m.appContext.config.errorHandler;if(L)return void ze(L,null,10,[i,x,S])}(function(h,x,S,L=!0){if(process.env.NODE_ENV!=="production"){const P=Ue[x];if(S&&($=S,U.push($)),Ne("Unhandled error"+(P?` during execution of ${P}`:"")),S&&U.pop(),L)throw h;console.error(h)}else console.error(h);var $})(i,u,v,c)})(l,e,t)}return a}let ge=!1,$e=!1;const M=[];let B=0;const ee=[];let O=null,q=0;const oo=Promise.resolve();function no(o){M.length&&M.includes(o,ge&&o.allowRecurse?B+1:B)||(o.id==null?M.push(o):M.splice(function(e){let t=B+1,n=M.length;for(;t<n;){const a=t+n>>>1,l=M[a],i=ce(l);i<e||i===e&&l.pre?t=a+1:n=a}return t}(o.id),0,o),ft())}function ft(){ge||$e||($e=!0,oo.then(bt))}const ce=o=>o.id==null?1/0:o.id,lo=(o,e)=>{const t=ce(o)-ce(e);if(t===0){if(o.pre&&!e.pre)return-1;if(e.pre&&!o.pre)return 1}return t};function bt(o){$e=!1,ge=!0,process.env.NODE_ENV!=="production"&&(o=o||new Map),M.sort(lo);const e=process.env.NODE_ENV!=="production"?t=>Ke(o,t):Xt;try{for(B=0;B<M.length;B++){const t=M[B];if(t&&t.active!==!1){if(process.env.NODE_ENV!=="production"&&e(t))continue;ze(t,null,14)}}}finally{B=0,M.length=0,function(t){if(ee.length){const n=[...new Set(ee)];if(ee.length=0,O)return void O.push(...n);for(O=n,process.env.NODE_ENV!=="production"&&(t=t||new Map),O.sort((a,l)=>ce(a)-ce(l)),q=0;q<O.length;q++)process.env.NODE_ENV!=="production"&&Ke(t,O[q])||O[q]();O=null,q=0}}(o),ge=!1,(M.length||ee.length)&&bt(o)}}function Ke(o,e){if(o.has(e)){const t=o.get(e);if(t>100){const n=e.ownerInstance,a=n&&yt(n.type);return Ne(`Maximum recursive updates exceeded${a?` in component <${a}>`:""}. This means you have a reactive effect that is mutating its own dependencies and thus recursively triggering itself. Possible sources include component template, render function, updated hook or watcher source function.`),!0}o.set(e,t+1)}else o.set(e,1)}const se=new Set;process.env.NODE_ENV!=="production"&&(ke().__VUE_HMR_RUNTIME__={createRecord:we(function(o,e){return ye.has(o)?!1:(ye.set(o,{initialDef:re(e),instances:new Set}),!0)}),rerender:we(function(o,e){const t=ye.get(o);t&&(t.initialDef.render=e,[...t.instances].forEach(n=>{e&&(n.render=e,re(n.type).render=e),n.renderCache=[],n.update()}))}),reload:we(function(o,e){const t=ye.get(o);if(!t)return;e=re(e),Ye(t.initialDef,e);const n=[...t.instances];for(const l of n){const i=re(l.type);se.has(i)||(i!==t.initialDef&&Ye(i,e),se.add(i)),l.appContext.propsCache.delete(l.type),l.appContext.emitsCache.delete(l.type),l.appContext.optionsCache.delete(l.type),l.ceReload?(se.add(i),l.ceReload(e.styles),se.delete(i)):l.parent?no(l.parent.update):l.appContext.reload?l.appContext.reload():typeof window!="undefined"?window.location.reload():console.warn("[HMR] Root or manually mounted instance modified. Full reload required.")}a=()=>{for(const l of n)se.delete(re(l.type))},Jt(a)?ee.push(...a):O&&O.includes(a,a.allowRecurse?q+1:q)||ee.push(a),ft();var a})});const ye=new Map;function re(o){return Oe(e=o)&&"__vccOpts"in e?o.__vccOpts:o;var e}function Ye(o,e){Zt(o,e);for(const t in o)t==="__file"||t in e||delete o[t]}function we(o){return(e,t)=>{try{return o(e,t)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let Ce;process.env.NODE_ENV;let Xe="__VUE_INSTANCE_SETTERS__";(Ce=ke()[Xe])||(Ce=ke()[Xe]=[]),Ce.push(o=>o);const ao=/(?:^|[-_])(\w)/g,io=o=>o.replace(ao,e=>e.toUpperCase()).replace(/[-_]/g,"");function yt(o,e=!0){return Oe(o)?o.displayName||o.name:o.name||e&&o.__name}function Ze(o,e,t=!1){let n=yt(e);if(!n&&e.__file){const a=e.__file.match(/([^/\\]+)\.\w+$/);a&&(n=a[1])}if(!n&&o&&o.parent){const a=l=>{for(const i in l)if(l[i]===e)return i};n=a(o.components||o.parent.type.components)||a(o.appContext.components)}return n?io(n):t?"App":"Anonymous"}function so(o){return o&&o.__esModule&&Object.prototype.hasOwnProperty.call(o,"default")?o.default:o}var Je,Qe={exports:{}};function ro(){return Je||(Je=1,Qe.exports=function(){var o=1e3,e=6e4,t=36e5,n="millisecond",a="second",l="minute",i="hour",m="day",u="week",c="month",v="quarter",h="year",x="date",S="Invalid Date",L=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,$=/\[([^\]]+)]|Y{1,4}|M{1,4}|D{1,2}|d{1,4}|H{1,2}|h{1,2}|a|A|m{1,2}|s{1,2}|Z{1,2}|SSS/g,P={name:"en",weekdays:"Sunday_Monday_Tuesday_Wednesday_Thursday_Friday_Saturday".split("_"),months:"January_February_March_April_May_June_July_August_September_October_November_December".split("_"),ordinal:function(f){var r=["th","st","nd","rd"],s=f%100;return"["+f+(r[(s-20)%10]||r[s]||r[0])+"]"}},me=function(f,r,s){var d=String(f);return!d||d.length>=r?f:""+Array(r+1-d.length).join(s)+f},qe={s:me,z:function(f){var r=-f.utcOffset(),s=Math.abs(r),d=Math.floor(s/60),p=s%60;return(r<=0?"+":"-")+me(d,2,"0")+":"+me(p,2,"0")},m:function f(r,s){if(r.date()<s.date())return-f(s,r);var d=12*(s.year()-r.year())+(s.month()-r.month()),p=r.clone().add(d,c),b=s-p<0,y=r.clone().add(d+(b?-1:1),c);return+(-(d+(s-p)/(b?p-y:y-p))||0)},a:function(f){return f<0?Math.ceil(f)||0:Math.floor(f)},p:function(f){return{M:c,y:h,w:u,d:m,D:x,h:i,m:l,s:a,ms:n,Q:v}[f]||String(f||"").toLowerCase().replace(/s$/,"")},u:function(f){return f===void 0}},X="en",R={};R[X]=P;var _e="$isDayjsObject",he=function(f){return f instanceof le||!(!f||!f[_e])},ne=function f(r,s,d){var p;if(!r)return X;if(typeof r=="string"){var b=r.toLowerCase();R[b]&&(p=b),s&&(R[b]=s,p=b);var y=r.split("-");if(!p&&y.length>1)return f(y[0])}else{var _=r.name;R[_]=r,p=_}return!d&&p&&(X=p),p||!d&&X},A=function(f,r){if(he(f))return f.clone();var s=typeof r=="object"?r:{};return s.date=f,s.args=arguments,new le(s)},g=qe;g.l=ne,g.i=he,g.w=function(f,r){return A(f,{locale:r.$L,utc:r.$u,x:r.$x,$offset:r.$offset})};var le=function(){function f(s){this.$L=ne(s.locale,null,!0),this.parse(s),this.$x=this.$x||s.x||{},this[_e]=!0}var r=f.prototype;return r.parse=function(s){this.$d=function(d){var p=d.date,b=d.utc;if(p===null)return new Date(NaN);if(g.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var y=p.match(L);if(y){var _=y[2]-1||0,C=(y[7]||"0").substring(0,3);return b?new Date(Date.UTC(y[1],_,y[3]||1,y[4]||0,y[5]||0,y[6]||0,C)):new Date(y[1],_,y[3]||1,y[4]||0,y[5]||0,y[6]||0,C)}}return new Date(p)}(s),this.init()},r.init=function(){var s=this.$d;this.$y=s.getFullYear(),this.$M=s.getMonth(),this.$D=s.getDate(),this.$W=s.getDay(),this.$H=s.getHours(),this.$m=s.getMinutes(),this.$s=s.getSeconds(),this.$ms=s.getMilliseconds()},r.$utils=function(){return g},r.isValid=function(){return this.$d.toString()!==S},r.isSame=function(s,d){var p=A(s);return this.startOf(d)<=p&&p<=this.endOf(d)},r.isAfter=function(s,d){return A(s)<this.startOf(d)},r.isBefore=function(s,d){return this.endOf(d)<A(s)},r.$g=function(s,d,p){return g.u(s)?this[d]:this.set(p,s)},r.unix=function(){return Math.floor(this.valueOf()/1e3)},r.valueOf=function(){return this.$d.getTime()},r.startOf=function(s,d){var p=this,b=!!g.u(d)||d,y=g.p(s),_=function(W,F){var j=g.w(p.$u?Date.UTC(p.$y,F,W):new Date(p.$y,F,W),p);return b?j:j.endOf(m)},C=function(W,F){return g.w(p.toDate()[W].apply(p.toDate("s"),(b?[0,0,0,0]:[23,59,59,999]).slice(F)),p)},T=this.$W,k=this.$M,D=this.$D,Z="set"+(this.$u?"UTC":"");switch(y){case h:return b?_(1,0):_(31,11);case c:return b?_(1,k):_(0,k+1);case u:var E=this.$locale().weekStart||0,ae=(T<E?T+7:T)-E;return _(b?D-ae:D+(6-ae),k);case m:case x:return C(Z+"Hours",0);case i:return C(Z+"Minutes",1);case l:return C(Z+"Seconds",2);case a:return C(Z+"Milliseconds",3);default:return this.clone()}},r.endOf=function(s){return this.startOf(s,!1)},r.$set=function(s,d){var p,b=g.p(s),y="set"+(this.$u?"UTC":""),_=(p={},p[m]=y+"Date",p[x]=y+"Date",p[c]=y+"Month",p[h]=y+"FullYear",p[i]=y+"Hours",p[l]=y+"Minutes",p[a]=y+"Seconds",p[n]=y+"Milliseconds",p)[b],C=b===m?this.$D+(d-this.$W):d;if(b===c||b===h){var T=this.clone().set(x,1);T.$d[_](C),T.init(),this.$d=T.set(x,Math.min(this.$D,T.daysInMonth())).$d}else _&&this.$d[_](C);return this.init(),this},r.set=function(s,d){return this.clone().$set(s,d)},r.get=function(s){return this[g.p(s)]()},r.add=function(s,d){var p,b=this;s=Number(s);var y=g.p(d),_=function(k){var D=A(b);return g.w(D.date(D.date()+Math.round(k*s)),b)};if(y===c)return this.set(c,this.$M+s);if(y===h)return this.set(h,this.$y+s);if(y===m)return _(1);if(y===u)return _(7);var C=(p={},p[l]=e,p[i]=t,p[a]=o,p)[y]||1,T=this.$d.getTime()+s*C;return g.w(T,this)},r.subtract=function(s,d){return this.add(-1*s,d)},r.format=function(s){var d=this,p=this.$locale();if(!this.isValid())return p.invalidDate||S;var b=s||"YYYY-MM-DDTHH:mm:ssZ",y=g.z(this),_=this.$H,C=this.$m,T=this.$M,k=p.weekdays,D=p.months,Z=p.meridiem,E=function(F,j,ie,fe){return F&&(F[j]||F(d,b))||ie[j].slice(0,fe)},ae=function(F){return g.s(_%12||12,F,"0")},W=Z||function(F,j,ie){var fe=F<12?"AM":"PM";return ie?fe.toLowerCase():fe};return b.replace($,function(F,j){return j||function(ie){switch(ie){case"YY":return String(d.$y).slice(-2);case"YYYY":return g.s(d.$y,4,"0");case"M":return T+1;case"MM":return g.s(T+1,2,"0");case"MMM":return E(p.monthsShort,T,D,3);case"MMMM":return E(D,T);case"D":return d.$D;case"DD":return g.s(d.$D,2,"0");case"d":return String(d.$W);case"dd":return E(p.weekdaysMin,d.$W,k,2);case"ddd":return E(p.weekdaysShort,d.$W,k,3);case"dddd":return k[d.$W];case"H":return String(_);case"HH":return g.s(_,2,"0");case"h":return ae(1);case"hh":return ae(2);case"a":return W(_,C,!0);case"A":return W(_,C,!1);case"m":return String(C);case"mm":return g.s(C,2,"0");case"s":return String(d.$s);case"ss":return g.s(d.$s,2,"0");case"SSS":return g.s(d.$ms,3,"0");case"Z":return y}return null}(F)||y.replace(":","")})},r.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},r.diff=function(s,d,p){var b,y=this,_=g.p(d),C=A(s),T=(C.utcOffset()-this.utcOffset())*e,k=this-C,D=function(){return g.m(y,C)};switch(_){case h:b=D()/12;break;case c:b=D();break;case v:b=D()/3;break;case u:b=(k-T)/6048e5;break;case m:b=(k-T)/864e5;break;case i:b=k/t;break;case l:b=k/e;break;case a:b=k/o;break;default:b=k}return p?b:g.a(b)},r.daysInMonth=function(){return this.endOf(c).$D},r.$locale=function(){return R[this.$L]},r.locale=function(s,d){if(!s)return this.$L;var p=this.clone(),b=ne(s,d,!0);return b&&(p.$L=b),p},r.clone=function(){return g.w(this.$d,this)},r.toDate=function(){return new Date(this.valueOf())},r.toJSON=function(){return this.isValid()?this.toISOString():null},r.toISOString=function(){return this.$d.toISOString()},r.toString=function(){return this.$d.toUTCString()},f}(),Se=le.prototype;return A.prototype=Se,[["$ms",n],["$s",a],["$m",l],["$H",i],["$W",m],["$M",c],["$y",h],["$D",x]].forEach(function(f){Se[f[1]]=function(r){return this.$g(r,f[0],f[1])}}),A.extend=function(f,r){return f.$i||(f(r,le,A),f.$i=!0),A},A.locale=ne,A.isDayjs=he,A.unix=function(f){return A(1e3*f)},A.en=R[X],A.Ls=R,A.p={},A}()),Qe.exports}so(ro());var xt=typeof global=="object"&&global&&global.Object===Object&&global,po=typeof self=="object"&&self&&self.Object===Object&&self,z=xt||po||Function("return this")(),te=z.Symbol,gt=Object.prototype,uo=gt.hasOwnProperty,co=gt.toString,pe=te?te.toStringTag:void 0,mo=Object.prototype.toString,et=te?te.toStringTag:void 0;function ve(o){return o==null?o===void 0?"[object Undefined]":"[object Null]":et&&et in Object(o)?function(e){var t=uo.call(e,pe),n=e[pe];try{e[pe]=void 0;var a=!0}catch(i){}var l=co.call(e);return a&&(t?e[pe]=n:delete e[pe]),l}(o):function(e){return mo.call(e)}(o)}function vt(o){return o!=null&&typeof o=="object"}function _t(o){var e=typeof o;return o!=null&&(e=="object"||e=="function")}function ho(o){if(!_t(o))return!1;var e=ve(o);return e=="[object Function]"||e=="[object GeneratorFunction]"||e=="[object AsyncFunction]"||e=="[object Proxy]"}var tt,Ae=z["__core-js_shared__"],ot=(tt=/[^.]+$/.exec(Ae&&Ae.keys&&Ae.keys.IE_PROTO||""))?"Symbol(src)_1."+tt:"",fo=Function.prototype.toString;function K(o){if(o!=null){try{return fo.call(o)}catch(e){}try{return o+""}catch(e){}}return""}var bo=/^\[object .+?Constructor\]$/,yo=Function.prototype,xo=Object.prototype,go=yo.toString,vo=xo.hasOwnProperty,_o=RegExp("^"+go.call(vo).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function So(o){return!(!_t(o)||(e=o,ot&&ot in e))&&(ho(o)?_o:bo).test(K(o));var e}function Y(o,e){var t=function(n,a){return n==null?void 0:n[a]}(o,e);return So(t)?t:void 0}var Pe=Y(z,"WeakMap");(function(){try{var o=Y(Object,"defineProperty");return o({},"",{}),o}catch(e){}})();function nt(o){return vt(o)&&ve(o)=="[object Arguments]"}var St=Object.prototype,wo=St.hasOwnProperty,Co=St.propertyIsEnumerable;nt(function(){return arguments}());var wt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,lt=wt&&typeof module=="object"&&module&&!module.nodeType&&module,at=lt&&lt.exports===wt?z.Buffer:void 0;at&&at.isBuffer;var Ct=typeof exports=="object"&&exports&&!exports.nodeType&&exports,ue=Ct&&typeof module=="object"&&module&&!module.nodeType&&module,Te=ue&&ue.exports===Ct&&xt.process,oe=function(){try{var o=ue&&ue.require&&ue.require("util").types;return o||Te&&Te.binding&&Te.binding("util")}catch(e){}}();oe&&oe.isTypedArray;Y(Object,"create");var Fe=Y(z,"Map"),Ve=Y(z,"DataView"),De=Y(z,"Promise"),Me=Y(z,"Set"),it="[object Map]",st="[object Promise]",rt="[object Set]",pt="[object WeakMap]",ut="[object DataView]",Ao=K(Ve),To=K(Fe),Lo=K(De),ko=K(Me),Io=K(Pe),Q=ve;(Ve&&Q(new Ve(new ArrayBuffer(1)))!=ut||Fe&&Q(new Fe)!=it||De&&Q(De.resolve())!=st||Me&&Q(new Me)!=rt||Pe&&Q(new Pe)!=pt)&&(Q=function(o){var e=ve(o),t=e=="[object Object]"?o.constructor:void 0,n=t?K(t):"";if(n)switch(n){case Ao:return ut;case To:return it;case Lo:return st;case ko:return rt;case Io:return pt}return e});z.Uint8Array;var ct=te?te.prototype:void 0;ct&&ct.valueOf;oe&&oe.isMap;oe&&oe.isSet;const $o=(o,e)=>{if(typeof o=="string"&&typeof e=="string")return o.toLocaleLowerCase().includes(e.toLocaleLowerCase());if(typeof o=="string"&&Array.isArray(e)){const t=e.length;for(let n=0;n<t;n++){const a=e[n];if(typeof a=="string"&&o.toLocaleLowerCase().includes(a.toLocaleLowerCase()))return!0}}return!1},Po=(o,e)=>Object.prototype.hasOwnProperty.call(o,e);const Fo={name:"EcanSelect",components:{},props:{value:{type:[String,Number],default:""},options:{type:Array,default:()=>[]},graphic:{type:Boolean,default:!1},placeholder:{type:String,default:"请选择"},allowClear:{type:Boolean,default:!1},disabled:{type:Boolean,default:!1}},emits:["change","update:value"],computed:{computedOptions(){return!this.options||this.options.length===0?[{label:"暂无数据",value:void 0,disabled:!0}]:this.options}},inject:["componentList","selectedComponent"],methods:{onSelectChange(o){if(this.graphic){const e=this.componentList.find(t=>t.type===o);if(e){const t=I.cloneDeep(this.selectedComponent),{events:n,dataType:a,dataFieldConfigType:l,id:i,keyName:m,top:u,left:c,width:v,height:h,zIndex:x}=t,S={},L=["type","graphicType","data"];for(const P in t)!L.includes(P)&&Po(e,P)&&(S[P]=I.cloneDeep(t[P]));let $=G(V(V({},e),S),{events:n,dataType:a,id:i,keyName:m,top:u,left:c,width:v,height:h,zIndex:x});l&&($.dataFieldConfigType=l),this.$emit("change",$,{all:!0})}}else this.$emit("change",o);this.$emit("update:value",o)}}};var Vo=function(){var e=this,t=e._self._c;return t("a-select",{attrs:{value:e.value},on:{change:e.onSelectChange}},e._l(e.computedOptions,function(n){return t("a-select-option",{key:n.value,attrs:{value:n.value,disabled:n.disabled}},[e._v(" "+e._s(n.label)+" ")])}),1)},Do=[],Mo=w(Fo,Vo,Do,!1,null,"9283c55b",null,null);const At=Mo.exports;const Oo={name:"Switch",components:{},props:{value:{type:Boolean,default:!1},width:{type:[String,Number],default:150},disabled:{type:Boolean,default:!1}},emits:["change"],methods:{onSwitchChange(o){this.$emit("change",o)}}};var No=function(){var e=this,t=e._self._c;return t("div",{style:{width:`${e.width}px`}},[t("a-switch",{attrs:{disabled:e.disabled,checked:e.value},on:{change:e.onSwitchChange}})],1)},zo=[],Ro=w(Oo,No,zo,!1,null,"2976c406",null,null);const jo=Ro.exports;const qo={name:"ColorPicker",components:{SketchPicker:Ft.Sketch},props:{value:{type:String,default:"#1890ff"},presetColors:{type:Array,default:()=>["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},size:{type:Number,default:20}},data(){return{popoverVisible:!1,currentColor:this.value}},watch:{value(o){o&&(this.currentColor=o)}},methods:{handleVisibleChange(o){this.popoverVisible=o},handleColorChange({hex:o}){this.currentColor=o,this.$emit("input",o),this.$emit("change",o),this.$emit("update:value",o)}}};var Bo=function(){var e=this,t=e._self._c;return t("a-popover",{attrs:{visible:e.popoverVisible,trigger:"click",placement:"bottomLeft",overlayClassName:"color-picker-popover",getPopupContainer:n=>n.parentNode,destroyTooltipOnHide:!0},on:{visibleChange:e.handleVisibleChange},scopedSlots:e._u([{key:"content",fn:function(){return[t("div",{staticClass:"name",on:{click:function(n){n.stopPropagation()}}},[t("sketch-picker",{attrs:{value:{hex:e.currentColor},disableAlpha:!0,presetColors:e.presetColors},on:{input:e.handleColorChange}})],1)]},proxy:!0}])},[t("div",{staticClass:"popover-trigger",style:{backgroundColor:e.currentColor,height:e.size+"px",width:e.size+"px"}})])},Eo=[],Wo=w(qo,Bo,Eo,!1,null,"c77d9ba2",null,null);const Re=Wo.exports;const Go={name:"ColorPick",components:{PickColors:Re},props:{value:{type:String,required:!0},disabled:{type:Boolean,default:!1}},data(){return{theme:null,internalValue:this.value}},computed:{colorValue:{get(){return this.value},set(o){this.$emit("change",o),this.$emit("input",o),this.$emit("update:value",o)}}},created(){},methods:{onChangColor(o){this.colorValue=o.hex}}};var Ho=function(){var e=this,t=e._self._c;return t("div",{staticClass:"color-pick"},[t("a-input",{staticClass:"input",staticStyle:{flex:"1"},attrs:{disabled:e.disabled},model:{value:e.colorValue,callback:function(n){e.colorValue=n},expression:"colorValue"}}),e.disabled?e._e():t("pick-colors",{staticClass:"pick-colors",attrs:{size:25},model:{value:e.colorValue,callback:function(n){e.colorValue=n},expression:"colorValue"}})],1)},Uo=[],Ko=w(Go,Ho,Uo,!1,null,"a79249c3",null,null);const de=Ko.exports;const Yo={name:"ColorPickerGroup",components:{ColorPick:Re},props:{value:{type:Array,default:[]},presetColors:{type:Array,default:()=>["#D0021B","#F5A623","#F8E71C","#8B572A","#7ED321","#417505","#BD10E0","#9013FE","#4A90E2","#50E3C2","#B8E986","#000000","#4A4A4A","#9B9B9B","#FFFFFF"]},size:{type:Number,default:20}},methods:{addColor(){this.value.push("#333"),this.handleColorChange()},handleColorChange(){this.$emit("input",this.value),this.$emit("change",this.value),this.$emit("update:value",this.value)}}};var Xo=function(){var e=this,t=e._self._c;return t("div",{staticClass:"pick-color-group"},[e._l(e.value,function(n,a){return t("ColorPick",{key:a,staticStyle:{margin:"5px"},attrs:{size:e.size},on:{change:e.handleColorChange},model:{value:e.value[a],callback:function(l){e.$set(e.value,a,l)},expression:"value[index]"}})}),t("div",{staticClass:"popover-trigger",style:{backgroundColor:"#fff",height:e.size+"px",width:e.size+"px",margin:"5px"},on:{click:e.addColor}},[e._v("+")])],2)},Zo=[],Jo=w(Yo,Xo,Zo,!1,null,"932bd405",null,null);const Qo=Jo.exports;const en={name:"ColorGroupPick",components:{PickColors:Qo},props:{value:{type:Array,default:()=>[]}},emits:["change"],data(){return{max:13,theme:null}},methods:{onColorsChange(o){this.$emit("change",o)},onOverflowMax(){message.warn(`已经超出最大添加个数:${this.max}`)}}};var tn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"color-group-pick"},[t("pick-colors",{attrs:{value:e.value,theme:e.theme,"add-color":"",max:e.max},on:{change:e.onColorsChange,"overflow-max":e.onOverflowMax}})],1)},on=[],nn=w(en,tn,on,!1,null,"dbed4801",null,null);const ln=nn.exports;const an={name:"Slider",components:{},props:{value:{type:Number,default:1}},emits:["change"],methods:{onChange(o){this.$emit("change",o)}}};var sn=function(){var e=this,t=e._self._c;return t("a-row",[t("a-col",{attrs:{span:16}},[t("a-slider",{attrs:{value:e.value,min:0,max:1,step:.1},on:{change:e.onChange}})],1),t("a-col",{staticStyle:{"padding-left":"10px"},attrs:{span:8}},[t("a-input-number",{staticStyle:{width:"100%"},attrs:{value:e.value,min:0,max:1,step:.1},on:{change:e.onChange}})],1)],1)},rn=[],pn=w(an,sn,rn,!1,null,"02978b05",null,null);const un=pn.exports;const cn={name:"Textarea",components:{},props:{value:{type:String,default:""},disabled:{type:Boolean,default:!1}},methods:{onTextareaChange(o){this.$emit("change",o.target.value)}}};var dn=function(){var e=this,t=e._self._c;return t("a-textarea",{attrs:{value:e.value,disabled:e.disabled,autoSize:{minRows:3}},on:{change:e.onTextareaChange}})},mn=[],hn=w(cn,dn,mn,!1,null,"3c2ddd12",null,null);const fn=hn.exports,je="",bn="",yn="";const xn={components:{ColorPick:de},props:{value:{type:Array,default:()=>[]},indexTip:{type:String,default:""}},data(){return{isVue3:window.isVue3,dataList:[]}},emits:["change"],mounted(){this.dataList=JSON.parse(JSON.stringify(this.value||[]))},watch:{value:{handler(o){this.dataList=JSON.parse(JSON.stringify(o||[]))},immediate:!0,deep:!0}},methods:{onAdd(){this.dataList.push({startX:"",startY:"",endX:"",endY:"",color:"",label:""}),this.$emit("change",this.dataList)},onDelete(o){this.dataList.splice(o,1),this.$emit("change",this.dataList)},onInputChange(){this.$emit("change",this.dataList)},setColor(o,e){o.color=e,this.$emit("change",this.dataList)}}};var gn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mark-area-config"},[t("div",{staticClass:"add"},[e.isVue3?t("a-tooltip",{attrs:{title:e.indexTip,overlayClassName:"question-tooltip",color:"#fff"}},[t("question-circle-outlined",{staticClass:"icon",staticStyle:{"margin-right":"207px",color:"#989898","font-size":"18px",cursor:"pointer"}})],1):e._e(),e.isVue3?t("appstore-add-outlined",{staticClass:"icon",on:{click:e.onAdd}}):t("span",{staticClass:"icon",on:{click:e.onAdd}},[e._v("+")])],1),e._l(e.dataList,function(n,a){return t("div",{key:a,staticClass:"config-item"},[t("div",{staticClass:"item"},[t("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[t("span",[e._v("标域"+e._s(Number(a)+1)+":")]),n.isGenerate?e._e():t("span",{staticStyle:{color:"red",cursor:"pointer"},on:{click:function(l){e.onDelete(Number(a))}}},[e._v("删除")])]),t("div",{staticStyle:{"margin-top":"10px"}},[t("a-input-group",{staticStyle:{display:"flex","margin-bottom":"12px"},attrs:{compact:""}},[t("a-input",{attrs:{placeholder:"开始坐标",disabled:!!n.isGenerate},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonBefore",fn:function(){return[e._v(" x1 ")]},proxy:!0}],null,!0),model:{value:n.startX,callback:function(l){e.$set(n,"startX",l)},expression:"data.startX"}}),t("div",{staticStyle:{padding:"0 5px"}}),t("a-input",{attrs:{placeholder:"开始坐标",disabled:!!n.isGenerate},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonBefore",fn:function(){return[e._v(" y1 ")]},proxy:!0}],null,!0),model:{value:n.startY,callback:function(l){e.$set(n,"startY",l)},expression:"data.startY"}})],1),t("a-input-group",{staticStyle:{display:"flex","margin-bottom":"12px"},attrs:{compact:""}},[t("a-input",{attrs:{placeholder:"结束坐标",disabled:!!n.isGenerate},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonBefore",fn:function(){return[e._v(" x2 ")]},proxy:!0}],null,!0),model:{value:n.endX,callback:function(l){e.$set(n,"endX",l)},expression:"data.endX"}}),t("div",{staticStyle:{padding:"0 5px"}}),t("a-input",{attrs:{placeholder:"结束坐标",disabled:!!n.isGenerate},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonBefore",fn:function(){return[e._v(" y2 ")]},proxy:!0}],null,!0),model:{value:n.endY,callback:function(l){e.$set(n,"endY",l)},expression:"data.endY"}})],1),t("div",[e._v("标域颜色:")]),t("color-pick",{attrs:{value:n.color},on:{change:function(l){return e.setColor(n,l)}}}),t("div",{staticStyle:{"margin-top":"12px"}},[e._v("标域文字:")]),t("a-input",{on:{change:e.onInputChange},model:{value:n.label,callback:function(l){e.$set(n,"label",l)},expression:"data.label"}})],1)])])})],2)},vn=[],_n=w(xn,gn,vn,!1,null,"2201b980",null,null);const Sn=_n.exports;const wn={components:{ColorPick:de},props:{value:{type:Array,default:()=>[]},indexTip:{type:String,default:""}},inject:["selectedComponent","componentList","renderUsedComponentList"],emits:["change"],data(){return{isVue3:window.isVue3,dataList:[],lineTypeOptions:[{label:"实线",value:"solid"},{label:"虚线",value:"dashed"},{label:"点状",value:"dotted"}]}},computed:{componentList:()=>globalThis.renderUsedComponentList.map(o=>({label:o.keyName,value:o.keyName})),calcList:()=>[{label:"平均值",value:"{average}"},{label:"中位数",value:"{median}"},{label:"最大值",value:"{max}"},{label:"最小值",value:"{min}"},{label:"自定义值",value:"customValue"}]},watch:{value:{handler(o){if(!this.selectedComponent)return;this.dataList=JSON.parse(JSON.stringify(o||[]));const{xAxisMarkLineValue:e,yAxisMarkLineValue:t,axisMarkArea:n=[]}=this.selectedComponent;if((e==null?void 0:e.length)===1&&(t==null?void 0:t.length)===1&&e[0].value&&t[0].value){const a=!!n.find(c=>c.isGenerate),l=["{xMin}"],i=["{yMin}"],m={"{max}":"最大值","{min}":"最小值","{average}":"平均值","{median}":"中位数"};for(const c of e)c.value&&l.push(m[c.value]||c.value);l.push("{xMax}");for(const c of t)c.value&&i.push(m[c.value]||c.value);i.push("{yMax}");let u=0;l.forEach((c,v)=>{v<l.length-1&&i.forEach((h,x)=>{if(x<i.length-1){const S={startX:c,startY:h,endX:l[v+1],endY:i[x+1],color:"",label:"",isGenerate:!0};a?(S.color=n[u].color,S.label=n[u].label,n[u++]=S):n.unshift(S)}})})}else this.selectedComponent.axisMarkArea=n.filter(a=>!a.isGenerate)},immediate:!0,deep:!0}},mounted(){this.dataList=JSON.parse(JSON.stringify(this.value||[]))},methods:{onAdd(){this.dataList.push({value:"",lineType:"dashed",type:"customValue"}),this.$emit("change",this.dataList)},onDelete(o){this.dataList.splice(o,1),this.$emit("change",this.dataList)},onInputChange(){this.$emit("change",this.dataList)},setColor(o,e){o.color=e,this.$emit("change",this.dataList)},setLineColor(o,e){o.lineColor=e,this.$emit("change",this.dataList)},setLabelColor(o,e){o.labelColor=e,this.$emit("change",this.dataList)},setLineType(o,e){o.lineType=e,this.$emit("change",this.dataList)},onClickMenuItem(o,e){let t=o.key;t==="customValue"&&(t=""),e.type=o.key,e.value=t,this.$emit("change",this.dataList)},onSelectChange(o,e){e.type=o,o==="customValue"&&(e.value=""),this.$emit("change",this.dataList)}}};var Cn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"mark-link-config"},[t("div",{staticClass:"add"},[e.isVue3?t("a-tooltip",{attrs:{title:e.indexTip,overlayClassName:"question-tooltip",color:"#fff"}},[t("question-circle-outlined",{staticClass:"icon",staticStyle:{"margin-right":"207px",color:"#989898","font-size":"18px",cursor:"pointer"}})],1):e._e(),e.isVue3?t("appstore-add-outlined",{staticClass:"icon",on:{click:e.onAdd}}):t("span",{staticClass:"icon",on:{click:e.onAdd}},[e._v("+")])],1),e._l(e.dataList,function(n,a){return t("div",{key:a,staticClass:"config-item"},[t("div",{staticClass:"item"},[t("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[t("span",[e._v("标线"+e._s(Number(a)+1)+":")]),t("span",{staticStyle:{color:"red",cursor:"pointer"},on:{click:function(l){e.onDelete(Number(a))}}},[e._v("删除")])]),t("div",{staticStyle:{"margin-top":"10px"}},[t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("值:")]),!n.type||n.type==="customValue"?t("a-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入"},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonAfter",fn:function(){return[t("a-dropdown",{attrs:{trigger:["click"]},scopedSlots:e._u([{key:"overlay",fn:function(){return[t("a-menu",{on:{click:function(l){return e.onClickMenuItem(l,n)}}},e._l(e.calcList,function(l){return t("a-menu-item",{key:l.value},[e._v(e._s(l.label))])}),1)]},proxy:!0}],null,!0)},[e.isVue3?t("down-outlined",{staticStyle:{color:"#aaa"}}):t("span",{staticStyle:{"font-size":"14px"}},[e._v("⌵")])],1)]},proxy:!0}],null,!0),model:{value:n.value,callback:function(l){e.$set(n,"value",l)},expression:"data.value"}}):t("a-select",{staticStyle:{width:"100%"},attrs:{options:e.calcList},on:{change:function(l){return e.onSelectChange(l,n)}},model:{value:n.value,callback:function(l){e.$set(n,"value",l)},expression:"data.value"}})],1),t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("文本:")]),t("a-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入"},on:{change:e.onInputChange},model:{value:n.label,callback:function(l){e.$set(n,"label",l)},expression:"data.label"}})],1),t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("文本水平偏移量:")]),t("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入",controls:!1},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonAfter",fn:function(){return[e._v(" px ")]},proxy:!0}],null,!0),model:{value:n.offsetHorizontal,callback:function(l){e.$set(n,"offsetHorizontal",l)},expression:"data.offsetHorizontal"}})],1),t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("文本垂直偏移量:")]),t("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入",controls:!1},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonAfter",fn:function(){return[e._v(" px ")]},proxy:!0}],null,!0),model:{value:n.offsetVertical,callback:function(l){e.$set(n,"offsetVertical",l)},expression:"data.offsetVertical"}})],1),t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("标线类型:")]),t("a-select",{staticStyle:{width:"100%"},attrs:{options:e.lineTypeOptions},on:{change:function(l){return e.setLineType(n,l)}},model:{value:n.lineType,callback:function(l){e.$set(n,"lineType",l)},expression:"data.lineType"}})],1),t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("标线颜色:")]),t("color-pick",{attrs:{value:n.lineColor||""},on:{change:function(l){return e.setLineColor(n,l)}}})],1),t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("文本颜色:")]),t("color-pick",{attrs:{value:n.labelColor||""},on:{change:function(l){return e.setLabelColor(n,l)}}})],1)])])])})],2)},An=[],Tn=w(wn,Cn,An,!1,null,"fe59467a",null,null);const Ln=Tn.exports;const kn={name:"FormGroup",components:{PickColors:Re,InputNumber:mt},inject:["selectedComponent","componentList","renderUsedComponentList","theme"],emits:["change"],props:{value:{type:Array,default:()=>[]},format:{type:Array,default:()=>[]},useLabelIndex:{type:Boolean,default:!1},max:{type:Number,default:-1}},data(){return{isVue3:window.isVue3}},computed:{formatTypeValue(){return o=>o||"value"},useComponentType(){return o=>({input:"AInput",select:"ASelect",color:"PickColors","input-number":"InputNumber",switch:"ASwitch"})[o]},myValue:{get(){return this.value},set(o){this.$emit("change",o)}},newFormat(){const o=this.selectedComponent.requestType||0,e=this.selectedComponent.dataType||"",t=this.selectedComponent.DataSetFieldOptions||[],n=[...this.format];return o===1&&e==="request"?n.forEach((a,l)=>{a.label==="索引"&&(n[l]=G(V({},n[l]),{type:"select",props:{options:t.map(i=>({label:i,value:i}))}}))}):n.forEach((a,l)=>{a.label==="索引"&&(n[l]=G(V({},n[l]),{type:"input"}))}),n}},methods:{onValueChange(o,e,t){var a;const n=(a=this.value)==null?void 0:a.slice();if(Array.isArray(n)){const l=o==null?void 0:o.target,i=(l==null?void 0:l.value)!=null?l==null?void 0:l.value:o;t?n[e][t]=i:n[e]=i,this.myValue=n}},onAdd(){var t;const o=(t=this.value)==null?void 0:t.slice();if(!Array.isArray(o))return;const e=o.length;if(this.max===-1||this.max>e){const n=o[0];if(Object.prototype.toString.call(n)==="[object Object]"){const a=Object.keys(n),l={};a.forEach(i=>{l[i]=""}),o.push(l)}else typeof n=="string"&&o.push(n);this.myValue=o}else this.$message.warn("已达到最大上限")},onDelete(o){var t;const e=(t=this.value)==null?void 0:t.slice();if(Array.isArray(e)){if(e.length===1){this.$message.warn("已经是最后一条数据,无法删除");return}e.splice(o,1),this.myValue=e}},isShow(o,e){let t=!0;if(o.show){const{match:n,value:a}=o.show;typeof a=="string"&&e[n]===a||Array.isArray(a)&&a.includes(e[n])?t=!0:t=!1}return t}}};var In=function(){var e=this,t=e._self._c;return t("div",{staticClass:"form-group"},[e.isVue3?t("appstore-add-outlined",{staticClass:"icon add",on:{click:e.onAdd}}):t("span",{staticClass:"icon add",on:{click:e.onAdd}},[e._v("+")]),e.isVue3?t("draggable",{staticClass:"form",attrs:{"item-key":"id"},scopedSlots:e._u([{key:"item",fn:function({element:n,index:a}){return[t("div",{staticClass:"form-row"},e._l(e.newFormat,function(l,i){var m;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.isShow(l,n),expression:"isShow(f, e)"}],key:i,staticClass:"form-item"},[Array.isArray(l.label)?[t("span",{staticClass:"label"},[e._v(" "+e._s(l.useLabelIndex?l.label[a]+(a+1):l.label[a])+" ")])]:t("span",{staticClass:"label"},[e._v(" "+e._s(l.useLabelIndex?l.label+(a+1):l.label)+" ")]),t(e.useComponentType(l.type),e._b(e._b({tag:"component",staticClass:"value",style:{width:!["color","switch"].includes(l.type)&&e.format.length>1?"110px":""},attrs:{theme:e.theme,"use-blur-event":!1},on:{change:function(u){return e.onValueChange(u,a,l.value)}}},"component",e._d({},[e.formatTypeValue(l.typeValue),typeof n=="string"?n:(m=n[l.value])!=null?m:l.defaultValue])),"component",l.props,!1))],2)}),0)]}}],null,!1,220332434),model:{value:e.myValue,callback:function(n){e.myValue=n},expression:"myValue"}}):t("draggable",{staticClass:"form",attrs:{list:e.myValue,"item-key":"id"},model:{value:e.myValue,callback:function(n){e.myValue=n},expression:"myValue"}},[e._l(e.myValue,function(n,a){return[t("div",{staticClass:"form-row"},e._l(e.newFormat,function(l,i){var m;return t("div",{directives:[{name:"show",rawName:"v-show",value:e.isShow(l,n),expression:"isShow(f, e)"}],key:i,staticClass:"form-item"},[Array.isArray(l.label)?[t("span",{staticClass:"label"},[e._v(" "+e._s(l.useLabelIndex?l.label[a]+(a+1):l.label[a])+" ")])]:t("span",{staticClass:"label"},[e._v(" "+e._s(l.useLabelIndex?l.label+(a+1):l.label)+" ")]),t(e.useComponentType(l.type),e._b(e._b({tag:"component",staticClass:"value",style:{width:!["color","switch"].includes(l.type)&&e.format.length>1?"110px":""},attrs:{"use-blur-event":!1},on:{change:function(u){return e.onValueChange(u,a,l.value)}}},"component",e._d({},[e.formatTypeValue(l.typeValue),typeof n=="string"?n:(m=n[l.value])!=null?m:l.defaultValue])),"component",l.props,!1))],2)}),0)]})],2),t("div",{staticClass:"icon-group"},e._l(e.myValue,function(n,a){return t("div",{key:a,staticClass:"icon-item"},[e.isVue3?t("minus-circle-outlined",{staticClass:"icon delete",on:{click:function(l){return e.onDelete(a)}}}):t("span",{staticClass:"icon delete",staticStyle:{"padding-bottom":"12px"},on:{click:function(l){return e.onDelete(a)}}},[e._v("-")])],1)}),0)],1)},$n=[],Pn=w(kn,In,$n,!1,null,"a826f5d7",null,null);const Fn=Pn.exports;const Vn={name:"GraphicFieldSelect",components:{AAutoComplete:Vt.AutoComplete},props:{value:{type:String,default:""},disabled:{type:Boolean,default:!1}},inject:["selectedComponent"],emits:["change"],computed:{fieldOptions(){var t;const{indicators:o=[]}=((t=this.selectedComponent)==null?void 0:t.graphicConfig)||{};return{dataSource:o.map(n=>n.label)}}},methods:{onChange(o){this.$emit("change",o==null?"":o)}}};var Dn=function(){var e=this,t=e._self._c;return t("a-auto-complete",e._b({attrs:{value:e.value,disabled:e.disabled,"allow-clear":"",placeholder:"请选择或输入字段名"},on:{change:e.onChange}},"a-auto-complete",e.fieldOptions,!1))},Mn=[],On=w(Vn,Dn,Mn,!1,null,null,null,null);const Nn=On.exports;const zn=[{label:"大于",value:">"},{label:"大于等于",value:">="},{label:"小于",value:"<"},{label:"小于等于",value:"<="},{label:"等于",value:"=="}],Rn={name:"VisualColorConfig",components:{AppstoreAddOutlined:je,ColorPick:de},props:{value:{type:Array,default:()=>[]},indexTip:{type:String,default:""}},emits:["change"],data(){return{dataList:[],ruleOptions:zn}},watch:{value:{handler(o){this.dataList=I.cloneDeep(o||[])},immediate:!0,deep:!0}},methods:{onAdd(){this.dataList.push({value1:"",value2:"",rule1:">=",rule2:"<",color:""}),this.$emit("change",this.dataList)},onDelete(o){this.dataList.splice(o,1),this.$emit("change",this.dataList)},onInputChange(){this.$emit("change",this.dataList)},setColor(o,e){typeof e=="object"&&(e!=null&&e.target)||(o.color=e,this.$emit("change",this.dataList))}},mounted(){this.dataList=I.cloneDeep(this.value||[])}};var jn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"visual-color-config"},[t("div",{staticClass:"add"},[t("appstore-add-outlined",{staticClass:"icon",on:{click:e.onAdd}})],1),e._l(e.dataList,function(n,a){return t("div",{key:a,staticClass:"config-item"},[t("div",{staticClass:"item"},[t("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[t("span",[e._v("条件"+e._s(Number(a)+1)+":")]),t("span",{staticStyle:{color:"red",cursor:"pointer"},on:{click:function(l){e.onDelete(Number(a))}}},[e._v("删除")])]),t("div",{staticStyle:{margin:"10px 0"}},[t("a-input",{attrs:{placeholder:"请输入"},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonBefore",fn:function(){return[t("a-select",{staticStyle:{width:"100px"},attrs:{options:e.ruleOptions},on:{change:e.onInputChange},model:{value:n.rule1,callback:function(l){e.$set(n,"rule1",l)},expression:"data.rule1"}})]},proxy:!0}],null,!0),model:{value:n.value1,callback:function(l){e.$set(n,"value1",l)},expression:"data.value1"}})],1),t("div",{staticStyle:{margin:"15px 0 10px"}},[t("a-input",{attrs:{placeholder:"请输入"},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonBefore",fn:function(){return[t("a-select",{staticStyle:{width:"100px"},attrs:{options:e.ruleOptions},on:{change:e.onInputChange},model:{value:n.rule2,callback:function(l){e.$set(n,"rule2",l)},expression:"data.rule2"}})]},proxy:!0}],null,!0),model:{value:n.value2,callback:function(l){e.$set(n,"value2",l)},expression:"data.value2"}})],1),t("div",{staticStyle:{margin:"10px 0"}},[e._v("名称:")]),t("a-input",{attrs:{placeholder:"请输入名称"},on:{change:e.onInputChange},model:{value:n.name,callback:function(l){e.$set(n,"name",l)},expression:"data.name"}}),t("div",{staticStyle:{margin:"10px 0"}},[e._v("颜色:")]),t("color-pick",{attrs:{value:n.color},on:{change:function(l){return e.setColor(n,l)}}})],1)])})],2)},qn=[],Bn=w(Rn,jn,qn,!1,null,"d1d2fffe",null,null);const En=Bn.exports;const Wn=[{label:"大于",value:">"},{label:"大于等于",value:">="},{label:"小于",value:"<"},{label:"小于等于",value:"<="},{label:"等于",value:"=="}],Gn={name:"VisualSizeConfig",components:{AppstoreAddOutlined:je,ColorPick:de},props:{value:{type:Array,default:()=>[]},indexTip:{type:String,default:""}},emits:["change"],data(){return{dataList:[],ruleOptions:Wn}},watch:{value:{handler(o){this.dataList=I.cloneDeep(o||[])},immediate:!0,deep:!0}},methods:{onAdd(){this.dataList.push({value1:"",value2:"",rule1:">=",rule2:"<",color:""}),this.$emit("change",this.dataList)},onDelete(o){this.dataList.splice(o,1),this.$emit("change",this.dataList)},onInputChange(){this.$emit("change",this.dataList)}},mounted(){this.dataList=I.cloneDeep(this.value||[])}};var Hn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"visual-size-config"},[t("div",{staticClass:"add"},[t("appstore-add-outlined",{staticClass:"icon",on:{click:e.onAdd}})],1),e._l(e.dataList,function(n,a){return t("div",{key:a,staticClass:"config-item"},[t("div",{staticClass:"item"},[t("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[t("span",[e._v("条件"+e._s(Number(a)+1)+":")]),t("span",{staticStyle:{color:"red",cursor:"pointer"},on:{click:function(l){e.onDelete(Number(a))}}},[e._v("删除")])]),t("div",{staticStyle:{margin:"10px 0"}},[t("a-input",{attrs:{placeholder:"请输入"},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonBefore",fn:function(){return[t("a-select",{staticStyle:{width:"100px"},attrs:{options:e.ruleOptions},on:{change:e.onInputChange},model:{value:n.rule1,callback:function(l){e.$set(n,"rule1",l)},expression:"data.rule1"}})]},proxy:!0}],null,!0),model:{value:n.value1,callback:function(l){e.$set(n,"value1",l)},expression:"data.value1"}})],1),t("div",{staticStyle:{margin:"15px 0 10px"}},[t("a-input",{attrs:{placeholder:"请输入"},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonBefore",fn:function(){return[t("a-select",{staticStyle:{width:"100px"},attrs:{options:e.ruleOptions},on:{change:e.onInputChange},model:{value:n.rule2,callback:function(l){e.$set(n,"rule2",l)},expression:"data.rule2"}})]},proxy:!0}],null,!0),model:{value:n.value2,callback:function(l){e.$set(n,"value2",l)},expression:"data.value2"}})],1),t("div",{staticStyle:{margin:"10px 0"}},[e._v("尺寸:")]),t("a-input-number",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入"},on:{change:e.onInputChange},model:{value:n.size,callback:function(l){e.$set(n,"size",l)},expression:"data.size"}})],1)])})],2)},Un=[],Kn=w(Gn,Hn,Un,!1,null,"ed0b93ce",null,null);const Yn=Kn.exports;const xe={pageName:"无",pageId:""},Xn="1986455206262427650",Zn={name:"PagePick",props:{value:{type:[String,Object],default:""},crossProject:{type:Boolean,default:!1},linkProjectId:{type:String,default:""},disabled:{type:Boolean,default:!1}},emits:["change"],inject:{pageId:{default:""},projectId:{default:""},request:{default:null}},data(){return{pageList:[],projectList:[],selectedProjectId:"",loading:!1}},computed:{myValue:{get(){return this.value},set(o){this.$emit("change",this.crossProject?{projectId:this.selectedProjectId,pageId:o}:o)}}},mounted(){this.crossProject?this.initCrossProject():this.handlePageList()},methods:{getPageId(){const o=this.value;return o&&typeof o=="object"?o.pageId||"":o||""},handlePageList(){return J(this,null,function*(){var o;if(this.request)try{const e=yield this.request.get(`/page/others/${this.pageId}`);this.pageList=[xe].concat(((o=e==null?void 0:e.data)==null?void 0:o.data)||[])}catch(e){console.error(e)}})},handleProjectList(){return J(this,null,function*(){var t,n;const o=yield this.request.get("/project/query?pageSize=100"),e=(n=(t=o==null?void 0:o.data)==null?void 0:t.data)==null?void 0:n.rows;return this.projectList=(Array.isArray(e)?e:[]).filter(a=>a.projectId!==Xn),this.projectList})},handleCrossProjectPageList(){return J(this,null,function*(){var o,e;if(this.request){if(!this.selectedProjectId){this.pageList=[xe];return}try{this.loading=!0;const t=yield this.request.get("/page/query",{params:{projectId:this.selectedProjectId,pageNum:1,pageSize:1e3,pageName:""}}),n=(e=(o=t==null?void 0:t.data)==null?void 0:o.data)==null?void 0:e.rows,a=(Array.isArray(n)?n:[]).filter(l=>l.pageId!==this.pageId);this.pageList=[xe].concat(a)}catch(t){console.error(t),this.pageList=[xe]}finally{this.loading=!1}}})},getSelectedPageProjectId(){return J(this,null,function*(){var o,e;if(!this.request||!this.getPageId())return"";try{const t=yield this.request.get("/page",{params:{pageId:this.getPageId()}});return((e=(o=t==null?void 0:t.data)==null?void 0:o.data)==null?void 0:e.projectId)||""}catch(t){return console.error(t),""}})},initCrossProject(){return J(this,null,function*(){var o;if(this.request){try{this.loading=!0;const[e,t]=yield Promise.all([this.handleProjectList(),this.getSelectedPageProjectId()]),n=[this.linkProjectId,this.projectId,t].find(a=>a&&e.some(l=>l.projectId===a));this.selectedProjectId=n||((o=e[0])==null?void 0:o.projectId)||"",!this.linkProjectId&&this.selectedProjectId&&this.$emit("change",{projectId:this.selectedProjectId,pageId:this.getPageId()})}catch(e){console.error(e),this.projectList=[]}finally{this.loading=!1}yield this.handleCrossProjectPageList()}})},handleProjectChange(o){this.selectedProjectId=o,this.$emit("change",{projectId:o,pageId:""}),this.handleCrossProjectPageList()}}};var Jn=function(){var e=this,t=e._self._c;return t("div",{staticClass:"page-pick",class:{"is-cross-project":e.crossProject}},[e.crossProject?t("div",{staticClass:"field-row"},[t("span",{staticClass:"field-label"},[e._v("项目")]),t("a-select",{staticClass:"field-control",attrs:{options:e.projectList,"field-names":{label:"projectName",value:"projectId"},disabled:e.disabled,loading:e.loading,placeholder:"请选择项目","option-filter-prop":"projectName","show-search":""},on:{change:e.handleProjectChange},model:{value:e.selectedProjectId,callback:function(n){e.selectedProjectId=n},expression:"selectedProjectId"}})],1):e._e(),t("div",{class:e.crossProject?"field-row":"page-select-wrapper"},[e.crossProject?t("span",{staticClass:"field-label"},[e._v("页面")]):e._e(),t("a-select",{class:["page-select",{"field-control":e.crossProject}],attrs:{options:e.pageList,"field-names":{label:"pageName",value:"pageId"},disabled:e.disabled,loading:e.loading,placeholder:e.crossProject?"请选择页面":void 0,"option-filter-prop":"pageName","show-search":""},model:{value:e.myValue,callback:function(n){e.myValue=n},expression:"myValue"}})],1)])},Qn=[],el=w(Zn,Jn,Qn,!1,null,"08ee3da7",null,null);const Tt=el.exports,tl=H.defineComponent({components:{AppstoreAddOutlined:je,MinusCircleOutlined:yn,QuestionCircleOutlined:bn},props:{value:{type:Array,default:()=>[]},indexTip:{type:String,default:""},keyName:{type:String,defalut:"别名"},fieldName:{type:String,defalut:"字段"},layout:{type:String,default:""},isColumnLink:{type:Boolean,defalut:!1}},emits:["change"],setup(o,{emit:e}){const t=H.ref([]),n=()=>{t.value.push({keyName:"",fieldName:""}),e("change",H.unref(t))},a=i=>{t.value.splice(i,1),e("change",H.unref(t))},l=()=>{e("change",H.unref(t))};return H.watch(()=>o.value,i=>{t.value=I.cloneDeep(i||[])},{immediate:!0,deep:!0}),H.onMounted(()=>{t.value=I.cloneDeep(o.value||[])}),{dataList:t,onAdd:n,onDelete:a,onInputChange:l}}});var ol=function(){var e=this,t=e._self._c;return e._self._setupProxy,t("div",{staticClass:"unit-config"},[t("div",{staticClass:"add",class:{vertical:e.isColumnLink}},[t("a-tooltip",{attrs:{title:e.indexTip,overlayClassName:"question-tooltip",color:"#fff"}},[t("question-circle-outlined",{staticClass:"icon question-icon"})],1),t("appstore-add-outlined",{staticClass:"icon add-icon",on:{click:e.onAdd}})],1),e._l(e.dataList,function(n,a){return t("div",{key:a,staticClass:"config-item",class:e.layout?"vertical":""},[e.layout?[t("div",{staticStyle:{width:"100%"}},[t("div",{staticClass:"item"},[e._v(" "+e._s(e.keyName)+": "),t("a-input",{staticStyle:{width:"70%"},on:{change:e.onInputChange},model:{value:n.keyName,callback:function(l){e.$set(n,"keyName",l)},expression:"data.keyName"}})],1),t("div",{staticClass:"item"},[e._v(" "+e._s(e.fieldName)+": "),t("a-input",{staticStyle:{width:"70%"},on:{change:e.onInputChange},model:{value:n.fieldName,callback:function(l){e.$set(n,"fieldName",l)},expression:"data.fieldName"}})],1)]),t("minus-circle-outlined",{staticClass:"icon",staticStyle:{"font-size":"16px"},on:{click:function(l){return e.onDelete(a)}}})]:[t("div",{staticClass:"item"},[e._v(" "+e._s(e.keyName)+": "),t("a-input",{staticStyle:{width:"85px"},on:{change:e.onInputChange},model:{value:n.keyName,callback:function(l){e.$set(n,"keyName",l)},expression:"data.keyName"}})],1),t("div",{staticClass:"item"},[e._v(" "+e._s(e.fieldName)+": "),t("a-input",{staticStyle:{width:"85px"},on:{change:e.onInputChange},model:{value:n.fieldName,callback:function(l){e.$set(n,"fieldName",l)},expression:"data.fieldName"}})],1),t("minus-circle-outlined",{staticClass:"icon",staticStyle:{"font-size":"16px"},on:{click:function(l){return e.onDelete(a)}}})]],2)})],2)},nl=[],ll=w(tl,ol,nl,!1,null,"91cabbb1",null,null);const Lt=ll.exports;const al=`【参数名】是跳转链接上携带参数的key值;
13
+ 【参数值】是跳转链接上携带参数的value值。`,il=()=>({rule:"",data:{linkPage:"",linkProjectId:"",href:"",target:"self",targetTemplate:"",transParams:[]}}),dt=(o={})=>{const e=I.cloneDeep(o.data)||{};return G(V({},I.cloneDeep(o)),{rule:o.rule||"",data:G(V({},e),{linkPage:e.linkPage||"",linkProjectId:e.linkProjectId||"",href:e.href||"",target:e.target||"self",targetTemplate:e.targetTemplate||"",transParams:Array.isArray(e.transParams)?e.transParams:[]})})},sl={name:"LinkConfig",components:{PagePick:Tt,SelectConfig:At,UnitConfig:Lt},props:{value:{type:Array,default:()=>[]},disabled:{type:Boolean,default:!1}},emits:["change"],data(){return{dataList:[],transParamsTip:al,targetOptions:[{label:"当前窗口",value:"self"},{label:"新窗口",value:"blank"},{label:"事件",value:"event"},{label:"模板",value:"template"},{label:"平台标签页",value:"ygt-tab"}]}},watch:{value:{handler(o){this.dataList=(Array.isArray(o)?o:[]).map(dt)},immediate:!0,deep:!0}},mounted(){this.dataList=(Array.isArray(this.value)?this.value:[]).map(dt)},methods:{onAdd(){this.dataList.push(il()),this.onInputChange()},onDelete(o){this.dataList.splice(o,1),this.onInputChange()},onInputChange(){this.$emit("change",I.cloneDeep(this.dataList))},setDataValue(o,e,t){e==="linkPage"&&t&&typeof t=="object"?(o.data.linkPage=t.pageId||"",o.data.linkProjectId=t.projectId||""):o.data[e]=t,e==="linkPage"&&o.data.linkPage&&(o.data.href=""),this.onInputChange()},setHref(o,e){o.data.href=e!=null&&e.target?e.target.value:e,this.onInputChange()}}};var rl=function(){var e=this,t=e._self._c;return t("div",{staticClass:"link-config"},[t("a-button",{staticStyle:{"margin-bottom":"15px"},attrs:{size:"small",type:"primary"},on:{click:e.onAdd}},[e._v("新增配置")]),e._l(e.dataList,function(n,a){return t("div",{key:a,staticClass:"config-item"},[t("div",{staticClass:"item"},[t("div",{staticClass:"item-header"},[t("span",[e._v("规则"+e._s(Number(a)+1))]),t("span",{staticClass:"delete",on:{click:function(l){e.onDelete(Number(a))}}},[e._v("删除")])]),t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("规则:")]),t("a-input",{staticClass:"full-width",attrs:{disabled:e.disabled,placeholder:"请输入"},on:{change:e.onInputChange},model:{value:n.rule,callback:function(l){e.$set(n,"rule",l)},expression:"item.rule"}})],1),t("div",{staticClass:"item-row page-pick-row"},[t("page-pick",{staticClass:"full-width",attrs:{value:n.data.linkPage,"link-project-id":n.data.linkProjectId,disabled:e.disabled,"cross-project":""},on:{change:function(l){return e.setDataValue(n,"linkPage",l)}}})],1),n.data.linkPage?e._e():t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("链接:")]),t("a-textarea",{staticClass:"full-width",attrs:{value:n.data.href,disabled:e.disabled,"auto-size":{minRows:3}},on:{change:function(l){return e.setHref(n,l)}}})],1),t("div",{staticClass:"item-row"},[t("div",{staticClass:"title"},[e._v("方式:")]),t("select-config",{staticClass:"full-width",attrs:{value:n.data.target,options:e.targetOptions,disabled:e.disabled},on:{change:function(l){return e.setDataValue(n,"target",l)}}})],1),t("div",{staticClass:"item-row trans-params-row"},[t("div",{staticClass:"title"},[e._v("参数:")]),t("unit-config",{staticClass:"trans-params-config",attrs:{value:n.data.transParams,"index-tip":e.transParamsTip,"key-name":"参数名","field-name":"参数值",layout:"vertical",isColumnLink:!0},on:{change:function(l){return e.setDataValue(n,"transParams",l)}}})],1)])])})],2)},pl=[],ul=w(sl,rl,pl,!1,null,"60be3fee",null,null);const cl=ul.exports,N=(o,e)=>$o(o,e);const dl={name:"PropsToForm",components:{EcanInput:jt,EcanInputNumber:mt,EcanRadioGroup:Yt,EcanSelect:At,EcanSwitch:jo,EcanColorPick:de,EcanColorGroupPick:ln,EcanSlider:un,EcanTextarea:fn,EcanMarkAreaConfig:Sn,EcanMarkLinkConfig:Ln,EcanFormGroup:Fn,EcanGraphicFieldSelect:Nn,EcanVisualColorConfig:En,EcanVisualSizeConfig:Yn,EcanPagePick:Tt,EcanUnitConfig:Lt,EcanLinkConfig:cl},props:{props:{type:Object,required:!0},disabled:{type:Boolean,default:!1},selectedComponentType:{type:String,default:""}},emits:["change"],inject:{selectedComponent:{default:null}},data(){return{isVue3:window.isVue3,questionStyle:{marginLeft:"10px",fontSize:"18px",color:"#7c7c7c",cursor:"pointer"}}},computed:{formProps(){const o=this.props;if(o==null||typeof o!="object")return{};const e={};for(const t in o){const n=Le[t],a=n==null?void 0:n.show;a?this.getShowResult(a,o).isMatch&&(e[t]=o[t]):e[t]=o[t]}return I.reduce(e,(t,n,a)=>{const l=Le[a];if(Array.isArray(l)){const i=l.find(m=>{const{onlyType:u,excludeType:c,dataVNoHas:v}=m;let h=!1;return u==null&&c==null?h=!0:u?h=N(this.selectedComponentType,u):c&&(h=!N(this.selectedComponentType,c)),h&&m.show&&(h=this.getShowResult(m.show,o).isMatch),v&&isVue3&&(h=!1),h});i&&this.setFormProps({result:t,value:n,key:a,mapAttributeProp:i})}else this.setFormProps({result:t,value:n,key:a,mapAttributeProp:l});return t},{})}},methods:{setFormProps({result:o,mapAttributeProp:e,key:t,value:n}){var v;if(o==null||typeof o!="object")return;const{valueProp:a="value",changeValueEventName:l="change",events:i,updateMode:m,projectKey:u}=e,c=V({},e.props);u&&(c.linkProjectId=((v=this.selectedComponent)==null?void 0:v[u])||""),o[t]=G(V({},e),{valueProp:a,value:n,props:c,events:V({[l]:(h,x={useContainer:!1},S=!0)=>{const L=u&&h&&typeof h=="object"?{[t]:h.pageId||"",[u]:h.projectId||""}:{[t]:h};[void 0,"component"].includes(m)&&S&&!h.target&&this.$emit("change",L,x)}},i)})},getShowResult(o=[],e){return o.reduce((t,n)=>{let a={isMatch:!0,rule:null};t&&(a=t);let l=!1;if(n.valueRule==="not"?l=e[n.match]!==n.value:l=e[n.match]===n.value,t){if(a.rule)switch(a.rule){case"and":a.isMatch=a.isMatch&&l;break;case"or":a.isMatch=a.isMatch||l;break}}else a.isMatch=l;return a.rule=n.rule||"and",a},null)}}};var ml=function(){var e=this,t=e._self._c;return t("div",{staticClass:"props-to-form"},e._l(e.formProps,function(n,a){var l;return t("div",{key:a,class:["prop-item",{layout:n.layout==="vertical"}]},[n.label?t("span",{class:["label",n.layout==="vertical"?"label-vertical":""],style:{width:e.isVue3?"28%":"38%"}},[e._v(" "+e._s(n.label)+" ")]):e._e(),t("div",{staticClass:"component-wrapper"},[Array.isArray(n)?e._l(n,function(i,m){return t("div",{key:m,staticClass:"component"},[t("Ecan"+i.component[0].toUpperCase()+i.component.slice(1),e._g(e._b(e._b({tag:"component",style:i.style,attrs:{disabled:e.disabled}},"component",e._d({},[i.valueProp,i.value])),"component",i.props,!1),i.events))],1)}):e._e(),Array.isArray(n)?e._e():[n.component?t("Ecan"+n.component[0].toUpperCase()+n.component.slice(1),e._g(e._b(e._b({tag:"component",staticClass:"component",style:n.style,attrs:{disabled:e.disabled}},"component",e._d({},[n.valueProp,n.value])),"component",n.props,!1),n.events)):e._e(),(l=n==null?void 0:n.props)!=null&&l.tooltip?t("a-tooltip",{attrs:{title:n.props.tooltip,placement:"topRight",overlayClassName:"question-tooltip",color:"#fff"}},[t("question-circle-outlined",{style:e.questionStyle})],1):e._e()]],2)])}),0)},hl=[],fl=w(dl,ml,hl,!1,null,"c86c2a34",null,null);const bl=fl.exports;const yl={name:"AttributeConfig",components:{PropsToForm:bl},props:["searchValue","selectedComponent","selectedComponentType","renderUsedComponentList","pageId","projectId","request"],provide(){return{componentList:this.componentList,selectedComponent:this.selectedComponent,renderUsedComponentList:this.renderUsedComponentList,pageId:this.pageId||"",projectId:this.projectId||"",request:this.request}},data(){return{componentList:Mt,activeKey:[]}},emits:["change"],computed:{searchProps(){return I.reduce(Le,(o,e,t)=>(Array.isArray(e)?e.forEach(n=>{N(n.label,this.searchValue)&&o.push(t)}):!Array.isArray(e)&&N(e.label,this.searchValue)&&o.push(t),o),[])},finalProps(){var t,n;const o=(t=this.selectedComponent)==null?void 0:t.type;let e={};if(o!=null){const a=((n=this.componentList)==null?void 0:n.find(i=>N(i.type,o)))||{},l=I.pick(this.selectedComponent||{},Object.keys(a||{}));e=V(V({},a),l)}return I.pick(e,this.searchProps)},detailPropsGroups(){return Dt.map(o=>{const{props:e,title:t,enableProps:n,onlyType:a,excludeType:l,showSwitch:i,dataVNoHas:m}=o,u=[];return e.forEach(c=>{var v,h;m&&isVue3||(typeof c=="string"?u.push(c):N((v=this.selectedComponent)==null?void 0:v.type,c.onlyType)?u.push(c.value):N((h=this.selectedComponent)==null?void 0:h.type,c.excludeType)||u.push(c.value))}),{title:t,enableProps:typeof n=="string"&&this.selectedComponent?this.selectedComponent[n]:void 0,enablePropsName:n,onlyType:a,excludeType:l,showSwitch:i,props:I.pick(this.finalProps,u)}}).filter(({props:o})=>Object.keys(o).length>0)}},watch:{searchValue(o){},selectedComponent:{handler(o){if(o&&Object.keys(o).length===1){const e=this.componentList.find(s=>s.type==="ecanBar"),{id:t,name:n,keyName:a,width:l,height:i,position:m,top:u,left:c,zIndex:v,rotate:h,isShow:x,isRender:S,requestUrl:L,requestType:$,requestMethod:P,dataSetParam:me,requestHeaders:qe,isOpenRequestTimer:X,isViewRedrawing:R,requestInterval:_e,requestSort:he,requestParams:ne,events:A,dataType:g,scale:le,requestParamsMode:Se,customRequestParams:f}=e,r=Ge(e,["id","name","keyName","width","height","position","top","left","zIndex","rotate","isShow","isRender","requestUrl","requestType","requestMethod","dataSetParam","requestHeaders","isOpenRequestTimer","isViewRedrawing","requestInterval","requestSort","requestParams","events","dataType","scale","requestParamsMode","customRequestParams"]);this.change(r)}},immediate:!0}},methods:{onSwitchChange(o,e){e!=null&&this.change({[e]:o})},onSwitchClick(o,e){e==null||e.stopPropagation()},isRenderForm(o,e){const{onlyType:t,excludeType:n}=o;return t==null&&n==null?!0:t?N(e,t):n?!N(e,n):!1},lowerCaseIncludes(o,e){return N(o,e)},change(...o){this.$emit("change",...o)}}};var xl=function(){var e=this,t=e._self._c;return t("div",[t("a-collapse",{model:{value:e.activeKey,callback:function(n){e.activeKey=n},expression:"activeKey"}},[e._l(e.detailPropsGroups,function(n,a){return[e.isRenderForm(n,e.selectedComponentType)?[n.title?t("a-collapse-panel",{key:String(a),attrs:{header:n.title},scopedSlots:e._u([{key:"extra",fn:function(){return[typeof n.enableProps=="boolean"||n.showSwitch?t("a-switch",{attrs:{checked:n.enableProps},on:{change:l=>e.onSwitchChange(l,n.enablePropsName),click:e.onSwitchClick}}):e._e()]},proxy:!0}],null,!0)},[t("props-to-form",{attrs:{selectedComponentType:e.selectedComponentType,props:n.props,disabled:typeof n.enableProps=="boolean"?!n.enableProps:!!n.showSwitch},on:{change:e.change}})],1):t("div",{staticClass:"props-to-form-wrapper"},[t("props-to-form",{attrs:{props:n.props},on:{change:e.change}})],1)]:e._e()]})],2)],1)},gl=[],vl=w(yl,xl,gl,!1,null,"246153c0",null,null);const kt=vl.exports;window.VUE_VERSION="2";window.isVue3=!1;const _l={install(o,e){o.component("ChartPanel",kt)}};exports.ChartPanel=kt;exports.default=_l;