@ecan-bi/chart-config-panel 1.0.0
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.
- package/README.md +37 -0
- package/dist/vue2/index.cjs +11 -0
- package/dist/vue2/index.mjs +8205 -0
- package/dist/vue2/style.css +1 -0
- package/dist/vue3/index.cjs +69 -0
- package/dist/vue3/index.mjs +11422 -0
- package/dist/vue3/style.css +1 -0
- package/package.json +65 -0
package/README.md
ADDED
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
# page-config
|
|
2
|
+
|
|
3
|
+
#### 基于ant-deign-vue 框架 开发的 vue2和vue3都适配的图表属性面板组件
|
|
4
|
+
|
|
5
|
+
##### 1.命令
|
|
6
|
+
|
|
7
|
+
``` bash
|
|
8
|
+
#初始化
|
|
9
|
+
yarn install
|
|
10
|
+
|
|
11
|
+
#开发调试-启动
|
|
12
|
+
yarn run dev:vue2
|
|
13
|
+
yarn run dev:vue3
|
|
14
|
+
|
|
15
|
+
#link模式联调
|
|
16
|
+
yarn link // 当前组件项目
|
|
17
|
+
yarn link @ecan-bi/chart-config-panel // 主项目
|
|
18
|
+
|
|
19
|
+
# 打包
|
|
20
|
+
yarn run build:vue2
|
|
21
|
+
yarn run build:vue3
|
|
22
|
+
|
|
23
|
+
```
|
|
24
|
+
##### 2.引用
|
|
25
|
+
|
|
26
|
+
```
|
|
27
|
+
// vue2
|
|
28
|
+
import '@ecan-bi/chart-config-panel/dist/vue2/style.css'
|
|
29
|
+
import { ChartPanel } from '@ecan-bi/chart-config-panel/dist/vue2/index.cjs'
|
|
30
|
+
|
|
31
|
+
// vue3
|
|
32
|
+
import { ChartPanel } from '@ecan-bi/chart-config-panel'
|
|
33
|
+
import '@ecan-bi/chart-config-panel/style.css'
|
|
34
|
+
|
|
35
|
+
<ChartPanel @change="commonChartPanelChange" :searchValue="searchValue" :selectedComponent="selectedComponent" :selectedComponentType="selectedComponentType" :componentList="componentList"/>
|
|
36
|
+
```
|
|
37
|
+
|
|
@@ -0,0 +1,11 @@
|
|
|
1
|
+
"use strict";var St=Object.defineProperty,_t=Object.defineProperties;var wt=Object.getOwnPropertyDescriptors;var me=Object.getOwnPropertySymbols;var Ne=Object.prototype.hasOwnProperty,qe=Object.prototype.propertyIsEnumerable;var ze=(t,e,o)=>e in t?St(t,e,{enumerable:!0,configurable:!0,writable:!0,value:o}):t[e]=o,D=(t,e)=>{for(var o in e||(e={}))Ne.call(e,o)&&ze(t,o,e[o]);if(me)for(var o of me(e))qe.call(e,o)&&ze(t,o,e[o]);return t},le=(t,e)=>_t(t,wt(e));var Be=(t,e)=>{var o={};for(var n in t)Ne.call(t,n)&&e.indexOf(n)<0&&(o[n]=t[n]);if(t!=null&&me)for(var n of me(t))e.indexOf(n)<0&&qe.call(t,n)&&(o[n]=t[n]);return o};Object.defineProperties(exports,{__esModule:{value:!0},[Symbol.toStringTag]:{value:"Module"}});const G=require("lodash-es"),Ct=require("vue-color"),At=[{title:"基本属性",excludeType:["border"],dataVNoHas:!0,props:["graphicType","colors"]},{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","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:"tooltipShow",excludeType:["button"],props:["tooltipTrigger","tooltipFormatter","tooltipTextStyleColor","tooltipBackgroundColor","tooltipRequestData","tooltipPosition"]},{title:"工具栏",enableProps:"toolboxShow",onlyType:["bar","comboGraph","line","pie","radar","scatter"],props:["toolboxOrient","toolboxItemSize","toolboxItemGap","toolboxLeft","toolboxTop","toolboxIconStyleBorderColor","toolboxLocation","toolboxDownloadShow","toolboxDataZoomShow","toolboxInfoShow","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:"无数据提示",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"]}],Tt=[{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,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"},{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,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,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:"",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,xAxisLabelOverflow:"none",xAxisLineShow:!0,xAxisLineStyleColor:"#333",xAxisTickShow:!0,yAxisTickShow:!0,xAxisMinInterval:0,yAxisMinInterval:0,yAxisLabelRotate: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,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"},{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",colors:["#5470c6","#91cc75","#fac858","#ee6666","#73c0de","#3ba272","#fc8452","#9a60b4","#ea7ccc"],symbolSize:10,symbolColor:"",xAxisSplitLineShow:!0,xAxisSplitAreaShow:!1,xAxisSplitLineInterval:0,xAxisSplitLineStyleColor:"#333",xAxisLineStyleColor:"#333",xAxisTickShow:!0,xAxisLabelColor:"#333",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,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"},{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,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,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,yAxisMaxValue: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}"},{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,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,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,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}"}],we={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}]},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"],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"}]}},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"},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:`【别名】是循环列表内部要循环的组件别名;
|
|
2
|
+
【字段】是接口返回的数据字段;`,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}},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,
|
|
3
|
+
max表示x轴刻度最大值,min表示x轴刻度最小值。使用变量的时候需要用“{}”符号包裹变量,例如添加一根位于x轴正中间的标线可以这么写:({max} + {min}) / 2`}},yAxisMarkLineValue:{label:"y轴标线",component:"mark-link-config",layout:"vertical",onlyType:"scatter",props:{indexTip:`【值】代表标线在y轴上的刻度。固定的值直接输入数字;动态的值可以输入表达式,系统提供了两个变量:max和min,
|
|
4
|
+
max表示y轴刻度最大值,min表示y轴刻度最小值。使用变量的时候需要用“{}”符号包裹变量,例如添加一根位于y轴正中间的标线可以这么写:({max} + {min}) / 2`}},axisMarkArea:{label:"标域设置",component:"mark-area-config",layout:"vertical",onlyType:"scatter",props:{indexTip:`每个标域需要配置两个坐标点才能确定区域,所以需要填写两个坐标的x和y的值,即(x1, y1)、(x2, y2),这两个点需要配置为区域的对角两个点才能
|
|
5
|
+
正确的标出区域。如果不设置标域颜色将会使用图表默认颜色。系统提供四个变量:xMax、xMin、yMax、yMin,xMax表示x轴刻度最大值,xMin表示x轴刻度最小值,
|
|
6
|
+
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个端点坐标,坐标值可以用 “{}” 包裹组件别名作为变量。
|
|
7
|
+
例如直线1端点坐标为(x1, y1)、(x2, y2),直线2端点坐标为(x3, y3)、(x4, y4),那么函数这么写:getIntersectPoint(x1, y1, x2, y2, x3, y3, x4, y4),
|
|
8
|
+
其中坐标值可以是这样:{固定成本},固定成本是某个文本组件的别名,那么坐标值将会等于别名为固定成本的文本组件的值`}},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"}]}};function L(t,e,o,n,a,l,r,h){var d=typeof t=="function"?t.options:t;e&&(d.render=e,d.staticRenderFns=o,d._compiled=!0),n&&(d.functional=!0),l&&(d._scopeId="data-v-"+l);var u;if(r?(u=function(y){y=y||this.$vnode&&this.$vnode.ssrContext||this.parent&&this.parent.$vnode&&this.parent.$vnode.ssrContext,!y&&typeof __VUE_SSR_CONTEXT__!="undefined"&&(y=__VUE_SSR_CONTEXT__),a&&a.call(this,y),y&&y._registeredComponents&&y._registeredComponents.add(r)},d._ssrRegister=u):a&&(u=h?function(){a.call(this,(d.functional?this.parent:this).$root.$options.shadowRoot)}:a),u)if(d.functional){d._injectStyles=u;var g=d.render;d.render=function(_,k){return u.call(k),g(_,k)}}else{var x=d.beforeCreate;d.beforeCreate=x?[].concat(x,u):[u]}return{exports:t,options:d}}const Lt={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(t){this.myValue=t},immediate:!0}},methods:{onInputChange(t){this.$emit("change",t.target.value)}}};var kt=function(){var e=this,o=e._self._c;return o("div",[o("a-input",{attrs:{value:e.myValue,disabled:e.disabled},on:{change:e.onInputChange}})],1)},It=[],$t=L(Lt,kt,It,!1,null,"004eecbd",null,null);const Ft=$t.exports;const Mt={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 t=this.value;return typeof t=="string"?parseFloat(t):typeof t=="object"&&t!=null?t[this.valueKey]:t}},watch:{value:{handler(){this.prefixValue=this.getPrefixOrSuffixValue("prefix"),this.suffixValue=this.getPrefixOrSuffixValue("suffix")},deep:!0,immediate:!0}},methods:{getPrefixOrSuffixValue(t){return this.value!=null&&typeof this.value=="object"?this.value[this[`${t}ValueKey`]]:Array.isArray(this[t])?this[t][0]&&this[t][0].value:null},onInputChange(t){let e=t;const o=this.suffix;Array.isArray(this.prefix)||Array.isArray(this.suffix)?this.$emit("change",{[this.valueKey]:e,[this.prefixValueKey]:this.prefixValue,[this.suffixValueKey]:this.suffixValue}):o===""||e==null?this.$emit("change",e):this.$emit("change",`${e}${o}`)},onPrefixChange(t){this.prefixValue=t,Array.isArray(this.prefix)&&this.$emit("change",{[this.valueKey]:this.inputValue,[this.prefixValueKey]:this.prefixValue,[this.suffixValueKey]:this.suffixValue})},onSuffixChange(t){this.suffixValue=t,Array.isArray(this.suffix)&&this.$emit("change",{[this.valueKey]:this.inputValue,[this.prefixValueKey]:this.prefixValue,[this.suffixValueKey]:this.suffixValue})},parser(t){return typeof this.suffix=="string"?t.replace(this.suffix,""):Array.isArray(this.suffix)&&this.value!=null&&typeof this.value=="object"?t.replace(this.value[this.suffixValueKey],""):t},onInputBlur(){if(this.useBlurEvent){const t={useContainer:!0,useContainerTime:0};this.$emit("change",null,t,!1)}}}};var Vt=function(){var e=this,o=e._self._c;return o("div",{staticStyle:{display:"flex","align-items":"center"}},[!e.isVue3&&e.prefix?[o("div",{staticClass:"prefix-section icon-section"},[Array.isArray(e.prefix)&&e.prefix.length>0?[o("a-select",{attrs:{value:e.prefixValue},on:{change:e.onPrefixChange}},e._l(e.prefix,function(n,a){return o("a-select-option",{key:a,attrs:{value:n.value}},[e._v(" "+e._s(n.label)+" ")])}),1)]:o("span",[e._v(e._s(e.prefix))])],2)]:e._e(),o("a-input-number",{style:D({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[o("a-select",{attrs:{value:e.prefixValue},on:{change:e.onPrefixChange}},e._l(e.prefix,function(n,a){return o("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[o("a-select",{attrs:{value:e.suffixValue},on:{change:e.onSuffixChange}},e._l(e.suffix,function(n,a){return o("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?[o("div",{staticClass:"suffix-section icon-section"},[Array.isArray(e.suffix)&&e.suffix.length>0?[o("a-select",{attrs:{value:e.suffixValue},on:{change:e.onSuffixChange}},e._l(e.suffix,function(n,a){return o("a-select-option",{key:a,attrs:{value:n.value}},[e._v(" "+e._s(n.label)+" ")])}),1)]:o("span",[e._v(e._s(e.suffix))])],2)]:e._e()],2)},Dt=[],Ot=L(Mt,Vt,Dt,!1,null,"d6ca6a85",null,null);const st=Ot.exports;const Rt={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(t){this.$emit("change",t.target.value)}}};var Pt=function(){var e=this,o=e._self._c;return o("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 o("a-radio-button",{key:n.value,attrs:{value:n.value}},[e._v(" "+e._s(n.label)+" ")])}),1)},zt=[],Nt=L(Rt,Pt,zt,!1,null,"1201737e",null,null);const qt=Nt.exports,Bt=()=>{},Et=Object.assign,Wt=Array.isArray,Me=t=>typeof t=="function",jt=t=>typeof t=="symbol";let Ee;const Ce=()=>Ee||(Ee=typeof globalThis!="undefined"?globalThis:typeof self!="undefined"?self:typeof window!="undefined"?window:typeof global!="undefined"?global:{});function Ae(t){const e=t&&t.__v_raw;return e?Ae(e):t}function Gt(t){return!(!t||t.__v_isRef!==!0)}new Set(Object.getOwnPropertyNames(Symbol).filter(t=>t!=="arguments"&&t!=="caller").map(t=>Symbol[t]).filter(jt));const j=[];function Ve(t,...e){if(process.env.NODE_ENV==="production")return;const o=j.length?j[j.length-1].component:null,n=o&&o.appContext.config.warnHandler,a=function(){let l=j[j.length-1];if(!l)return[];const r=[];for(;l;){const h=r[0];h&&h.vnode===l?h.recurseCount++:r.push({vnode:l,recurseCount:0});const d=l.component&&l.component.parent;l=d&&d.vnode}return r}();if(n)De(n,o,11,[t+e.join(""),o&&o.proxy,a.map(({vnode:l})=>`at <${Ue(o,l.type)}>`).join(`
|
|
9
|
+
`),a]);else{const l=[`[Vue warn]: ${t}`,...e];a.length&&l.push(`
|
|
10
|
+
`,...function(r){const h=[];return r.forEach((d,u)=>{h.push(...u===0?[]:[`
|
|
11
|
+
`],...function({vnode:g,recurseCount:x}){const y=x>0?`... (${x} recursive calls)`:"",_=!!g.component&&g.component.parent==null,k=` at <${Ue(g.component,g.type,_)}`,I=">"+y;return g.props?[k,...Ht(g.props),I]:[k+I]}(d))}),h}(a)),console.warn(...l)}}function Ht(t){const e=[],o=Object.keys(t);return o.slice(0,3).forEach(n=>{e.push(...pt(n,t[n]))}),o.length>3&&e.push(" ..."),e}function pt(t,e,o){return typeof e=="string"?(e=JSON.stringify(e),o?e:[`${t}=${e}`]):typeof e=="number"||typeof e=="boolean"||e==null?o?e:[`${t}=${e}`]:Gt(e)?(e=pt(t,Ae(e.value),!0),o?e:[`${t}=Ref<`,e,">"]):Me(e)?[`${t}=fn${e.name?`<${e.name}>`:""}`]:(e=Ae(e),o?e:[`${t}=`,e])}const We={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 De(t,e,o,n){let a;try{a=n?t(...n):t()}catch(l){(function(r,h,d,u=!0){const g=h?h.vnode:null;if(h){let x=h.parent;const y=h.proxy,_=process.env.NODE_ENV!=="production"?We[d]:d;for(;x;){const I=x.ec;if(I){for(let $=0;$<I.length;$++)if(I[$](r,y,_)===!1)return}x=x.parent}const k=h.appContext.config.errorHandler;if(k)return void De(k,null,10,[r,y,_])}(function(x,y,_,k=!0){if(process.env.NODE_ENV!=="production"){const $=We[y];if(_&&(I=_,j.push(I)),Ve("Unhandled error"+($?` during execution of ${$}`:"")),_&&j.pop(),k)throw x;console.error(x)}else console.error(x);var I})(r,d,g,u)})(l,e,o)}return a}let fe=!1,Te=!1;const V=[];let B=0;const Z=[];let O=null,q=0;const Ut=Promise.resolve();function Yt(t){V.length&&V.includes(t,fe&&t.allowRecurse?B+1:B)||(t.id==null?V.push(t):V.splice(function(e){let o=B+1,n=V.length;for(;o<n;){const a=o+n>>>1,l=V[a],r=pe(l);r<e||r===e&&l.pre?o=a+1:n=a}return o}(t.id),0,t),ut())}function ut(){fe||Te||(Te=!0,Ut.then(ct))}const pe=t=>t.id==null?1/0:t.id,Kt=(t,e)=>{const o=pe(t)-pe(e);if(o===0){if(t.pre&&!e.pre)return-1;if(e.pre&&!t.pre)return 1}return o};function ct(t){Te=!1,fe=!0,process.env.NODE_ENV!=="production"&&(t=t||new Map),V.sort(Kt);const e=process.env.NODE_ENV!=="production"?o=>je(t,o):Bt;try{for(B=0;B<V.length;B++){const o=V[B];if(o&&o.active!==!1){if(process.env.NODE_ENV!=="production"&&e(o))continue;De(o,null,14)}}}finally{B=0,V.length=0,function(o){if(Z.length){const n=[...new Set(Z)];if(Z.length=0,O)return void O.push(...n);for(O=n,process.env.NODE_ENV!=="production"&&(o=o||new Map),O.sort((a,l)=>pe(a)-pe(l)),q=0;q<O.length;q++)process.env.NODE_ENV!=="production"&&je(o,O[q])||O[q]();O=null,q=0}}(t),fe=!1,(V.length||Z.length)&&ct(t)}}function je(t,e){if(t.has(e)){const o=t.get(e);if(o>100){const n=e.ownerInstance,a=n&&dt(n.type);return Ve(`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}t.set(e,o+1)}else t.set(e,1)}const ae=new Set;process.env.NODE_ENV!=="production"&&(Ce().__VUE_HMR_RUNTIME__={createRecord:ve(function(t,e){return he.has(t)?!1:(he.set(t,{initialDef:ie(e),instances:new Set}),!0)}),rerender:ve(function(t,e){const o=he.get(t);o&&(o.initialDef.render=e,[...o.instances].forEach(n=>{e&&(n.render=e,ie(n.type).render=e),n.renderCache=[],n.update()}))}),reload:ve(function(t,e){const o=he.get(t);if(!o)return;e=ie(e),Ge(o.initialDef,e);const n=[...o.instances];for(const l of n){const r=ie(l.type);ae.has(r)||(r!==o.initialDef&&Ge(r,e),ae.add(r)),l.appContext.propsCache.delete(l.type),l.appContext.emitsCache.delete(l.type),l.appContext.optionsCache.delete(l.type),l.ceReload?(ae.add(r),l.ceReload(e.styles),ae.delete(r)):l.parent?Yt(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)ae.delete(ie(l.type))},Wt(a)?Z.push(...a):O&&O.includes(a,a.allowRecurse?q+1:q)||Z.push(a),ut();var a})});const he=new Map;function ie(t){return Me(e=t)&&"__vccOpts"in e?t.__vccOpts:t;var e}function Ge(t,e){Et(t,e);for(const o in t)o==="__file"||o in e||delete t[o]}function ve(t){return(e,o)=>{try{return t(e,o)}catch(n){console.error(n),console.warn("[HMR] Something went wrong during Vue component hot-reload. Full reload required.")}}}let ge;process.env.NODE_ENV;let He="__VUE_INSTANCE_SETTERS__";(ge=Ce()[He])||(ge=Ce()[He]=[]),ge.push(t=>t);const Xt=/(?:^|[-_])(\w)/g,Zt=t=>t.replace(Xt,e=>e.toUpperCase()).replace(/[-_]/g,"");function dt(t,e=!0){return Me(t)?t.displayName||t.name:t.name||e&&t.__name}function Ue(t,e,o=!1){let n=dt(e);if(!n&&e.__file){const a=e.__file.match(/([^/\\]+)\.\w+$/);a&&(n=a[1])}if(!n&&t&&t.parent){const a=l=>{for(const r in l)if(l[r]===e)return r};n=a(t.components||t.parent.type.components)||a(t.appContext.components)}return n?Zt(n):o?"App":"Anonymous"}function Jt(t){return t&&t.__esModule&&Object.prototype.hasOwnProperty.call(t,"default")?t.default:t}var Ye,Ke={exports:{}};function Qt(){return Ye||(Ye=1,Ke.exports=function(){var t=1e3,e=6e4,o=36e5,n="millisecond",a="second",l="minute",r="hour",h="day",d="week",u="month",g="quarter",x="year",y="date",_="Invalid Date",k=/^(\d{4})[-/]?(\d{1,2})?[-/]?(\d{0,2})[Tt\s]*(\d{1,2})?:?(\d{1,2})?:?(\d{1,2})?[.:]?(\d+)?$/,I=/\[([^\]]+)]|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,$={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(m){var s=["th","st","nd","rd"],i=m%100;return"["+m+(s[(i-20)%10]||s[i]||s[0])+"]"}},ue=function(m,s,i){var c=String(m);return!c||c.length>=s?m:""+Array(s+1-c.length).join(i)+m},Pe={s:ue,z:function(m){var s=-m.utcOffset(),i=Math.abs(s),c=Math.floor(i/60),p=i%60;return(s<=0?"+":"-")+ue(c,2,"0")+":"+ue(p,2,"0")},m:function m(s,i){if(s.date()<i.date())return-m(i,s);var c=12*(i.year()-s.year())+(i.month()-s.month()),p=s.clone().add(c,u),f=i-p<0,b=s.clone().add(c+(f?-1:1),u);return+(-(c+(i-p)/(f?p-b:b-p))||0)},a:function(m){return m<0?Math.ceil(m)||0:Math.floor(m)},p:function(m){return{M:u,y:x,w:d,d:h,D:y,h:r,m:l,s:a,ms:n,Q:g}[m]||String(m||"").toLowerCase().replace(/s$/,"")},u:function(m){return m===void 0}},Y="en",P={};P[Y]=$;var xe="$isDayjsObject",ce=function(m){return m instanceof te||!(!m||!m[xe])},ee=function m(s,i,c){var p;if(!s)return Y;if(typeof s=="string"){var f=s.toLowerCase();P[f]&&(p=f),i&&(P[f]=i,p=f);var b=s.split("-");if(!p&&b.length>1)return m(b[0])}else{var S=s.name;P[S]=s,p=S}return!c&&p&&(Y=p),p||!c&&Y},C=function(m,s){if(ce(m))return m.clone();var i=typeof s=="object"?s:{};return i.date=m,i.args=arguments,new te(i)},v=Pe;v.l=ee,v.i=ce,v.w=function(m,s){return C(m,{locale:s.$L,utc:s.$u,x:s.$x,$offset:s.$offset})};var te=function(){function m(i){this.$L=ee(i.locale,null,!0),this.parse(i),this.$x=this.$x||i.x||{},this[xe]=!0}var s=m.prototype;return s.parse=function(i){this.$d=function(c){var p=c.date,f=c.utc;if(p===null)return new Date(NaN);if(v.u(p))return new Date;if(p instanceof Date)return new Date(p);if(typeof p=="string"&&!/Z$/i.test(p)){var b=p.match(k);if(b){var S=b[2]-1||0,w=(b[7]||"0").substring(0,3);return f?new Date(Date.UTC(b[1],S,b[3]||1,b[4]||0,b[5]||0,b[6]||0,w)):new Date(b[1],S,b[3]||1,b[4]||0,b[5]||0,b[6]||0,w)}}return new Date(p)}(i),this.init()},s.init=function(){var i=this.$d;this.$y=i.getFullYear(),this.$M=i.getMonth(),this.$D=i.getDate(),this.$W=i.getDay(),this.$H=i.getHours(),this.$m=i.getMinutes(),this.$s=i.getSeconds(),this.$ms=i.getMilliseconds()},s.$utils=function(){return v},s.isValid=function(){return this.$d.toString()!==_},s.isSame=function(i,c){var p=C(i);return this.startOf(c)<=p&&p<=this.endOf(c)},s.isAfter=function(i,c){return C(i)<this.startOf(c)},s.isBefore=function(i,c){return this.endOf(c)<C(i)},s.$g=function(i,c,p){return v.u(i)?this[c]:this.set(p,i)},s.unix=function(){return Math.floor(this.valueOf()/1e3)},s.valueOf=function(){return this.$d.getTime()},s.startOf=function(i,c){var p=this,f=!!v.u(c)||c,b=v.p(i),S=function(W,F){var z=v.w(p.$u?Date.UTC(p.$y,F,W):new Date(p.$y,F,W),p);return f?z:z.endOf(h)},w=function(W,F){return v.w(p.toDate()[W].apply(p.toDate("s"),(f?[0,0,0,0]:[23,59,59,999]).slice(F)),p)},A=this.$W,T=this.$M,M=this.$D,K="set"+(this.$u?"UTC":"");switch(b){case x:return f?S(1,0):S(31,11);case u:return f?S(1,T):S(0,T+1);case d:var E=this.$locale().weekStart||0,oe=(A<E?A+7:A)-E;return S(f?M-oe:M+(6-oe),T);case h:case y:return w(K+"Hours",0);case r:return w(K+"Minutes",1);case l:return w(K+"Seconds",2);case a:return w(K+"Milliseconds",3);default:return this.clone()}},s.endOf=function(i){return this.startOf(i,!1)},s.$set=function(i,c){var p,f=v.p(i),b="set"+(this.$u?"UTC":""),S=(p={},p[h]=b+"Date",p[y]=b+"Date",p[u]=b+"Month",p[x]=b+"FullYear",p[r]=b+"Hours",p[l]=b+"Minutes",p[a]=b+"Seconds",p[n]=b+"Milliseconds",p)[f],w=f===h?this.$D+(c-this.$W):c;if(f===u||f===x){var A=this.clone().set(y,1);A.$d[S](w),A.init(),this.$d=A.set(y,Math.min(this.$D,A.daysInMonth())).$d}else S&&this.$d[S](w);return this.init(),this},s.set=function(i,c){return this.clone().$set(i,c)},s.get=function(i){return this[v.p(i)]()},s.add=function(i,c){var p,f=this;i=Number(i);var b=v.p(c),S=function(T){var M=C(f);return v.w(M.date(M.date()+Math.round(T*i)),f)};if(b===u)return this.set(u,this.$M+i);if(b===x)return this.set(x,this.$y+i);if(b===h)return S(1);if(b===d)return S(7);var w=(p={},p[l]=e,p[r]=o,p[a]=t,p)[b]||1,A=this.$d.getTime()+i*w;return v.w(A,this)},s.subtract=function(i,c){return this.add(-1*i,c)},s.format=function(i){var c=this,p=this.$locale();if(!this.isValid())return p.invalidDate||_;var f=i||"YYYY-MM-DDTHH:mm:ssZ",b=v.z(this),S=this.$H,w=this.$m,A=this.$M,T=p.weekdays,M=p.months,K=p.meridiem,E=function(F,z,ne,de){return F&&(F[z]||F(c,f))||ne[z].slice(0,de)},oe=function(F){return v.s(S%12||12,F,"0")},W=K||function(F,z,ne){var de=F<12?"AM":"PM";return ne?de.toLowerCase():de};return f.replace(I,function(F,z){return z||function(ne){switch(ne){case"YY":return String(c.$y).slice(-2);case"YYYY":return v.s(c.$y,4,"0");case"M":return A+1;case"MM":return v.s(A+1,2,"0");case"MMM":return E(p.monthsShort,A,M,3);case"MMMM":return E(M,A);case"D":return c.$D;case"DD":return v.s(c.$D,2,"0");case"d":return String(c.$W);case"dd":return E(p.weekdaysMin,c.$W,T,2);case"ddd":return E(p.weekdaysShort,c.$W,T,3);case"dddd":return T[c.$W];case"H":return String(S);case"HH":return v.s(S,2,"0");case"h":return oe(1);case"hh":return oe(2);case"a":return W(S,w,!0);case"A":return W(S,w,!1);case"m":return String(w);case"mm":return v.s(w,2,"0");case"s":return String(c.$s);case"ss":return v.s(c.$s,2,"0");case"SSS":return v.s(c.$ms,3,"0");case"Z":return b}return null}(F)||b.replace(":","")})},s.utcOffset=function(){return 15*-Math.round(this.$d.getTimezoneOffset()/15)},s.diff=function(i,c,p){var f,b=this,S=v.p(c),w=C(i),A=(w.utcOffset()-this.utcOffset())*e,T=this-w,M=function(){return v.m(b,w)};switch(S){case x:f=M()/12;break;case u:f=M();break;case g:f=M()/3;break;case d:f=(T-A)/6048e5;break;case h:f=(T-A)/864e5;break;case r:f=T/o;break;case l:f=T/e;break;case a:f=T/t;break;default:f=T}return p?f:v.a(f)},s.daysInMonth=function(){return this.endOf(u).$D},s.$locale=function(){return P[this.$L]},s.locale=function(i,c){if(!i)return this.$L;var p=this.clone(),f=ee(i,c,!0);return f&&(p.$L=f),p},s.clone=function(){return v.w(this.$d,this)},s.toDate=function(){return new Date(this.valueOf())},s.toJSON=function(){return this.isValid()?this.toISOString():null},s.toISOString=function(){return this.$d.toISOString()},s.toString=function(){return this.$d.toUTCString()},m}(),ye=te.prototype;return C.prototype=ye,[["$ms",n],["$s",a],["$m",l],["$H",r],["$W",h],["$M",u],["$y",x],["$D",y]].forEach(function(m){ye[m[1]]=function(s){return this.$g(s,m[0],m[1])}}),C.extend=function(m,s){return m.$i||(m(s,te,C),m.$i=!0),C},C.locale=ee,C.isDayjs=ce,C.unix=function(m){return C(1e3*m)},C.en=P[Y],C.Ls=P,C.p={},C}()),Ke.exports}Jt(Qt());var mt=typeof global=="object"&&global&&global.Object===Object&&global,eo=typeof self=="object"&&self&&self.Object===Object&&self,R=mt||eo||Function("return this")(),J=R.Symbol,ht=Object.prototype,to=ht.hasOwnProperty,oo=ht.toString,re=J?J.toStringTag:void 0,no=Object.prototype.toString,Xe=J?J.toStringTag:void 0;function be(t){return t==null?t===void 0?"[object Undefined]":"[object Null]":Xe&&Xe in Object(t)?function(e){var o=to.call(e,re),n=e[re];try{e[re]=void 0;var a=!0}catch(r){}var l=oo.call(e);return a&&(o?e[re]=n:delete e[re]),l}(t):function(e){return no.call(e)}(t)}function ft(t){return t!=null&&typeof t=="object"}function bt(t){var e=typeof t;return t!=null&&(e=="object"||e=="function")}function lo(t){if(!bt(t))return!1;var e=be(t);return e=="[object Function]"||e=="[object GeneratorFunction]"||e=="[object AsyncFunction]"||e=="[object Proxy]"}var Ze,Se=R["__core-js_shared__"],Je=(Ze=/[^.]+$/.exec(Se&&Se.keys&&Se.keys.IE_PROTO||""))?"Symbol(src)_1."+Ze:"",ao=Function.prototype.toString;function H(t){if(t!=null){try{return ao.call(t)}catch(e){}try{return t+""}catch(e){}}return""}var io=/^\[object .+?Constructor\]$/,ro=Function.prototype,so=Object.prototype,po=ro.toString,uo=so.hasOwnProperty,co=RegExp("^"+po.call(uo).replace(/[\\^$.*+?()[\]{}|]/g,"\\$&").replace(/hasOwnProperty|(function).*?(?=\\\()| for .+?(?=\\\])/g,"$1.*?")+"$");function mo(t){return!(!bt(t)||(e=t,Je&&Je in e))&&(lo(t)?co:io).test(H(t));var e}function U(t,e){var o=function(n,a){return n==null?void 0:n[a]}(t,e);return mo(o)?o:void 0}var Le=U(R,"WeakMap");(function(){try{var t=U(Object,"defineProperty");return t({},"",{}),t}catch(e){}})();function Qe(t){return ft(t)&&be(t)=="[object Arguments]"}var xt=Object.prototype,ho=xt.hasOwnProperty,fo=xt.propertyIsEnumerable;Qe(function(){return arguments}());var yt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,et=yt&&typeof module=="object"&&module&&!module.nodeType&&module,tt=et&&et.exports===yt?R.Buffer:void 0;tt&&tt.isBuffer;var vt=typeof exports=="object"&&exports&&!exports.nodeType&&exports,se=vt&&typeof module=="object"&&module&&!module.nodeType&&module,_e=se&&se.exports===vt&&mt.process,Q=function(){try{var t=se&&se.require&&se.require("util").types;return t||_e&&_e.binding&&_e.binding("util")}catch(e){}}();Q&&Q.isTypedArray;U(Object,"create");var ke=U(R,"Map"),Ie=U(R,"DataView"),$e=U(R,"Promise"),Fe=U(R,"Set"),ot="[object Map]",nt="[object Promise]",lt="[object Set]",at="[object WeakMap]",it="[object DataView]",bo=H(Ie),xo=H(ke),yo=H($e),vo=H(Fe),go=H(Le),X=be;(Ie&&X(new Ie(new ArrayBuffer(1)))!=it||ke&&X(new ke)!=ot||$e&&X($e.resolve())!=nt||Fe&&X(new Fe)!=lt||Le&&X(new Le)!=at)&&(X=function(t){var e=be(t),o=e=="[object Object]"?t.constructor:void 0,n=o?H(o):"";if(n)switch(n){case bo:return it;case xo:return ot;case yo:return nt;case vo:return lt;case go:return at}return e});R.Uint8Array;var rt=J?J.prototype:void 0;rt&&rt.valueOf;Q&&Q.isMap;Q&&Q.isSet;const So=(t,e)=>{if(typeof t=="string"&&typeof e=="string")return t.toLocaleLowerCase().includes(e.toLocaleLowerCase());if(typeof t=="string"&&Array.isArray(e)){const o=e.length;for(let n=0;n<o;n++){const a=e[n];if(typeof a=="string"&&t.toLocaleLowerCase().includes(a.toLocaleLowerCase()))return!0}}return!1},_o=(t,e)=>Object.prototype.hasOwnProperty.call(t,e);const wo={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(t){if(this.graphic){const e=this.componentList.find(o=>o.type===t);if(e){const o=G.cloneDeep(this.selectedComponent),{events:n,dataType:a,dataFieldConfigType:l,id:r,keyName:h,top:d,left:u,width:g,height:x,zIndex:y}=o,_={},k=["type","graphicType","data"];for(const $ in o)!k.includes($)&&_o(e,$)&&(_[$]=G.cloneDeep(o[$]));let I=le(D(D({},e),_),{events:n,dataType:a,id:r,keyName:h,top:d,left:u,width:g,height:x,zIndex:y});l&&(I.dataFieldConfigType=l),this.$emit("change",I,{all:!0})}}else this.$emit("change",t);this.$emit("update:value",t)}}};var Co=function(){var e=this,o=e._self._c;return o("a-select",{attrs:{value:e.value},on:{change:e.onSelectChange}},e._l(e.computedOptions,function(n){return o("a-select-option",{key:n.value,attrs:{value:n.value,disabled:n.disabled}},[e._v(" "+e._s(n.label)+" ")])}),1)},Ao=[],To=L(wo,Co,Ao,!1,null,"9283c55b",null,null);const Lo=To.exports;const ko={name:"Switch",components:{},props:{value:{type:Boolean,default:!1},width:{type:[String,Number],default:150},disabled:{type:Boolean,default:!1}},emits:["change"],methods:{onSwitchChange(t){this.$emit("change",t)}}};var Io=function(){var e=this,o=e._self._c;return o("div",{style:{width:`${e.width}px`}},[o("a-switch",{attrs:{disabled:e.disabled,checked:e.value},on:{change:e.onSwitchChange}})],1)},$o=[],Fo=L(ko,Io,$o,!1,null,"2976c406",null,null);const Mo=Fo.exports;const Vo={name:"ColorPicker",components:{SketchPicker:Ct.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(t){t&&(this.currentColor=t)}},methods:{handleVisibleChange(t){this.popoverVisible=t},handleColorChange({hex:t}){this.currentColor=t,this.$emit("input",t),this.$emit("change",t),this.$emit("update:value",t)}}};var Do=function(){var e=this,o=e._self._c;return o("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[o("div",{staticClass:"name",on:{click:function(n){n.stopPropagation()}}},[o("sketch-picker",{attrs:{value:{hex:e.currentColor},disableAlpha:!0,presetColors:e.presetColors},on:{input:e.handleColorChange}})],1)]},proxy:!0}])},[o("div",{staticClass:"popover-trigger",style:{backgroundColor:e.currentColor,height:e.size+"px",width:e.size+"px"}})])},Oo=[],Ro=L(Vo,Do,Oo,!1,null,"c77d9ba2",null,null);const Oe=Ro.exports;const Po={name:"ColorPick",components:{PickColors:Oe},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(t){this.$emit("change",t),this.$emit("input",t),this.$emit("update:value",t)}}},created(){},methods:{onChangColor(t){this.colorValue=t.hex}}};var zo=function(){var e=this,o=e._self._c;return o("div",{staticClass:"color-pick"},[o("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():o("pick-colors",{staticClass:"pick-colors",attrs:{size:25},model:{value:e.colorValue,callback:function(n){e.colorValue=n},expression:"colorValue"}})],1)},No=[],qo=L(Po,zo,No,!1,null,"53899b93",null,null);const Re=qo.exports;const Bo={name:"ColorPickerGroup",components:{ColorPick:Oe},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 Eo=function(){var e=this,o=e._self._c;return o("div",{staticClass:"pick-color-group"},[e._l(e.value,function(n,a){return o("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]"}})}),o("div",{staticClass:"popover-trigger",style:{backgroundColor:"#fff",height:e.size+"px",width:e.size+"px",margin:"5px"},on:{click:e.addColor}},[e._v("+")])],2)},Wo=[],jo=L(Bo,Eo,Wo,!1,null,"932bd405",null,null);const Go=jo.exports;const Ho={name:"ColorGroupPick",components:{PickColors:Go},props:{value:{type:Array,default:()=>[]}},emits:["change"],data(){return{max:13,theme:null}},methods:{onColorsChange(t){this.$emit("change",t)},onOverflowMax(){message.warn(`已经超出最大添加个数:${this.max}`)}}};var Uo=function(){var e=this,o=e._self._c;return o("div",{staticClass:"color-group-pick"},[o("pick-colors",{attrs:{value:e.value,theme:e.theme,"add-color":"",max:e.max},on:{change:e.onColorsChange,"overflow-max":e.onOverflowMax}})],1)},Yo=[],Ko=L(Ho,Uo,Yo,!1,null,"dbed4801",null,null);const Xo=Ko.exports;const Zo={name:"Slider",components:{},props:{value:{type:Number,default:1}},emits:["change"],methods:{onChange(t){this.$emit("change",t)}}};var Jo=function(){var e=this,o=e._self._c;return o("a-row",[o("a-col",{attrs:{span:16}},[o("a-slider",{attrs:{value:e.value,min:0,max:1,step:.1},on:{change:e.onChange}})],1),o("a-col",{staticStyle:{"padding-left":"10px"},attrs:{span:8}},[o("a-input-number",{staticStyle:{width:"100%"},attrs:{value:e.value,min:0,max:1,step:.1},on:{change:e.onChange}})],1)],1)},Qo=[],en=L(Zo,Jo,Qo,!1,null,"02978b05",null,null);const tn=en.exports;const on={name:"Textarea",components:{},props:{value:{type:String,default:""},disabled:{type:Boolean,default:!1}},methods:{onTextareaChange(t){this.$emit("change",t.target.value)}}};var nn=function(){var e=this,o=e._self._c;return o("a-textarea",{attrs:{value:e.value,disabled:e.disabled,autoSize:{minRows:3}},on:{change:e.onTextareaChange}})},ln=[],an=L(on,nn,ln,!1,null,"3c2ddd12",null,null);const rn=an.exports;const sn={components:{ColorPick:Re},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(t){this.dataList=JSON.parse(JSON.stringify(t||[]))},immediate:!0,deep:!0}},methods:{onAdd(){this.dataList.push({startX:"",startY:"",endX:"",endY:"",color:"",label:""}),this.$emit("change",this.dataList)},onDelete(t){this.dataList.splice(t,1),this.$emit("change",this.dataList)},onInputChange(){this.$emit("change",this.dataList)},setColor(t,e){t.color=e,this.$emit("change",this.dataList)}}};var pn=function(){var e=this,o=e._self._c;return o("div",{staticClass:"mark-area-config"},[o("div",{staticClass:"add"},[e.isVue3?o("a-tooltip",{attrs:{title:e.indexTip,overlayClassName:"question-tooltip",color:"#fff"}},[o("question-circle-outlined",{staticClass:"icon",staticStyle:{"margin-right":"207px",color:"#989898","font-size":"18px",cursor:"pointer"}})],1):e._e(),e.isVue3?o("appstore-add-outlined",{staticClass:"icon",on:{click:e.onAdd}}):o("span",{staticClass:"icon",on:{click:e.onAdd}},[e._v("+")])],1),e._l(e.dataList,function(n,a){return o("div",{key:a,staticClass:"config-item"},[o("div",{staticClass:"item"},[o("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[o("span",[e._v("标域"+e._s(Number(a)+1)+":")]),n.isGenerate?e._e():o("span",{staticStyle:{color:"red",cursor:"pointer"},on:{click:function(l){e.onDelete(Number(a))}}},[e._v("删除")])]),o("div",{staticStyle:{"margin-top":"10px"}},[o("a-input-group",{staticStyle:{display:"flex","margin-bottom":"12px"},attrs:{compact:""}},[o("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"}}),o("div",{staticStyle:{padding:"0 5px"}}),o("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),o("a-input-group",{staticStyle:{display:"flex","margin-bottom":"12px"},attrs:{compact:""}},[o("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"}}),o("div",{staticStyle:{padding:"0 5px"}}),o("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),o("div",[e._v("标域颜色:")]),o("color-pick",{attrs:{value:n.color},on:{change:function(l){return e.setColor(n,l)}}}),o("div",{staticStyle:{"margin-top":"12px"}},[e._v("标域文字:")]),o("a-input",{on:{change:e.onInputChange},model:{value:n.label,callback:function(l){e.$set(n,"label",l)},expression:"data.label"}})],1)])])})],2)},un=[],cn=L(sn,pn,un,!1,null,"2201b980",null,null);const dn=cn.exports;const mn={components:{ColorPick:Re},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(t=>({label:t.keyName,value:t.keyName})),calcList:()=>[{label:"平均值",value:"{average}"},{label:"中位数",value:"{median}"},{label:"最大值",value:"{max}"},{label:"最小值",value:"{min}"},{label:"自定义值",value:"customValue"}]},watch:{value:{handler(t){if(!this.selectedComponent)return;this.dataList=JSON.parse(JSON.stringify(t||[]));const{xAxisMarkLineValue:e,yAxisMarkLineValue:o,axisMarkArea:n=[]}=this.selectedComponent;if((e==null?void 0:e.length)===1&&(o==null?void 0:o.length)===1&&e[0].value&&o[0].value){const a=!!n.find(u=>u.isGenerate),l=["{xMin}"],r=["{yMin}"],h={"{max}":"最大值","{min}":"最小值","{average}":"平均值","{median}":"中位数"};for(const u of e)u.value&&l.push(h[u.value]||u.value);l.push("{xMax}");for(const u of o)u.value&&r.push(h[u.value]||u.value);r.push("{yMax}");let d=0;l.forEach((u,g)=>{g<l.length-1&&r.forEach((x,y)=>{if(y<r.length-1){const _={startX:u,startY:x,endX:l[g+1],endY:r[y+1],color:"",label:"",isGenerate:!0};a?(_.color=n[d].color,_.label=n[d].label,n[d++]=_):n.unshift(_)}})})}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(t){this.dataList.splice(t,1),this.$emit("change",this.dataList)},onInputChange(){this.$emit("change",this.dataList)},setColor(t,e){t.color=e,this.$emit("change",this.dataList)},setLineColor(t,e){t.lineColor=e,this.$emit("change",this.dataList)},setLabelColor(t,e){t.labelColor=e,this.$emit("change",this.dataList)},setLineType(t,e){t.lineType=e,this.$emit("change",this.dataList)},onClickMenuItem(t,e){let o=t.key;o==="customValue"&&(o=""),e.type=t.key,e.value=o,this.$emit("change",this.dataList)},onSelectChange(t,e){e.type=t,t==="customValue"&&(e.value=""),this.$emit("change",this.dataList)}}};var hn=function(){var e=this,o=e._self._c;return o("div",{staticClass:"mark-link-config"},[o("div",{staticClass:"add"},[e.isVue3?o("a-tooltip",{attrs:{title:e.indexTip,overlayClassName:"question-tooltip",color:"#fff"}},[o("question-circle-outlined",{staticClass:"icon",staticStyle:{"margin-right":"207px",color:"#989898","font-size":"18px",cursor:"pointer"}})],1):e._e(),e.isVue3?o("appstore-add-outlined",{staticClass:"icon",on:{click:e.onAdd}}):o("span",{staticClass:"icon",on:{click:e.onAdd}},[e._v("+")])],1),e._l(e.dataList,function(n,a){return o("div",{key:a,staticClass:"config-item"},[o("div",{staticClass:"item"},[o("div",{staticStyle:{display:"flex","justify-content":"space-between"}},[o("span",[e._v("标线"+e._s(Number(a)+1)+":")]),o("span",{staticStyle:{color:"red",cursor:"pointer"},on:{click:function(l){e.onDelete(Number(a))}}},[e._v("删除")])]),o("div",{staticStyle:{"margin-top":"10px"}},[o("div",{staticClass:"item-row"},[o("div",{staticClass:"title"},[e._v("值:")]),!n.type||n.type==="customValue"?o("a-input",{staticStyle:{width:"100%"},attrs:{placeholder:"请输入"},on:{change:e.onInputChange},scopedSlots:e._u([{key:"addonAfter",fn:function(){return[o("a-dropdown",{attrs:{trigger:["click"]},scopedSlots:e._u([{key:"overlay",fn:function(){return[o("a-menu",{on:{click:function(l){return e.onClickMenuItem(l,n)}}},e._l(e.calcList,function(l){return o("a-menu-item",{key:l.value},[e._v(e._s(l.label))])}),1)]},proxy:!0}],null,!0)},[e.isVue3?o("down-outlined",{staticStyle:{color:"#aaa"}}):o("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"}}):o("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),o("div",{staticClass:"item-row"},[o("div",{staticClass:"title"},[e._v("文本:")]),o("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),o("div",{staticClass:"item-row"},[o("div",{staticClass:"title"},[e._v("文本水平偏移量:")]),o("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),o("div",{staticClass:"item-row"},[o("div",{staticClass:"title"},[e._v("文本垂直偏移量:")]),o("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),o("div",{staticClass:"item-row"},[o("div",{staticClass:"title"},[e._v("标线类型:")]),o("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),o("div",{staticClass:"item-row"},[o("div",{staticClass:"title"},[e._v("标线颜色:")]),o("color-pick",{attrs:{value:n.lineColor||""},on:{change:function(l){return e.setLineColor(n,l)}}})],1),o("div",{staticClass:"item-row"},[o("div",{staticClass:"title"},[e._v("文本颜色:")]),o("color-pick",{attrs:{value:n.labelColor||""},on:{change:function(l){return e.setLabelColor(n,l)}}})],1)])])])})],2)},fn=[],bn=L(mn,hn,fn,!1,null,"fe59467a",null,null);const xn=bn.exports;const yn={name:"FormGroup",components:{PickColors:Oe,InputNumber:st},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 t=>t||"value"},useComponentType(){return t=>({input:"AInput",select:"ASelect",color:"PickColors","input-number":"InputNumber",switch:"ASwitch"})[t]},myValue:{get(){return this.value},set(t){this.$emit("change",t)}},newFormat(){const t=this.selectedComponent.requestType||0,e=this.selectedComponent.dataType||"",o=this.selectedComponent.DataSetFieldOptions||[],n=[...this.format];return t===1&&e==="request"?n.forEach((a,l)=>{a.label==="索引"&&(n[l]=le(D({},n[l]),{type:"select",props:{options:o.map(r=>({label:r,value:r}))}}))}):n.forEach((a,l)=>{a.label==="索引"&&(n[l]=le(D({},n[l]),{type:"input"}))}),n}},methods:{onValueChange(t,e,o){var a;console.log("e",t);const n=(a=this.value)==null?void 0:a.slice();if(Array.isArray(n)){const l=t==null?void 0:t.target,r=(l==null?void 0:l.value)!=null?l==null?void 0:l.value:t;o?n[e][o]=r:n[e]=r,this.myValue=n}},onAdd(){var o;const t=(o=this.value)==null?void 0:o.slice();if(!Array.isArray(t))return;const e=t.length;if(this.max===-1||this.max>e){const n=t[0];if(Object.prototype.toString.call(n)==="[object Object]"){const a=Object.keys(n),l={};a.forEach(r=>{l[r]=""}),t.push(l)}else typeof n=="string"&&t.push(n);this.myValue=t}else this.$message.warn("已达到最大上限")},onDelete(t){var o;const e=(o=this.value)==null?void 0:o.slice();if(Array.isArray(e)){if(e.length===1){this.$message.warn("已经是最后一条数据,无法删除");return}e.splice(t,1),this.myValue=e}},isShow(t,e){let o=!0;if(t.show){const{match:n,value:a}=t.show;typeof a=="string"&&e[n]===a||Array.isArray(a)&&a.includes(e[n])?o=!0:o=!1}return o}}};var vn=function(){var e=this,o=e._self._c;return o("div",{staticClass:"form-group"},[e.isVue3?o("appstore-add-outlined",{staticClass:"icon add",on:{click:e.onAdd}}):o("span",{staticClass:"icon add",on:{click:e.onAdd}},[e._v("+")]),o("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[o("div",{key:a,staticClass:"form-row"},e._l(e.newFormat,function(l,r){var h;return o("div",{directives:[{name:"show",rawName:"v-show",value:e.isShow(l,n),expression:"isShow(f, e)"}],key:r,staticClass:"form-item"},[Array.isArray(l.label)?[o("span",{staticClass:"label"},[e._v(" "+e._s(l.useLabelIndex?l.label[a]+(a+1):l.label[a])+" ")])]:o("span",{staticClass:"label"},[e._v(" "+e._s(l.useLabelIndex?l.label+(a+1):l.label)+" ")]),o(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(d){return e.onValueChange(d,a,l.value)}}},"component",e._d({},[e.formatTypeValue(l.typeValue),typeof n=="string"?n:(h=n[l.value])!=null?h:l.defaultValue])),"component",l.props,!1))],2)}),0)]})],2),o("div",{staticClass:"icon-group"},e._l(e.myValue,function(n,a){return o("div",{key:a,staticClass:"icon-item"},[e.isVue3?o("minus-circle-outlined",{staticClass:"icon delete",on:{click:function(l){return e.onDelete(a)}}}):o("span",{staticClass:"icon delete",staticStyle:{"padding-bottom":"12px"},on:{click:function(l){return e.onDelete(a)}}},[e._v("-")])],1)}),0)],1)},gn=[],Sn=L(yn,vn,gn,!1,null,"d1de9e32",null,null);const _n=Sn.exports;const wn={name:"PropsToForm",components:{EcanInput:Ft,EcanInputNumber:st,EcanRadioGroup:qt,EcanSelect:Lo,EcanSwitch:Mo,EcanColorPick:Re,EcanColorGroupPick:Xo,EcanSlider:tn,EcanTextarea:rn,EcanMarkAreaConfig:dn,EcanMarkLinkConfig:xn,EcanFormGroup:_n},props:{props:{type:Object,required:!0},disabled:{type:Boolean,default:!1}},emits:["change"],data(){return{isVue3:window.isVue3,questionStyle:{marginLeft:"10px",fontSize:"18px",color:"#7c7c7c",cursor:"pointer"}}},computed:{formProps(){const t=this.props;if(t==null||typeof t!="object")return{};const e={};for(const o in t){const n=we[o],a=n==null?void 0:n.show;a?this.getShowResult(a,t).isMatch&&(e[o]=t[o]):e[o]=t[o]}return G.reduce(e,(o,n,a)=>{const l=we[a];if(Array.isArray(l)){const r=l.find(h=>{const{onlyType:d,excludeType:u,dataVNoHas:g}=h;let x=!1;return d==null&&u==null?x=!0:d?x=this.lowerCaseIncludes(this.selectedComponentType,d):u&&(x=!this.lowerCaseIncludes(this.selectedComponentType,u)),x&&h.show&&(x=this.getShowResult(h.show,t).isMatch),g&&isVue3||(x=!1),x});r&&this.setFormProps({result:o,value:n,key:a,mapAttributeProp:r})}else this.setFormProps({result:o,value:n,key:a,mapAttributeProp:l});return o},{})}},methods:{lowerCaseIncludes(t,e){return!t||!e?!1:t.toLowerCase().includes(e.toLowerCase())},setFormProps({result:t,mapAttributeProp:e,key:o,value:n}){if(t==null||typeof t!="object")return;const{valueProp:a="value",changeValueEventName:l="change",events:r,updateMode:h}=e;t[o]=le(D({},e),{valueProp:a,value:n,events:D({[l]:(d,u={useContainer:!1},g=!0)=>{[void 0,"component"].includes(h)&&(g?this.$emit("change",{[o]:d},u):this.$emit("change",{},u))}},r)})},getShowResult(t=[],e){return t.reduce((o,n)=>{let a={isMatch:!0,rule:null};o&&(a=o);let l=!1;if(n.valueRule==="not"?l=e[n.match]!==n.value:l=e[n.match]===n.value,o){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 Cn=function(){var e=this,o=e._self._c;return o("div",{staticClass:"props-to-form"},e._l(e.formProps,function(n,a){var l;return o("div",{key:a,class:["prop-item",{layout:n.layout==="vertical"}]},[n.label?o("span",{class:["label",n.layout==="vertical"?"label-vertical":""],style:{width:e.isVue3?"28%":"38%"}},[e._v(" "+e._s(n.label)+" ")]):e._e(),o("div",{staticClass:"component-wrapper"},[Array.isArray(n)?e._l(n,function(r,h){return o("div",{key:h,staticClass:"component"},[o("Ecan"+r.component[0].toUpperCase()+r.component.slice(1),e._g(e._b({tag:"component",style:r.style,attrs:{disabled:e.disabled}},"component",r.props,!1),r.events))],1)}):e._e(),Array.isArray(n)?e._e():[n.component?o("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?o("a-tooltip",{attrs:{title:n.props.tooltip,placement:"topRight",overlayClassName:"question-tooltip",color:"#fff"}},[o("question-circle-outlined",{style:e.questionStyle})],1):e._e()]],2)])}),0)},An=[],Tn=L(wn,Cn,An,!1,null,"49759458",null,null);const Ln=Tn.exports,N=(t,e)=>So(t,e);const kn={name:"AttributeConfig",components:{PropsToForm:Ln},props:["searchValue","selectedComponent","selectedComponentType","renderUsedComponentList"],provide(){return{componentList:this.componentList,selectedComponent:this.selectedComponent,renderUsedComponentList:this.renderUsedComponentList}},data(){return{componentList:Tt,activeKey:[]}},emits:["change"],computed:{searchProps(){return G.reduce(we,(t,e,o)=>(Array.isArray(e)?e.forEach(n=>{N(n.label,this.searchValue)&&t.push(o)}):!Array.isArray(e)&&N(e.label,this.searchValue)&&t.push(o),t),[])},finalProps(){var o,n;const t=(o=this.selectedComponent)==null?void 0:o.type;let e={};if(t!=null){const a=((n=this.componentList)==null?void 0:n.find(r=>N(r.type,t)))||{},l=G.pick(this.selectedComponent||{},Object.keys(a||{}));e=D(D({},a),l)}return G.pick(e,this.searchProps)},detailPropsGroups(){return At.map(t=>{const{props:e,title:o,enableProps:n,onlyType:a,excludeType:l,showSwitch:r,dataVNoHas:h}=t,d=[];return e.forEach(u=>{var g,x;if(!(h&&isVue3))if(typeof u=="string")d.push(u);else if(N((g=this.selectedComponent)==null?void 0:g.type,u.onlyType)){debugger;d.push(u.value)}else N((x=this.selectedComponent)==null?void 0:x.type,u.excludeType)||d.push(u.value)}),{title:o,enableProps:typeof n=="string"&&this.selectedComponent?this.selectedComponent[n]:void 0,enablePropsName:n,onlyType:a,excludeType:l,showSwitch:r,props:G.pick(this.finalProps,d)}}).filter(({props:t})=>Object.keys(t).length>0)}},watch:{searchValue(t){},selectedComponent:{handler(t){if(t&&Object.keys(t).length===1){const e=this.componentList.find(i=>i.type==="ecanBar"),{id:o,name:n,keyName:a,width:l,height:r,position:h,top:d,left:u,zIndex:g,rotate:x,isShow:y,isRender:_,requestUrl:k,requestType:I,requestMethod:$,dataSetParam:ue,requestHeaders:Pe,isOpenRequestTimer:Y,isViewRedrawing:P,requestInterval:xe,requestSort:ce,requestParams:ee,events:C,dataType:v,scale:te,requestParamsMode:ye,customRequestParams:m}=e,s=Be(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(s)}},immediate:!0}},methods:{onSwitchChange(t,e){e!=null&&this.change({[e]:t})},onSwitchClick(t,e){e==null||e.stopPropagation()},isRenderForm(t,e){const{onlyType:o,excludeType:n}=t;return o==null&&n==null?!0:o?N(e,o):n?!N(e,n):!1},lowerCaseIncludes(t,e){return N(t,e)},change(...t){this.$emit("change",...t)}}};var In=function(){var e=this,o=e._self._c;return o("div",[o("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?o("a-collapse-panel",{key:String(a),attrs:{header:n.title},scopedSlots:e._u([{key:"extra",fn:function(){return[typeof n.enableProps=="boolean"||n.showSwitch?o("a-switch",{attrs:{checked:n.enableProps},on:{change:l=>e.onSwitchChange(l,n.enablePropsName),click:e.onSwitchClick}}):e._e()]},proxy:!0}],null,!0)},[o("props-to-form",{attrs:{props:n.props,disabled:typeof n.enableProps=="boolean"?!n.enableProps:!!n.showSwitch},on:{change:e.change}})],1):o("div",{staticClass:"props-to-form-wrapper"},[o("props-to-form",{attrs:{props:n.props},on:{change:e.change}})],1)]:e._e()]})],2)],1)},$n=[],Fn=L(kn,In,$n,!1,null,"a78be9fc",null,null);const gt=Fn.exports;window.VUE_VERSION="2";window.isVue3=!1;const Mn={install(t,e){t.component("ChartPanel",gt)}};exports.ChartPanel=gt;exports.default=Mn;
|