xt-element-ui 1.1.2 → 1.1.4
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/lib/css/2.9f53fb10.css +1 -0
- package/lib/css/3.f955b130.css +1 -0
- package/lib/css/4.04feac2c.css +1 -0
- package/lib/css/5.6a8558e0.css +1 -0
- package/lib/css/6.e474b334.css +1 -0
- package/lib/index.common.0.js +16448 -15696
- package/lib/index.common.2.js +298 -270
- package/lib/index.common.3.js +82 -54
- package/lib/index.common.4.js +519 -489
- package/lib/index.common.5.js +74 -46
- package/lib/index.common.6.js +76 -48
- package/lib/index.common.js +826 -308
- package/lib/index.css +1 -1
- package/lib/index.umd.0.js +16448 -15696
- package/lib/index.umd.2.js +298 -270
- package/lib/index.umd.3.js +82 -54
- package/lib/index.umd.4.js +519 -489
- package/lib/index.umd.5.js +74 -46
- package/lib/index.umd.6.js +76 -48
- package/lib/index.umd.js +832 -313
- package/lib/index.umd.min.0.js +3 -3
- package/lib/index.umd.min.2.js +1 -1
- package/lib/index.umd.min.3.js +1 -1
- package/lib/index.umd.min.4.js +1 -1
- package/lib/index.umd.min.5.js +1 -1
- package/lib/index.umd.min.6.js +1 -1
- package/lib/index.umd.min.js +1 -1
- package/package.json +2 -1
- package/src/components/ex-button/index.js +2 -0
- package/src/components/ex-button/index.vue +61 -0
- package/src/components/ex-button/style/index.scss +31 -0
- package/src/components/ex-card/index.js +7 -0
- package/src/components/ex-card/index.vue +150 -0
- package/src/components/ex-card/style/index.scss +69 -0
- package/src/components/{chart → ex-chart}/ExBar.vue +3 -0
- package/src/components/{chart → ex-chart}/ExLine.vue +3 -0
- package/src/components/{chart → ex-chart}/ExMulti.vue +5 -0
- package/src/components/{chart → ex-chart}/ExPie.vue +3 -0
- package/src/components/{chart → ex-chart}/ExTrend.vue +3 -0
- package/src/components/ex-chart/index.js +2 -0
- package/src/components/ex-chart/index.vue +134 -0
- package/src/components/{chart → ex-chart}/theme/dark.js +1 -1
- package/src/components/{chart → ex-chart}/utils.js +40 -12
- package/src/components/index.scss +13 -7
- package/src/components/{button → xt-button}/index.vue +1 -1
- package/src/components/{card-item → xt-card-item}/index.vue +1 -1
- package/src/components/{config-provider → xt-config-provider}/index.vue +66 -0
- package/src/components/{date-picker → xt-date-picker}/index.vue +1 -1
- package/src/components/{date-picker → xt-date-picker}/quarter.vue +4 -2
- package/src/components/{table → xt-table}/index.vue +48 -107
- package/src/config/element-registry.js +136 -0
- package/src/index.js +56 -32
- package/src/styles/theme/colors.scss +1 -0
- package/lib/css/2.3f7aa432.css +0 -1
- package/lib/css/3.ffcc175d.css +0 -1
- package/lib/css/4.9abd1f2b.css +0 -1
- package/lib/css/5.1a31ed8a.css +0 -1
- package/lib/css/6.c2d0d77e.css +0 -1
- package/src/components/chart/index.js +0 -2
- package/src/components/chart/index.vue +0 -51
- /package/src/components/{chart → ex-chart}/pieList.vue +0 -0
- /package/src/components/{chart → ex-chart}/theme/blue.js +0 -0
- /package/src/components/{chart → ex-chart}/theme/orange.js +0 -0
- /package/src/components/{chart → ex-chart}/theme/starry.js +0 -0
- /package/src/components/{chart → ex-chart}/theme/white.js +0 -0
- /package/src/components/{button → xt-button}/index.js +0 -0
- /package/src/components/{button → xt-button}/style/index.scss +0 -0
- /package/src/components/{card → xt-card}/index.js +0 -0
- /package/src/components/{card → xt-card}/index.vue +0 -0
- /package/src/components/{card → xt-card}/style/index.scss +0 -0
- /package/src/components/{card-item → xt-card-item}/index.js +0 -0
- /package/src/components/{card-item → xt-card-item}/style/index.scss +0 -0
- /package/src/components/{config-provider → xt-config-provider}/index.js +0 -0
- /package/src/components/{config-provider → xt-config-provider}/style/index.scss +0 -0
- /package/src/components/{date-picker → xt-date-picker}/SearchDate.vue +0 -0
- /package/src/components/{date-picker → xt-date-picker}/index.js +0 -0
- /package/src/components/{flex-box → xt-flex-box}/index.js +0 -0
- /package/src/components/{flex-box → xt-flex-box}/index.vue +0 -0
- /package/src/components/{flex-box → xt-flex-box}/style/index.scss +0 -0
- /package/src/components/{grid-box → xt-grid-box}/index.js +0 -0
- /package/src/components/{grid-box → xt-grid-box}/index.vue +0 -0
- /package/src/components/{input → xt-input}/index.js +0 -0
- /package/src/components/{input → xt-input}/index.vue +0 -0
- /package/src/components/{input → xt-input}/style/index.scss +0 -0
- /package/src/components/{layout → xt-layout}/BaseCollapse.vue +0 -0
- /package/src/components/{layout → xt-layout}/ExFieldset.vue +0 -0
- /package/src/components/{page → xt-page}/index.js +0 -0
- /package/src/components/{page → xt-page}/index.vue +0 -0
- /package/src/components/{select-tree → xt-select-tree}/index.js +0 -0
- /package/src/components/{select-tree → xt-select-tree}/index.vue +0 -0
- /package/src/components/{table → xt-table}/ExCell.vue +0 -0
- /package/src/components/{table → xt-table}/ExColumn.vue +0 -0
- /package/src/components/{table → xt-table}/index.js +0 -0
- /package/src/components/{table → xt-table}/processor.js +0 -0
- /package/src/components/{text → xt-text}/index.js +0 -0
- /package/src/components/{text → xt-text}/index.vue +0 -0
- /package/src/components/{text → xt-text}/style/index.scss +0 -0
- /package/src/components/{upload → xt-upload}/index.js +0 -0
- /package/src/components/{upload → xt-upload}/index.vue +0 -0
- /package/src/components/{upload → xt-upload}/preview.vue +0 -0
package/lib/index.umd.min.2.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]=("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]||[]).push([[2],{"0f70":function(e,t,o){},"202d":function(e,t,o){"use strict";var l=o("313e"),i={color:["#1890ff","#37c3a4","#29c0ce","#6480D7","#8cce6f","#3a5dca","#ffb74d"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333",fontSize:16},subtextStyle:{color:"#666666",fontSize:12}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},xAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"},show:!1}},yAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#DFE9EE"}}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#333333"}},tooltip:{borderWidth:1,backgroundColor:"#ffffff",textStyle:{color:"#333333"},trigger:"axis"}},r={color:["#0de7ff","#a782ff","#fcdd60","#0de7ff","#ffc5a1","#6291ae","#13ce66"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},a={color:["#2CDEB3","#A17EE6","#E57E40","#409EFF"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},n={color:["#1685a9","#21a675","#1bd1a5","#8c4356","#0dafc6","#4b5cc4","#758a99","#cca4e3","#205277","#d9b611","#ff8c31","#9d2933","#0288c5","#44cef6"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},s={color:["#e69419","#A5b4da","#F8792C","#97bfb4","#de747b","#d6bac0","#e62737","#f35969","#f1ccb0","#b7394e","#fe9c1c2"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{color:"#e69419"},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}};const c={default:i,white:i,dark:r,blue:a,starry:n,orange:s};for(const b in c)l["b"](b,c[b]);const f={small:{title:14,subtitle:11,legend:11,axisLabel:10,tooltip:11,label:11},medium:{title:16,subtitle:12,legend:12,axisLabel:12,tooltip:12,label:12},large:{title:18,subtitle:14,legend:14,axisLabel:14,tooltip:14,label:14}};function d(){}d.currentTheme="default",d.currentSize="medium",d.inverse=!1,d.baseOption={backgroundColor:"transparent",tooltip:{trigger:"axis",borderWidth:1},legend:{right:20,top:0,show:!0,textStyle:{fontSize:12}},grid:{top:"25%",left:"40",right:"15",bottom:"40"},xAxis:{type:"category",boundaryGap:!1,axisTick:{show:!0,length:4},axisLabel:{fontSize:12,interval:0,formatter:function(e){return!this.reverse&&this.longLable?e.replace(new RegExp(`(.{${this.longLableSplitNum}})`,"g"),"$1\n"):e}}},yAxis:{type:"value",axisTick:{show:!1},min:null,max:null,axisLabel:{show:!1},splitLine:{lineStyle:{type:"dashed",width:1}}}},d.chartInstanceList=[],d.mergeOptions=function(e,t){return Object.assign({},this.baseOption,e,t)},d.applyFontSize=function(e,t){const o=f[t]||f.medium,l=JSON.parse(JSON.stringify(e));return l.title&&l.title.textStyle&&(l.title.textStyle.fontSize=o.title),l.title&&l.title.subtextStyle&&(l.title.subtextStyle.fontSize=o.subtitle),l.legend&&l.legend.textStyle&&(l.legend.textStyle.fontSize=o.legend),l.tooltip&&l.tooltip.textStyle&&(l.tooltip.textStyle.fontSize=o.tooltip),l.pie&&l.pie.label&&"object"===typeof l.pie.label&&(l.pie.label.fontSize=o.label),l.radar&&l.radar.indicator&&"object"===typeof l.radar.indicator&&l.radar.indicator.textStyle&&(l.radar.indicator.textStyle.fontSize=o.label),l.map&&l.map.label&&"object"===typeof l.map.label&&(l.map.label.fontSize=o.label),l},d.init=function(e,t,o,i){t=t||"default",i=i||"medium",o=o||{};const r=this.currentTheme||t,a=this.currentSize||i;this.currentTheme=r,this.currentSize=a;let n=c[r];n=this.applyFontSize(n,a);const s=this.mergeOptions(n,o),f=l["a"](e,r);return f.setOption(s,!0),this.chartInstanceList.push({dom:e,chart:f,customOption:o,size:a}),this.bindResize(f),f},d.changeSingleTheme=function(e,t,o,i){if(!e||!t)return;o=o||{},i=i||"default",this.currentTheme=i,t.dispose();const r=l["a"](e,i,o),a=this.chartInstanceList.find((function(t){return t.dom===e}));return a&&(a.chart=r),r},d.changeAllTheme=function(e){e&&(this.currentTheme=e,this.chartInstanceList.forEach((function(t){const o=t.dom,i=t.chart,r=t.customOption;i&&i.dispose();const a=l["a"](o,e),n=c[e],s=d.mergeOptions(n,r);a.setOption(s,!0),t.chart=a,d.bindResize(a)})))},d.bindResize=function(e){e&&!e.resizeLocked&&(window.addEventListener("resize",(function(){e.resize()})),e._resizeLocked=!0)},d.destroy=function(e){e&&e.dispose(),this.chartInstanceList=this.chartInstanceList.filter((function(t){return t.chart!==e}))},d.destroyAll=function(){this.chartInstanceList.forEach((function(e){e.chart&&e.chart.dispose()})),this.chartInstanceList=[]};t["a"]=d},"51a0":function(e,t,o){"use strict";o("0f70")},5234:function(e,t,o){"use strict";o.r(t);var l=function(){var e=this,t=e._self._c;return t("div",{ref:"barchart",staticClass:"bar-box"})},i=[],r=o("202d"),a={name:"XtBar",props:{chartData:{type:Array,default:()=>[{value:65,name:"吴十"},{value:70,name:"唐九"},{value:73,name:"钱一"},{value:78,name:"孙二"},{value:88,name:"刘八"},{value:93,name:"王七"},{value:99,name:"赵六"},{value:103,name:"宋五"},{value:113,name:"李四"},{value:125,name:"张三"}]},theme:{},size:{type:String,default:"medium"},markPoint:{type:Boolean,default:!1},energyType:{type:String,default:""},showZoom:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},longLable:{type:Boolean,default:!1},longLableSplitNum:{type:Number,default:1},longLablePx:{type:Number,default:150},splitNumber:{type:Number,default:5}},data(){return{myChart:null,name:"数量"}},watch:{chartData:{deep:!0,handler(e,t){const o=this;o.initChart()}},energyType:{deep:!0,handler(e,t){const o=this;"kW.h"==e?o.name="用电量":"m³"==e&&(o.name="用气量"),o.initChart()}}},mounted(){this.initChart()},methods:{initChart(){const e=this,t={type:"category",inverse:this.reverse,axisLabel:{interval:0,formatter:function(t){return!e.reverse&&e.longLable?t.replace(new RegExp(`(.{${e.longLableSplitNum}})`,"g"),"$1\n"):t}},data:e.chartData.map(e=>e.name)},o={type:"value",splitLine:{lineStyle:{type:"dashed"}},name:e.energyType,axisTick:{inside:!0},min:0,splitNumber:e.splitNumber,max:function(t){return Math.ceil(t.max/e.splitNumber)*e.splitNumber},scale:!0,axisLabel:{margin:2,formatter:function(e,t){return e>=1e4&&e<1e7?e=e/1e4+"万":e>=1e7&&(e=e/1e7+"千万"),e}}},l={legend:{right:20,top:0,textStyle:{fontSize:12}},tooltip:{borderWidth:1,trigger:"item"},grid:{top:"10",left:40+(this.reverse&&this.longLable?e.longLablePx:0),right:"10",bottom:(e.showZoom?50:20)+(!e.reverse&&e.longLable?e.longLablePx:0),containLabel:!0},xAxis:this.reverse?o:t,yAxis:this.reverse?t:o,series:[{name:e.name,type:"bar",markPoint:{data:[{type:"min",name:"Min"},{type:"max",name:"Max"}]},avoidLabelOverlap:!0,data:e.chartData.map((e,t)=>{const{name:o,value:l}=e;return{value:l,name:o,tooltip:{borderWidth:1}}})}],dataZoom:e.showZoom?[{height:20,bottom:0}]:[]};this.markPoint||this.$delete(l.series[0],"markPoint"),this.myChart=r["a"].init(e.$refs.barchart,this.theme,l,this.size)}}},n=a,s=(o("51a0"),o("2877")),c=Object(s["a"])(n,l,i,!1,null,"730aa873",null);t["default"]=c.exports}}]);
|
|
1
|
+
(("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]=("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]||[]).push([[2],{"04dd":function(e,t,o){},"1b46":function(e,t,o){"use strict";o.r(t);var l=function(){var e=this,t=e._self._c;return t("div",{ref:"barchart",staticClass:"bar-box"})},i=[],r=o("22f5"),a={name:"XtBar",props:{chartData:{type:Array,default:()=>[{value:65,name:"吴十"},{value:70,name:"唐九"},{value:73,name:"钱一"},{value:78,name:"孙二"},{value:88,name:"刘八"},{value:93,name:"王七"},{value:99,name:"赵六"},{value:103,name:"宋五"},{value:113,name:"李四"},{value:125,name:"张三"}]},theme:{},size:{type:String,default:"medium"},markPoint:{type:Boolean,default:!1},energyType:{type:String,default:""},showZoom:{type:Boolean,default:!1},reverse:{type:Boolean,default:!1},longLable:{type:Boolean,default:!1},longLableSplitNum:{type:Number,default:1},longLablePx:{type:Number,default:150},splitNumber:{type:Number,default:5}},data(){return{myChart:null,name:"数量"}},watch:{chartData:{deep:!0,handler(e,t){const o=this;o.initChart()}},energyType:{deep:!0,handler(e,t){const o=this;"kW.h"==e?o.name="用电量":"m³"==e&&(o.name="用气量"),o.initChart()}},theme(e){this.initChart()}},mounted(){this.initChart()},methods:{initChart(){const e=this,t={type:"category",inverse:this.reverse,axisLabel:{interval:0,formatter:function(t){return!e.reverse&&e.longLable?t.replace(new RegExp(`(.{${e.longLableSplitNum}})`,"g"),"$1\n"):t}},data:e.chartData.map(e=>e.name)},o={type:"value",splitLine:{lineStyle:{type:"dashed"}},name:e.energyType,axisTick:{inside:!0},min:0,splitNumber:e.splitNumber,max:function(t){return Math.ceil(t.max/e.splitNumber)*e.splitNumber},scale:!0,axisLabel:{margin:2,formatter:function(e,t){return e>=1e4&&e<1e7?e=e/1e4+"万":e>=1e7&&(e=e/1e7+"千万"),e}}},l={legend:{right:20,top:0,textStyle:{fontSize:12}},tooltip:{borderWidth:1,trigger:"item"},grid:{top:"10",left:40+(this.reverse&&this.longLable?e.longLablePx:0),right:"10",bottom:(e.showZoom?50:20)+(!e.reverse&&e.longLable?e.longLablePx:0),containLabel:!0},xAxis:this.reverse?o:t,yAxis:this.reverse?t:o,series:[{name:e.name,type:"bar",markPoint:{data:[{type:"min",name:"Min"},{type:"max",name:"Max"}]},avoidLabelOverlap:!0,data:e.chartData.map((e,t)=>{const{name:o,value:l}=e;return{value:l,name:o,tooltip:{borderWidth:1}}})}],dataZoom:e.showZoom?[{height:20,bottom:0}]:[]};this.markPoint||this.$delete(l.series[0],"markPoint"),this.myChart=r["a"].init(e.$refs.barchart,this.theme,l,this.size)}}},n=a,s=(o("9ea1"),o("2877")),c=Object(s["a"])(n,l,i,!1,null,"10acd2fc",null);t["default"]=c.exports},"22f5":function(e,t,o){"use strict";var l={color:["#1890ff","#37c3a4","#29c0ce","#6480D7","#8cce6f","#3a5dca","#ffb74d"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333",fontSize:16},subtextStyle:{color:"#666666",fontSize:12}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},xAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"},show:!1}},yAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#DFE9EE"}}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#333333"}},tooltip:{borderWidth:1,backgroundColor:"#ffffff",textStyle:{color:"#333333"},trigger:"axis"}},i={color:["#0de7ff","#a782ff","#fcdd60","#0de7ff","#ffc5a1","#6291ae","#13ce66"],backgroundColor:"transparent",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},r={color:["#2CDEB3","#A17EE6","#E57E40","#409EFF"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},a={color:["#1685a9","#21a675","#1bd1a5","#8c4356","#0dafc6","#4b5cc4","#758a99","#cca4e3","#205277","#d9b611","#ff8c31","#9d2933","#0288c5","#44cef6"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},n={color:["#e69419","#A5b4da","#F8792C","#97bfb4","#de747b","#d6bac0","#e62737","#f35969","#f1ccb0","#b7394e","#fe9c1c2"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{color:"#e69419"},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}};const s={default:l,white:l,dark:i,blue:r,starry:a,orange:n};let c=null;function f(){if(!c&&"undefined"!==typeof window)try{c=o("313e");for(const e in s)c.registerTheme(e,s[e])}catch(e){console.warn("[ExChart] echarts 加载失败:",e.message)}return c}const d={small:{title:14,subtitle:11,legend:11,axisLabel:10,tooltip:11,label:11},medium:{title:16,subtitle:12,legend:12,axisLabel:12,tooltip:12,label:12},large:{title:18,subtitle:14,legend:14,axisLabel:14,tooltip:14,label:14}};function u(){}u.currentTheme="default",u.currentSize="medium",u.inverse=!1,u.baseOption={backgroundColor:"transparent",tooltip:{trigger:"axis",borderWidth:1},legend:{right:20,top:0,show:!0,textStyle:{fontSize:12}},grid:{top:"25%",left:"40",right:"15",bottom:"40"},xAxis:{type:"category",boundaryGap:!1,axisTick:{show:!0,length:4},axisLabel:{fontSize:12,interval:0,formatter:function(e){return!this.reverse&&this.longLable?e.replace(new RegExp(`(.{${this.longLableSplitNum}})`,"g"),"$1\n"):e}}},yAxis:{type:"value",axisTick:{show:!1},min:null,max:null,axisLabel:{show:!1},splitLine:{lineStyle:{type:"dashed",width:1}}}},u.chartInstanceList=[],u.mergeOptions=function(e,t){return Object.assign({},this.baseOption,e,t)},u.applyFontSize=function(e,t){const o=d[t]||d.medium,l=JSON.parse(JSON.stringify(e));return l.title&&l.title.textStyle&&(l.title.textStyle.fontSize=o.title),l.title&&l.title.subtextStyle&&(l.title.subtextStyle.fontSize=o.subtitle),l.legend&&l.legend.textStyle&&(l.legend.textStyle.fontSize=o.legend),l.tooltip&&l.tooltip.textStyle&&(l.tooltip.textStyle.fontSize=o.tooltip),l.pie&&l.pie.label&&"object"===typeof l.pie.label&&(l.pie.label.fontSize=o.label),l.radar&&l.radar.indicator&&"object"===typeof l.radar.indicator&&l.radar.indicator.textStyle&&(l.radar.indicator.textStyle.fontSize=o.label),l.map&&l.map.label&&"object"===typeof l.map.label&&(l.map.label.fontSize=o.label),l},u.init=function(e,t,o,l){const i=f();if(!i||!e)return null;t=t||"default",l=l||"medium",o=o||{};const r=this.currentTheme||t,a=this.currentSize||l;this.currentTheme=r,this.currentSize=a;let n=s[r];n=this.applyFontSize(n,a);const c=this.mergeOptions(n,o),d=i.init(e,r);return d.setOption(c,!0),this.chartInstanceList.push({dom:e,chart:d,customOption:o,size:a}),this.bindResize(d),d},u.changeSingleTheme=function(e,t,o,l){const i=f();if(!i||!e||!t)return;o=o||{},l=l||"default",this.currentTheme=l,t.dispose();const r=i.init(e,l,o),a=this.chartInstanceList.find((function(t){return t.dom===e}));return a&&(a.chart=r),r},u.changeAllTheme=function(e,t){const o=f();o&&e&&(this.currentTheme=e,t&&(this.currentSize=t),this.chartInstanceList.forEach((function(t){const l=t.dom,i=t.chart,r=t.customOption,a=t.size||u.currentSize;i&&i.dispose();const n=o.init(l,e);let c=s[e];c=u.applyFontSize(c,a);const f=u.mergeOptions(c,r);n.setOption(f,!0),t.chart=n,t.size=a,u.bindResize(n)})))},u.bindResize=function(e){e&&!e.resizeLocked&&(window.addEventListener("resize",(function(){e.resize()})),e._resizeLocked=!0)},u.destroy=function(e){e&&e.dispose(),this.chartInstanceList=this.chartInstanceList.filter((function(t){return t.chart!==e}))},u.destroyAll=function(){this.chartInstanceList.forEach((function(e){e.chart&&e.chart.dispose()})),this.chartInstanceList=[]};t["a"]=u},"9ea1":function(e,t,o){"use strict";o("04dd")}}]);
|
package/lib/index.umd.min.3.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]=("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]||[]).push([[3],{"
|
|
1
|
+
(("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]=("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]||[]).push([[3],{"22f5":function(e,t,o){"use strict";var l={color:["#1890ff","#37c3a4","#29c0ce","#6480D7","#8cce6f","#3a5dca","#ffb74d"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333",fontSize:16},subtextStyle:{color:"#666666",fontSize:12}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},xAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"},show:!1}},yAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#DFE9EE"}}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#333333"}},tooltip:{borderWidth:1,backgroundColor:"#ffffff",textStyle:{color:"#333333"},trigger:"axis"}},i={color:["#0de7ff","#a782ff","#fcdd60","#0de7ff","#ffc5a1","#6291ae","#13ce66"],backgroundColor:"transparent",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},r={color:["#2CDEB3","#A17EE6","#E57E40","#409EFF"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},a={color:["#1685a9","#21a675","#1bd1a5","#8c4356","#0dafc6","#4b5cc4","#758a99","#cca4e3","#205277","#d9b611","#ff8c31","#9d2933","#0288c5","#44cef6"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},n={color:["#e69419","#A5b4da","#F8792C","#97bfb4","#de747b","#d6bac0","#e62737","#f35969","#f1ccb0","#b7394e","#fe9c1c2"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{color:"#e69419"},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}};const s={default:l,white:l,dark:i,blue:r,starry:a,orange:n};let c=null;function f(){if(!c&&"undefined"!==typeof window)try{c=o("313e");for(const e in s)c.registerTheme(e,s[e])}catch(e){console.warn("[ExChart] echarts 加载失败:",e.message)}return c}const d={small:{title:14,subtitle:11,legend:11,axisLabel:10,tooltip:11,label:11},medium:{title:16,subtitle:12,legend:12,axisLabel:12,tooltip:12,label:12},large:{title:18,subtitle:14,legend:14,axisLabel:14,tooltip:14,label:14}};function y(){}y.currentTheme="default",y.currentSize="medium",y.inverse=!1,y.baseOption={backgroundColor:"transparent",tooltip:{trigger:"axis",borderWidth:1},legend:{right:20,top:0,show:!0,textStyle:{fontSize:12}},grid:{top:"25%",left:"40",right:"15",bottom:"40"},xAxis:{type:"category",boundaryGap:!1,axisTick:{show:!0,length:4},axisLabel:{fontSize:12,interval:0,formatter:function(e){return!this.reverse&&this.longLable?e.replace(new RegExp(`(.{${this.longLableSplitNum}})`,"g"),"$1\n"):e}}},yAxis:{type:"value",axisTick:{show:!1},min:null,max:null,axisLabel:{show:!1},splitLine:{lineStyle:{type:"dashed",width:1}}}},y.chartInstanceList=[],y.mergeOptions=function(e,t){return Object.assign({},this.baseOption,e,t)},y.applyFontSize=function(e,t){const o=d[t]||d.medium,l=JSON.parse(JSON.stringify(e));return l.title&&l.title.textStyle&&(l.title.textStyle.fontSize=o.title),l.title&&l.title.subtextStyle&&(l.title.subtextStyle.fontSize=o.subtitle),l.legend&&l.legend.textStyle&&(l.legend.textStyle.fontSize=o.legend),l.tooltip&&l.tooltip.textStyle&&(l.tooltip.textStyle.fontSize=o.tooltip),l.pie&&l.pie.label&&"object"===typeof l.pie.label&&(l.pie.label.fontSize=o.label),l.radar&&l.radar.indicator&&"object"===typeof l.radar.indicator&&l.radar.indicator.textStyle&&(l.radar.indicator.textStyle.fontSize=o.label),l.map&&l.map.label&&"object"===typeof l.map.label&&(l.map.label.fontSize=o.label),l},y.init=function(e,t,o,l){const i=f();if(!i||!e)return null;t=t||"default",l=l||"medium",o=o||{};const r=this.currentTheme||t,a=this.currentSize||l;this.currentTheme=r,this.currentSize=a;let n=s[r];n=this.applyFontSize(n,a);const c=this.mergeOptions(n,o),d=i.init(e,r);return d.setOption(c,!0),this.chartInstanceList.push({dom:e,chart:d,customOption:o,size:a}),this.bindResize(d),d},y.changeSingleTheme=function(e,t,o,l){const i=f();if(!i||!e||!t)return;o=o||{},l=l||"default",this.currentTheme=l,t.dispose();const r=i.init(e,l,o),a=this.chartInstanceList.find((function(t){return t.dom===e}));return a&&(a.chart=r),r},y.changeAllTheme=function(e,t){const o=f();o&&e&&(this.currentTheme=e,t&&(this.currentSize=t),this.chartInstanceList.forEach((function(t){const l=t.dom,i=t.chart,r=t.customOption,a=t.size||y.currentSize;i&&i.dispose();const n=o.init(l,e);let c=s[e];c=y.applyFontSize(c,a);const f=y.mergeOptions(c,r);n.setOption(f,!0),t.chart=n,t.size=a,y.bindResize(n)})))},y.bindResize=function(e){e&&!e.resizeLocked&&(window.addEventListener("resize",(function(){e.resize()})),e._resizeLocked=!0)},y.destroy=function(e){e&&e.dispose(),this.chartInstanceList=this.chartInstanceList.filter((function(t){return t.chart!==e}))},y.destroyAll=function(){this.chartInstanceList.forEach((function(e){e.chart&&e.chart.dispose()})),this.chartInstanceList=[]};t["a"]=y},a6ba:function(e,t,o){"use strict";o.r(t);var l=function(){var e=this,t=e._self._c;return t("div",{ref:"linechart",staticClass:"line-box"})},i=[],r=o("22f5"),a={name:"XtLine",props:{isDark:{type:Boolean,default:!1},theme:{},size:{type:String,default:"medium"},chartData:{type:Array,default:()=>[{value:53,name:"张三"},{value:10,name:"李四"},{value:60,name:"宋五"}]},isArea:{type:Boolean,default:!1},energyType:{type:String,default:""},intervalvalue:{type:Number,default:0}},data(){return{myChart:null}},watch:{chartData:{deep:!0,handler(e,t){const o=this;o.initChart()}},energyType:{deep:!0,handler(e,t){const o=this;o.initChart()}},theme(e){this.initChart()}},mounted(){this.initChart()},methods:{initChart(){console.log(this.intervalvalue);const e=this,t={animationDuration:500,grid:{top:"18%",left:"30",right:"30",bottom:"20"},xAxis:[{type:"category",splitLine:{show:!0,lineStyle:{type:"dashed"}},axisLabel:{interval:this.intervalvalue},boundaryGap:!1,data:e.chartData.map(e=>e.name)}],yAxis:{type:"value",axisLine:{show:!1,lineStyle:{}},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}},name:e.energyType,scale:!0,axisLabel:{margin:2,formatter:function(e,t){return e>=1e4&&e<1e7?e=Math.floor(e/1e4)+"万":e>=1e7&&(e=Math.floor(e/1e7)+"千万"),e}}},series:[{type:"line",symbol:"circle",areaStyle:e.isArea?{}:null,smooth:!0,avoidLabelOverlap:!0,data:e.chartData.map((e,t)=>e.value)}]};this.myChart=r["a"].init(e.$refs.linechart,this.theme,t,this.size)}}},n=a,s=(o("f09f"),o("2877")),c=Object(s["a"])(n,l,i,!1,null,"386a9c5d",null);t["default"]=c.exports},b599:function(e,t,o){},f09f:function(e,t,o){"use strict";o("b599")}}]);
|
package/lib/index.umd.min.4.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]=("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]||[]).push([[4],{"202d":function(e,t,l){"use strict";var o=l("313e"),a={color:["#1890ff","#37c3a4","#29c0ce","#6480D7","#8cce6f","#3a5dca","#ffb74d"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333",fontSize:16},subtextStyle:{color:"#666666",fontSize:12}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},xAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"},show:!1}},yAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#DFE9EE"}}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#333333"}},tooltip:{borderWidth:1,backgroundColor:"#ffffff",textStyle:{color:"#333333"},trigger:"axis"}},i={color:["#0de7ff","#a782ff","#fcdd60","#0de7ff","#ffc5a1","#6291ae","#13ce66"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},r={color:["#2CDEB3","#A17EE6","#E57E40","#409EFF"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},n={color:["#1685a9","#21a675","#1bd1a5","#8c4356","#0dafc6","#4b5cc4","#758a99","#cca4e3","#205277","#d9b611","#ff8c31","#9d2933","#0288c5","#44cef6"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},s={color:["#e69419","#A5b4da","#F8792C","#97bfb4","#de747b","#d6bac0","#e62737","#f35969","#f1ccb0","#b7394e","#fe9c1c2"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{color:"#e69419"},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}};const c={default:a,white:a,dark:i,blue:r,starry:n,orange:s};for(const b in c)o["b"](b,c[b]);const f={small:{title:14,subtitle:11,legend:11,axisLabel:10,tooltip:11,label:11},medium:{title:16,subtitle:12,legend:12,axisLabel:12,tooltip:12,label:12},large:{title:18,subtitle:14,legend:14,axisLabel:14,tooltip:14,label:14}};function d(){}d.currentTheme="default",d.currentSize="medium",d.inverse=!1,d.baseOption={backgroundColor:"transparent",tooltip:{trigger:"axis",borderWidth:1},legend:{right:20,top:0,show:!0,textStyle:{fontSize:12}},grid:{top:"25%",left:"40",right:"15",bottom:"40"},xAxis:{type:"category",boundaryGap:!1,axisTick:{show:!0,length:4},axisLabel:{fontSize:12,interval:0,formatter:function(e){return!this.reverse&&this.longLable?e.replace(new RegExp(`(.{${this.longLableSplitNum}})`,"g"),"$1\n"):e}}},yAxis:{type:"value",axisTick:{show:!1},min:null,max:null,axisLabel:{show:!1},splitLine:{lineStyle:{type:"dashed",width:1}}}},d.chartInstanceList=[],d.mergeOptions=function(e,t){return Object.assign({},this.baseOption,e,t)},d.applyFontSize=function(e,t){const l=f[t]||f.medium,o=JSON.parse(JSON.stringify(e));return o.title&&o.title.textStyle&&(o.title.textStyle.fontSize=l.title),o.title&&o.title.subtextStyle&&(o.title.subtextStyle.fontSize=l.subtitle),o.legend&&o.legend.textStyle&&(o.legend.textStyle.fontSize=l.legend),o.tooltip&&o.tooltip.textStyle&&(o.tooltip.textStyle.fontSize=l.tooltip),o.pie&&o.pie.label&&"object"===typeof o.pie.label&&(o.pie.label.fontSize=l.label),o.radar&&o.radar.indicator&&"object"===typeof o.radar.indicator&&o.radar.indicator.textStyle&&(o.radar.indicator.textStyle.fontSize=l.label),o.map&&o.map.label&&"object"===typeof o.map.label&&(o.map.label.fontSize=l.label),o},d.init=function(e,t,l,a){t=t||"default",a=a||"medium",l=l||{};const i=this.currentTheme||t,r=this.currentSize||a;this.currentTheme=i,this.currentSize=r;let n=c[i];n=this.applyFontSize(n,r);const s=this.mergeOptions(n,l),f=o["a"](e,i);return f.setOption(s,!0),this.chartInstanceList.push({dom:e,chart:f,customOption:l,size:r}),this.bindResize(f),f},d.changeSingleTheme=function(e,t,l,a){if(!e||!t)return;l=l||{},a=a||"default",this.currentTheme=a,t.dispose();const i=o["a"](e,a,l),r=this.chartInstanceList.find((function(t){return t.dom===e}));return r&&(r.chart=i),i},d.changeAllTheme=function(e){e&&(this.currentTheme=e,this.chartInstanceList.forEach((function(t){const l=t.dom,a=t.chart,i=t.customOption;a&&a.dispose();const r=o["a"](l,e),n=c[e],s=d.mergeOptions(n,i);r.setOption(s,!0),t.chart=r,d.bindResize(r)})))},d.bindResize=function(e){e&&!e.resizeLocked&&(window.addEventListener("resize",(function(){e.resize()})),e._resizeLocked=!0)},d.destroy=function(e){e&&e.dispose(),this.chartInstanceList=this.chartInstanceList.filter((function(t){return t.chart!==e}))},d.destroyAll=function(){this.chartInstanceList.forEach((function(e){e.chart&&e.chart.dispose()})),this.chartInstanceList=[]};t["a"]=d},"49c9":function(e,t,l){"use strict";l.r(t);var o=function(){var e=this,t=e._self._c;return t("div",{ref:"multilinechart",staticClass:"multiline-box"})},a=[],i=l("202d"),r={name:"XtMulti",props:{isDark:{type:Boolean,default:!1},theme:{},size:{type:String,default:"medium"},config:{type:Object,default(){return{interval:0,rotate:0,gridbottom:40,isShowthreshold:!1}}},chartData:{type:Array,default:()=>[{label:"入户数",data:[{label:"01月",value:980},{label:"02月",value:806},{label:"03月",value:930},{label:"04月",value:804},{label:"05月",value:750},{label:"06月",value:660},{label:"07月",value:780},{label:"08月",value:630},{label:"09月",value:806},{label:"10月",value:950},{label:"11月",value:810},{label:"12月",value:703}]},{label:"隐患数",data:[{label:"01月",value:200},{label:"02月",value:120},{label:"03月",value:110},{label:"04月",value:109},{label:"05月",value:108},{label:"06月",value:150},{label:"07月",value:126},{label:"08月",value:130},{label:"09月",value:108},{label:"10月",value:109},{label:"11月",value:140},{label:"12月",value:106}]},{label:"整改数",data:[{label:"01月",value:25},{label:"02月",value:19},{label:"03月",value:34},{label:"04月",value:12},{label:"05月",value:16},{label:"06月",value:20},{label:"07月",value:19},{label:"08月",value:18},{label:"09月",value:14},{label:"10月",value:12},{label:"11月",value:11},{label:"12月",value:16}]}]},colors:{type:Array,default:()=>[]},selectedNew:{type:Object,default:null},energyType:{type:[String,Array],default:""}},data(){return{myChart:null}},watch:{chartData:{deep:!0,handler(e,t){const l=this;this.myChart&&this.myChart.dispose(),this.myChart=null,l.initChart()}},energyType:{deep:!0,handler(e,t){if(e&&t&&e.toString()==t.toString())return;this.myChart&&this.myChart.dispose(),this.myChart=null;const l=this;l.initChart()}}},mounted(){this.initChart()},methods:{initChart(){const e=this,t=e=>({type:"value",name:e,axisLine:{show:!1,lineStyle:{}},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}},axisLabel:{formatter:function(e,t){return e>=1e4&&e<1e7?e=Math.floor(e/1e4)+"万":e>=1e7&&(e=Math.floor(e/1e7)+"千万"),e}}}),l={legend:{right:20,top:0,show:!0,data:e.chartData.map(e=>e.label),selectedMode:"multiple",selected:e.selectedNew,textStyle:{fontSize:12}},tooltip:{borderWidth:1,trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"25%",left:"40",right:"15",bottom:null==this.config.gridbottom?20:this.config.gridbottom},xAxis:{type:"category",axisLabel:{rotate:this.config.rotate},data:e.chartData&&e.chartData.length?e.chartData[0].data.map(e=>e.label):[]},yAxis:"string"==typeof e.energyType?t(e.energyType):this.energyType.map(e=>t(e)),dataZoom:[{type:"inside",xAxisIndex:[0],start:1,end:100}],series:this.getSeriesData()};this.myChart=i["a"].init(e.$refs.multilinechart,this.theme,l,this.size)},getSeriesData(){const e=this,t=[];return e.chartData.map((e,l)=>{e.data.some(e=>!e.value||"--"==e.value),e.label,e.data.map(e=>e.value);const o={animation:!0,name:e.label,type:e.type||"bar",avoidLabelOverlap:!0,data:e.data.map(e=>e.value)};t.push(o)}),t}}},n=r,s=(l("8d67"),l("2877")),c=Object(s["a"])(n,o,a,!1,null,"6f25e9c5",null);t["default"]=c.exports},"8d67":function(e,t,l){"use strict";l("d12c")},d12c:function(e,t,l){}}]);
|
|
1
|
+
(("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]=("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]||[]).push([[4],{"20f2":function(e,t,l){"use strict";l.r(t);var o=function(){var e=this,t=e._self._c;return t("div",{ref:"multilinechart",staticClass:"multiline-box"})},i=[],a=l("22f5"),r={name:"XtMulti",props:{isDark:{type:Boolean,default:!1},theme:{},size:{type:String,default:"medium"},config:{type:Object,default(){return{interval:0,rotate:0,gridbottom:40,isShowthreshold:!1}}},chartData:{type:Array,default:()=>[{label:"入户数",data:[{label:"01月",value:980},{label:"02月",value:806},{label:"03月",value:930},{label:"04月",value:804},{label:"05月",value:750},{label:"06月",value:660},{label:"07月",value:780},{label:"08月",value:630},{label:"09月",value:806},{label:"10月",value:950},{label:"11月",value:810},{label:"12月",value:703}]},{label:"隐患数",data:[{label:"01月",value:200},{label:"02月",value:120},{label:"03月",value:110},{label:"04月",value:109},{label:"05月",value:108},{label:"06月",value:150},{label:"07月",value:126},{label:"08月",value:130},{label:"09月",value:108},{label:"10月",value:109},{label:"11月",value:140},{label:"12月",value:106}]},{label:"整改数",data:[{label:"01月",value:25},{label:"02月",value:19},{label:"03月",value:34},{label:"04月",value:12},{label:"05月",value:16},{label:"06月",value:20},{label:"07月",value:19},{label:"08月",value:18},{label:"09月",value:14},{label:"10月",value:12},{label:"11月",value:11},{label:"12月",value:16}]}]},colors:{type:Array,default:()=>[]},selectedNew:{type:Object,default:null},energyType:{type:[String,Array],default:""}},data(){return{myChart:null}},watch:{chartData:{deep:!0,handler(e,t){const l=this;this.myChart&&this.myChart.dispose(),this.myChart=null,l.initChart()}},energyType:{deep:!0,handler(e,t){if(e&&t&&e.toString()==t.toString())return;this.myChart&&this.myChart.dispose(),this.myChart=null;const l=this;l.initChart()}},theme(e){this.myChart&&this.myChart.dispose(),this.myChart=null,this.initChart()}},mounted(){this.initChart()},methods:{initChart(){const e=this,t=e=>({type:"value",name:e,axisLine:{show:!1,lineStyle:{}},axisTick:{show:!1},splitLine:{lineStyle:{type:"dashed"}},axisLabel:{formatter:function(e,t){return e>=1e4&&e<1e7?e=Math.floor(e/1e4)+"万":e>=1e7&&(e=Math.floor(e/1e7)+"千万"),e}}}),l={legend:{right:20,top:0,show:!0,data:e.chartData.map(e=>e.label),selectedMode:"multiple",selected:e.selectedNew,textStyle:{fontSize:12}},tooltip:{borderWidth:1,trigger:"axis",axisPointer:{type:"shadow"}},grid:{top:"25%",left:"40",right:"15",bottom:null==this.config.gridbottom?20:this.config.gridbottom},xAxis:{type:"category",axisLabel:{rotate:this.config.rotate},data:e.chartData&&e.chartData.length?e.chartData[0].data.map(e=>e.label):[]},yAxis:"string"==typeof e.energyType?t(e.energyType):this.energyType.map(e=>t(e)),dataZoom:[{type:"inside",xAxisIndex:[0],start:1,end:100}],series:this.getSeriesData()};this.myChart=a["a"].init(e.$refs.multilinechart,this.theme,l,this.size)},getSeriesData(){const e=this,t=[];return e.chartData.map((e,l)=>{e.data.some(e=>!e.value||"--"==e.value),e.label,e.data.map(e=>e.value);const o={animation:!0,name:e.label,type:e.type||"bar",avoidLabelOverlap:!0,data:e.data.map(e=>e.value)};t.push(o)}),t}}},n=r,s=(l("a68f"),l("2877")),c=Object(s["a"])(n,o,i,!1,null,"18661424",null);t["default"]=c.exports},"22f5":function(e,t,l){"use strict";var o={color:["#1890ff","#37c3a4","#29c0ce","#6480D7","#8cce6f","#3a5dca","#ffb74d"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333",fontSize:16},subtextStyle:{color:"#666666",fontSize:12}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},xAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"},show:!1}},yAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#DFE9EE"}}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#333333"}},tooltip:{borderWidth:1,backgroundColor:"#ffffff",textStyle:{color:"#333333"},trigger:"axis"}},i={color:["#0de7ff","#a782ff","#fcdd60","#0de7ff","#ffc5a1","#6291ae","#13ce66"],backgroundColor:"transparent",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},a={color:["#2CDEB3","#A17EE6","#E57E40","#409EFF"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},r={color:["#1685a9","#21a675","#1bd1a5","#8c4356","#0dafc6","#4b5cc4","#758a99","#cca4e3","#205277","#d9b611","#ff8c31","#9d2933","#0288c5","#44cef6"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},n={color:["#e69419","#A5b4da","#F8792C","#97bfb4","#de747b","#d6bac0","#e62737","#f35969","#f1ccb0","#b7394e","#fe9c1c2"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{color:"#e69419"},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}};const s={default:o,white:o,dark:i,blue:a,starry:r,orange:n};let c=null;function f(){if(!c&&"undefined"!==typeof window)try{c=l("313e");for(const e in s)c.registerTheme(e,s[e])}catch(e){console.warn("[ExChart] echarts 加载失败:",e.message)}return c}const d={small:{title:14,subtitle:11,legend:11,axisLabel:10,tooltip:11,label:11},medium:{title:16,subtitle:12,legend:12,axisLabel:12,tooltip:12,label:12},large:{title:18,subtitle:14,legend:14,axisLabel:14,tooltip:14,label:14}};function u(){}u.currentTheme="default",u.currentSize="medium",u.inverse=!1,u.baseOption={backgroundColor:"transparent",tooltip:{trigger:"axis",borderWidth:1},legend:{right:20,top:0,show:!0,textStyle:{fontSize:12}},grid:{top:"25%",left:"40",right:"15",bottom:"40"},xAxis:{type:"category",boundaryGap:!1,axisTick:{show:!0,length:4},axisLabel:{fontSize:12,interval:0,formatter:function(e){return!this.reverse&&this.longLable?e.replace(new RegExp(`(.{${this.longLableSplitNum}})`,"g"),"$1\n"):e}}},yAxis:{type:"value",axisTick:{show:!1},min:null,max:null,axisLabel:{show:!1},splitLine:{lineStyle:{type:"dashed",width:1}}}},u.chartInstanceList=[],u.mergeOptions=function(e,t){return Object.assign({},this.baseOption,e,t)},u.applyFontSize=function(e,t){const l=d[t]||d.medium,o=JSON.parse(JSON.stringify(e));return o.title&&o.title.textStyle&&(o.title.textStyle.fontSize=l.title),o.title&&o.title.subtextStyle&&(o.title.subtextStyle.fontSize=l.subtitle),o.legend&&o.legend.textStyle&&(o.legend.textStyle.fontSize=l.legend),o.tooltip&&o.tooltip.textStyle&&(o.tooltip.textStyle.fontSize=l.tooltip),o.pie&&o.pie.label&&"object"===typeof o.pie.label&&(o.pie.label.fontSize=l.label),o.radar&&o.radar.indicator&&"object"===typeof o.radar.indicator&&o.radar.indicator.textStyle&&(o.radar.indicator.textStyle.fontSize=l.label),o.map&&o.map.label&&"object"===typeof o.map.label&&(o.map.label.fontSize=l.label),o},u.init=function(e,t,l,o){const i=f();if(!i||!e)return null;t=t||"default",o=o||"medium",l=l||{};const a=this.currentTheme||t,r=this.currentSize||o;this.currentTheme=a,this.currentSize=r;let n=s[a];n=this.applyFontSize(n,r);const c=this.mergeOptions(n,l),d=i.init(e,a);return d.setOption(c,!0),this.chartInstanceList.push({dom:e,chart:d,customOption:l,size:r}),this.bindResize(d),d},u.changeSingleTheme=function(e,t,l,o){const i=f();if(!i||!e||!t)return;l=l||{},o=o||"default",this.currentTheme=o,t.dispose();const a=i.init(e,o,l),r=this.chartInstanceList.find((function(t){return t.dom===e}));return r&&(r.chart=a),a},u.changeAllTheme=function(e,t){const l=f();l&&e&&(this.currentTheme=e,t&&(this.currentSize=t),this.chartInstanceList.forEach((function(t){const o=t.dom,i=t.chart,a=t.customOption,r=t.size||u.currentSize;i&&i.dispose();const n=l.init(o,e);let c=s[e];c=u.applyFontSize(c,r);const f=u.mergeOptions(c,a);n.setOption(f,!0),t.chart=n,t.size=r,u.bindResize(n)})))},u.bindResize=function(e){e&&!e.resizeLocked&&(window.addEventListener("resize",(function(){e.resize()})),e._resizeLocked=!0)},u.destroy=function(e){e&&e.dispose(),this.chartInstanceList=this.chartInstanceList.filter((function(t){return t.chart!==e}))},u.destroyAll=function(){this.chartInstanceList.forEach((function(e){e.chart&&e.chart.dispose()})),this.chartInstanceList=[]};t["a"]=u},a68f:function(e,t,l){"use strict";l("f7d1")},f7d1:function(e,t,l){}}]);
|
package/lib/index.umd.min.5.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]=("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]||[]).push([[5],{"
|
|
1
|
+
(("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]=("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]||[]).push([[5],{"22f5":function(e,t,o){"use strict";var l={color:["#1890ff","#37c3a4","#29c0ce","#6480D7","#8cce6f","#3a5dca","#ffb74d"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333",fontSize:16},subtextStyle:{color:"#666666",fontSize:12}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},xAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"},show:!1}},yAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#DFE9EE"}}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#333333"}},tooltip:{borderWidth:1,backgroundColor:"#ffffff",textStyle:{color:"#333333"},trigger:"axis"}},i={color:["#0de7ff","#a782ff","#fcdd60","#0de7ff","#ffc5a1","#6291ae","#13ce66"],backgroundColor:"transparent",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},r={color:["#2CDEB3","#A17EE6","#E57E40","#409EFF"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},a={color:["#1685a9","#21a675","#1bd1a5","#8c4356","#0dafc6","#4b5cc4","#758a99","#cca4e3","#205277","#d9b611","#ff8c31","#9d2933","#0288c5","#44cef6"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},n={color:["#e69419","#A5b4da","#F8792C","#97bfb4","#de747b","#d6bac0","#e62737","#f35969","#f1ccb0","#b7394e","#fe9c1c2"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{color:"#e69419"},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}};const s={default:l,white:l,dark:i,blue:r,starry:a,orange:n};let c=null;function f(){if(!c&&"undefined"!==typeof window)try{c=o("313e");for(const e in s)c.registerTheme(e,s[e])}catch(e){console.warn("[ExChart] echarts 加载失败:",e.message)}return c}const d={small:{title:14,subtitle:11,legend:11,axisLabel:10,tooltip:11,label:11},medium:{title:16,subtitle:12,legend:12,axisLabel:12,tooltip:12,label:12},large:{title:18,subtitle:14,legend:14,axisLabel:14,tooltip:14,label:14}};function y(){}y.currentTheme="default",y.currentSize="medium",y.inverse=!1,y.baseOption={backgroundColor:"transparent",tooltip:{trigger:"axis",borderWidth:1},legend:{right:20,top:0,show:!0,textStyle:{fontSize:12}},grid:{top:"25%",left:"40",right:"15",bottom:"40"},xAxis:{type:"category",boundaryGap:!1,axisTick:{show:!0,length:4},axisLabel:{fontSize:12,interval:0,formatter:function(e){return!this.reverse&&this.longLable?e.replace(new RegExp(`(.{${this.longLableSplitNum}})`,"g"),"$1\n"):e}}},yAxis:{type:"value",axisTick:{show:!1},min:null,max:null,axisLabel:{show:!1},splitLine:{lineStyle:{type:"dashed",width:1}}}},y.chartInstanceList=[],y.mergeOptions=function(e,t){return Object.assign({},this.baseOption,e,t)},y.applyFontSize=function(e,t){const o=d[t]||d.medium,l=JSON.parse(JSON.stringify(e));return l.title&&l.title.textStyle&&(l.title.textStyle.fontSize=o.title),l.title&&l.title.subtextStyle&&(l.title.subtextStyle.fontSize=o.subtitle),l.legend&&l.legend.textStyle&&(l.legend.textStyle.fontSize=o.legend),l.tooltip&&l.tooltip.textStyle&&(l.tooltip.textStyle.fontSize=o.tooltip),l.pie&&l.pie.label&&"object"===typeof l.pie.label&&(l.pie.label.fontSize=o.label),l.radar&&l.radar.indicator&&"object"===typeof l.radar.indicator&&l.radar.indicator.textStyle&&(l.radar.indicator.textStyle.fontSize=o.label),l.map&&l.map.label&&"object"===typeof l.map.label&&(l.map.label.fontSize=o.label),l},y.init=function(e,t,o,l){const i=f();if(!i||!e)return null;t=t||"default",l=l||"medium",o=o||{};const r=this.currentTheme||t,a=this.currentSize||l;this.currentTheme=r,this.currentSize=a;let n=s[r];n=this.applyFontSize(n,a);const c=this.mergeOptions(n,o),d=i.init(e,r);return d.setOption(c,!0),this.chartInstanceList.push({dom:e,chart:d,customOption:o,size:a}),this.bindResize(d),d},y.changeSingleTheme=function(e,t,o,l){const i=f();if(!i||!e||!t)return;o=o||{},l=l||"default",this.currentTheme=l,t.dispose();const r=i.init(e,l,o),a=this.chartInstanceList.find((function(t){return t.dom===e}));return a&&(a.chart=r),r},y.changeAllTheme=function(e,t){const o=f();o&&e&&(this.currentTheme=e,t&&(this.currentSize=t),this.chartInstanceList.forEach((function(t){const l=t.dom,i=t.chart,r=t.customOption,a=t.size||y.currentSize;i&&i.dispose();const n=o.init(l,e);let c=s[e];c=y.applyFontSize(c,a);const f=y.mergeOptions(c,r);n.setOption(f,!0),t.chart=n,t.size=a,y.bindResize(n)})))},y.bindResize=function(e){e&&!e.resizeLocked&&(window.addEventListener("resize",(function(){e.resize()})),e._resizeLocked=!0)},y.destroy=function(e){e&&e.dispose(),this.chartInstanceList=this.chartInstanceList.filter((function(t){return t.chart!==e}))},y.destroyAll=function(){this.chartInstanceList.forEach((function(e){e.chart&&e.chart.dispose()})),this.chartInstanceList=[]};t["a"]=y},"8d72":function(e,t,o){},ab1c:function(e,t,o){"use strict";o.r(t);var l=function(){var e=this,t=e._self._c;return t("div",{ref:"piechart",staticClass:"pie-box"})},i=[],r=o("22f5"),a={name:"XtPie",props:{theme:{},size:{type:String,default:"medium"},chartData:{type:Array,default:()=>[{value:53,name:"张三"},{value:10,name:"李四"},{value:60,name:"宋五"}]},colors:{type:Array,default:()=>[]},unit:{type:String,default:""},showLegend:{type:Boolean,default:!0},chartMode:{type:String,default:"dark"},roseType:{type:String,default:""},showLabel:{type:Boolean,default:!0},totalLabel:{type:String,default:"总数"}},data(){return{myChart:null}},computed:{totalNum(){return this.chartData.map(e=>parseFloat(e.value)).reduce((e,t)=>e+t,0)}},watch:{chartData:{deep:!0,handler(e,t){const o=this;o.initChart()}},theme(e){this.initChart()}},mounted(){this.$nextTick(()=>{this.initChart()})},methods:{initChart(){const e=this;console.log(this.chartMode);const t={title:{text:`${e.totalLabel}:${e.totalNum}`,textStyle:{color:"#808080",fontSize:20},top:"middle",left:"center"},tooltip:{trigger:"item"},legend:this.showLegend?{top:"top",right:"20",type:"scroll",textStyle:{color:"#808080"}}:null,grid:{left:30,right:0,top:20,bottom:0,containLabel:!0},series:[{name:e.unit,type:"pie",center:["50%","50%"],roseType:this.roseType,radius:["50%","65%"],minAngle:5,avoidLabelOverlap:!0,data:e.chartData.map((e,t)=>{const{name:o,value:l}=e;return{value:l,name:o,labelLine:{show:this.showLabel},emphasis:{labelLine:{show:this.showLabel}},label:{show:this.showLabel},tooltip:{formatter:"{b}:{c} ({d}%)",position:"inside",borderWidth:1}}})}]};this.myChart=r["a"].init(e.$refs.piechart,this.theme,t,this.size)}}},n=a,s=(o("e3c3"),o("2877")),c=Object(s["a"])(n,l,i,!1,null,"5100b648",null);t["default"]=c.exports},e3c3:function(e,t,o){"use strict";o("8d72")}}]);
|
package/lib/index.umd.min.6.js
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
(("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]=("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]||[]).push([[6],{"
|
|
1
|
+
(("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]=("undefined"!==typeof self?self:this)["webpackJsonpxt_element_ui"]||[]).push([[6],{"22f5":function(e,t,o){"use strict";var l={color:["#1890ff","#37c3a4","#29c0ce","#6480D7","#8cce6f","#3a5dca","#ffb74d"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333",fontSize:16},subtextStyle:{color:"#666666",fontSize:12}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},xAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"},show:!1}},yAxis:{axisLine:{lineStyle:{color:"#DFE9EE"}},axisTick:{lineStyle:{color:"#DFE9EE"}},splitLine:{show:!0,lineStyle:{type:"dashed",color:"#DFE9EE"}}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#333333"}},tooltip:{borderWidth:1,backgroundColor:"#ffffff",textStyle:{color:"#333333"},trigger:"axis"}},i={color:["#0de7ff","#a782ff","#fcdd60","#0de7ff","#ffc5a1","#6291ae","#13ce66"],backgroundColor:"transparent",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},r={color:["#2CDEB3","#A17EE6","#E57E40","#409EFF"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},a={color:["#1685a9","#21a675","#1bd1a5","#8c4356","#0dafc6","#4b5cc4","#758a99","#cca4e3","#205277","#d9b611","#ff8c31","#9d2933","#0288c5","#44cef6"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}},n={color:["#e69419","#A5b4da","#F8792C","#97bfb4","#de747b","#d6bac0","#e62737","#f35969","#f1ccb0","#b7394e","#fe9c1c2"],backgroundColor:"#ffffff",textStyle:{fontFamily:"Microsoft YaHei, sans-serif"},title:{textStyle:{color:"#333"},subtextStyle:{color:"#666666"}},line:{itemStyle:{color:"#e69419"},lineStyle:{width:2}},bar:{itemStyle:{borderRadius:4}},pie:{roseType:"radius",label:{color:"#333"}},radar:{indicator:{color:"#666666"}},map:{label:{color:"#333"},itemStyle:{borderColor:"#fff"}},gauge:{axisLine:{lineStyle:{color:[[1,"#5470c6"]]}}},toolbox:{iconStyle:{borderColor:"#666666"}},axisLine:{lineStyle:{color:"#DCDFE6"}},axisTick:{lineStyle:{color:"#DCDFE6"}},splitLine:{lineStyle:{color:"#ebeef5"}},splitArea:{areaStyle:{color:["#f7f8fa","#ffffff"]}},legend:{textStyle:{color:"#666"}},tooltip:{backgroundColor:"rgba(255, 255, 255, 0.95)",borderColor:"#DCDFE6",borderWidth:1,textStyle:{color:"#333"}}};const c={default:l,white:l,dark:i,blue:r,starry:a,orange:n};let s=null;function f(){if(!s&&"undefined"!==typeof window)try{s=o("313e");for(const e in c)s.registerTheme(e,c[e])}catch(e){console.warn("[ExChart] echarts 加载失败:",e.message)}return s}const d={small:{title:14,subtitle:11,legend:11,axisLabel:10,tooltip:11,label:11},medium:{title:16,subtitle:12,legend:12,axisLabel:12,tooltip:12,label:12},large:{title:18,subtitle:14,legend:14,axisLabel:14,tooltip:14,label:14}};function y(){}y.currentTheme="default",y.currentSize="medium",y.inverse=!1,y.baseOption={backgroundColor:"transparent",tooltip:{trigger:"axis",borderWidth:1},legend:{right:20,top:0,show:!0,textStyle:{fontSize:12}},grid:{top:"25%",left:"40",right:"15",bottom:"40"},xAxis:{type:"category",boundaryGap:!1,axisTick:{show:!0,length:4},axisLabel:{fontSize:12,interval:0,formatter:function(e){return!this.reverse&&this.longLable?e.replace(new RegExp(`(.{${this.longLableSplitNum}})`,"g"),"$1\n"):e}}},yAxis:{type:"value",axisTick:{show:!1},min:null,max:null,axisLabel:{show:!1},splitLine:{lineStyle:{type:"dashed",width:1}}}},y.chartInstanceList=[],y.mergeOptions=function(e,t){return Object.assign({},this.baseOption,e,t)},y.applyFontSize=function(e,t){const o=d[t]||d.medium,l=JSON.parse(JSON.stringify(e));return l.title&&l.title.textStyle&&(l.title.textStyle.fontSize=o.title),l.title&&l.title.subtextStyle&&(l.title.subtextStyle.fontSize=o.subtitle),l.legend&&l.legend.textStyle&&(l.legend.textStyle.fontSize=o.legend),l.tooltip&&l.tooltip.textStyle&&(l.tooltip.textStyle.fontSize=o.tooltip),l.pie&&l.pie.label&&"object"===typeof l.pie.label&&(l.pie.label.fontSize=o.label),l.radar&&l.radar.indicator&&"object"===typeof l.radar.indicator&&l.radar.indicator.textStyle&&(l.radar.indicator.textStyle.fontSize=o.label),l.map&&l.map.label&&"object"===typeof l.map.label&&(l.map.label.fontSize=o.label),l},y.init=function(e,t,o,l){const i=f();if(!i||!e)return null;t=t||"default",l=l||"medium",o=o||{};const r=this.currentTheme||t,a=this.currentSize||l;this.currentTheme=r,this.currentSize=a;let n=c[r];n=this.applyFontSize(n,a);const s=this.mergeOptions(n,o),d=i.init(e,r);return d.setOption(s,!0),this.chartInstanceList.push({dom:e,chart:d,customOption:o,size:a}),this.bindResize(d),d},y.changeSingleTheme=function(e,t,o,l){const i=f();if(!i||!e||!t)return;o=o||{},l=l||"default",this.currentTheme=l,t.dispose();const r=i.init(e,l,o),a=this.chartInstanceList.find((function(t){return t.dom===e}));return a&&(a.chart=r),r},y.changeAllTheme=function(e,t){const o=f();o&&e&&(this.currentTheme=e,t&&(this.currentSize=t),this.chartInstanceList.forEach((function(t){const l=t.dom,i=t.chart,r=t.customOption,a=t.size||y.currentSize;i&&i.dispose();const n=o.init(l,e);let s=c[e];s=y.applyFontSize(s,a);const f=y.mergeOptions(s,r);n.setOption(f,!0),t.chart=n,t.size=a,y.bindResize(n)})))},y.bindResize=function(e){e&&!e.resizeLocked&&(window.addEventListener("resize",(function(){e.resize()})),e._resizeLocked=!0)},y.destroy=function(e){e&&e.dispose(),this.chartInstanceList=this.chartInstanceList.filter((function(t){return t.chart!==e}))},y.destroyAll=function(){this.chartInstanceList.forEach((function(e){e.chart&&e.chart.dispose()})),this.chartInstanceList=[]};t["a"]=y},"7c01":function(e,t,o){"use strict";o("cb71")},"7fd9":function(e,t,o){"use strict";o.r(t);var l=function(){var e=this,t=e._self._c;return t("div",{ref:"barchart",staticClass:"bar-box",style:{width:e.width}})},i=[],r=o("22f5"),a={name:"XtTrend",props:{type:{type:String,default:"bar"},theme:{},size:{type:String,default:"medium"},chartData:{type:Array,default:()=>[{value:53,label:"正常设备"},{value:10,label:"正常设备"},{value:60,label:"离线设备"}]},width:{type:String,default:"100%"},energyType:{type:String,default:"m³"}},data(){return{myChart:null}},watch:{type:{handler(){const e=this,t=e.getOption();e.myChart.setOption(t)}},chartData:{deep:!0,handler(e,t){const o=this;o.initChart()}},theme(e){this.initChart()}},mounted(){this.initChart()},methods:{getOption(){const e=this,t={xAxis:{type:"category",axisTick:{show:!1,splitLine:{lineStyle:{}}},axisLabel:{}},tooltip:{borderWidth:1,trigger:"item"},grid:{top:"10",left:"10",right:"10",bottom:"20"},yAxis:{show:!1,type:"value"},series:{type:e.type||"bar",areaStyle:{},showSymbol:!1,smooth:!0,data:e.chartData.map((e,t)=>{const{label:o,value:l}=e;return{value:l,label:o}})}};return t},initChart(){const e=this,t=this.getOption();this.myChart=r["a"].init(e.$refs.barchart,this.theme,t,this.size)}}},n=a,c=(o("7c01"),o("2877")),s=Object(c["a"])(n,l,i,!1,null,"36cddc14",null);t["default"]=s.exports},cb71:function(e,t,o){}}]);
|