@@ -42828,12 +42828,12 @@ var TimeText_component = normalizeComponent(
42828
42828
)
42829
42829
42830
42830
/* harmony default export */ var TimeText = (TimeText_component.exports);
42831
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/view/components/Progress.vue?vue&type=template&id=3499b000 &
42832
- var Progressvue_type_template_id_3499b000_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"sm-progress"},[_c('el-progress',{attrs:{"percentage":parseFloat(_vm.percentage),"type":_vm.type,"stroke-width":parseFloat(_vm.strokeWidth),"show-text":_vm.showText,"width":_vm.type==='circle'?parseFloat(_vm.circleWidth):null,"color":_vm.curColor,"status":_vm.status}})],1)}
42833
- var Progressvue_type_template_id_3499b000_staticRenderFns = []
42831
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/view/components/Progress.vue?vue&type=template&id=e8528960 &
42832
+ var Progressvue_type_template_id_e8528960_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"sm-progress"},[_c('el-progress',{attrs:{"percentage":parseFloat(_vm.percentage),"type":_vm.type,"stroke-width":parseFloat(_vm.strokeWidth),"show-text":_vm.showText,"width":_vm.type==='circle'?parseFloat(_vm.circleWidth):null,"color":_vm.curColor,"status":_vm.status}})],1)}
42833
+ var Progressvue_type_template_id_e8528960_staticRenderFns = []
42834
42834
42835
42835
42836
- // CONCATENATED MODULE: ./src/view/components/Progress.vue?vue&type=template&id=3499b000 &
42836
+ // CONCATENATED MODULE: ./src/view/components/Progress.vue?vue&type=template&id=e8528960 &
42837
42837
42838
42838
// CONCATENATED MODULE: ./node_modules/babel-loader/lib!./node_modules/vue-loader/lib??vue-loader-options!./src/view/components/Progress.vue?vue&type=script&lang=js&
42839
42839
//
@@ -42903,9 +42903,9 @@ var Progressvue_type_template_id_3499b000_staticRenderFns = []
42903
42903
var _this = this;
42904
42904
42905
42905
this.curColor = this.color || this.getColor(0);
42906
- this.circleWidth = this.$parent.$el.offsetWidth * 0.5 ;
42906
+ this.circleWidth = Math.min( this.$parent.$el.offsetWidth, this.$parent.$el.offsetHeight) ;
42907
42907
window.addEventListener('resize', function () {
42908
- _this.circleWidth = _this.$parent.$el.offsetWidth * 0.5 ;
42908
+ _this.circleWidth = Math.min( _this.$parent.$el.offsetWidth, _this.$parent.$el.offsetHeight) ;
42909
42909
});
42910
42910
}
42911
42911
});
@@ -42921,8 +42921,8 @@ var Progressvue_type_template_id_3499b000_staticRenderFns = []
42921
42921
42922
42922
var Progress_component = normalizeComponent(
42923
42923
components_Progressvue_type_script_lang_js_,
42924
- Progressvue_type_template_id_3499b000_render ,
42925
- Progressvue_type_template_id_3499b000_staticRenderFns ,
42924
+ Progressvue_type_template_id_e8528960_render ,
42925
+ Progressvue_type_template_id_e8528960_staticRenderFns ,
42926
42926
false,
42927
42927
null,
42928
42928
null,
@@ -43009,12 +43009,12 @@ var Icon_component = normalizeComponent(
43009
43009
)
43010
43010
43011
43011
/* harmony default export */ var Icon = (Icon_component.exports);
43012
- // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/view/components/LiquidFill.vue?vue&type=template&id=570ba3ea &
43013
- var LiquidFillvue_type_template_id_570ba3ea_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{staticClass:"liquid-fill"},[_c('div',{ ref:"chart",staticClass:"chart",style:({width: _vm.size, height: _vm.size, margin: '0 auto'}), attrs:{"id":"chart"}})] )}
43014
- var LiquidFillvue_type_template_id_570ba3ea_staticRenderFns = []
43012
+ // CONCATENATED MODULE: ./node_modules/vue-loader/lib/loaders/templateLoader.js??vue-loader-options!./node_modules/vue-loader/lib??vue-loader-options!./src/view/components/LiquidFill.vue?vue&type=template&id=511ce336 &
43013
+ var LiquidFillvue_type_template_id_511ce336_render = function () {var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h;return _c('div',{ref:"chart",staticClass:"sm-liquidFill", attrs:{"id":"chart"}})}
43014
+ var LiquidFillvue_type_template_id_511ce336_staticRenderFns = []
43015
43015
43016
43016
43017
- // CONCATENATED MODULE: ./src/view/components/LiquidFill.vue?vue&type=template&id=570ba3ea &
43017
+ // CONCATENATED MODULE: ./src/view/components/LiquidFill.vue?vue&type=template&id=511ce336 &
43018
43018
43019
43019
// EXTERNAL MODULE: external "echarts-liquidfill"
43020
43020
var external_echarts_liquidfill_ = __webpack_require__("hQXD");
@@ -43027,11 +43027,6 @@ var external_echarts_liquidfill_ = __webpack_require__("hQXD");
43027
43027
//
43028
43028
//
43029
43029
//
43030
- //
43031
- //
43032
- //
43033
- //
43034
- //
43035
43030
43036
43031
43037
43032
@@ -43114,7 +43109,9 @@ var external_echarts_liquidfill_ = __webpack_require__("hQXD");
43114
43109
});
43115
43110
this.chart = external_echarts_default.a.init(this.$refs.chart);
43116
43111
this.updateChart();
43117
- this.size = this.$el.offsetWidth * 0.75 + 'px';
43112
+ this.chart.on('finished', function () {
43113
+ _this.chart.resize();
43114
+ });
43118
43115
this.$on("themeStyle", function () {
43119
43116
_this.waveColorData = _this.getColor(0);
43120
43117
_this.labelColorData = _this.getTextColor;
@@ -43124,11 +43121,7 @@ var external_echarts_liquidfill_ = __webpack_require__("hQXD");
43124
43121
_this.updateChart(true);
43125
43122
});
43126
43123
addEventListener('resize', function () {
43127
- _this.size = _this.$el.offsetWidth * 0.75 + 'px';
43128
-
43129
- _this.$nextTick(function () {
43130
- this.chart.resize();
43131
- });
43124
+ _this.chart.resize();
43132
43125
});
43133
43126
},
43134
43127
methods: {
@@ -43187,8 +43180,8 @@ var external_echarts_liquidfill_ = __webpack_require__("hQXD");
43187
43180
43188
43181
var LiquidFill_component = normalizeComponent(
43189
43182
components_LiquidFillvue_type_script_lang_js_,
43190
- LiquidFillvue_type_template_id_570ba3ea_render ,
43191
- LiquidFillvue_type_template_id_570ba3ea_staticRenderFns ,
43183
+ LiquidFillvue_type_template_id_511ce336_render ,
43184
+ LiquidFillvue_type_template_id_511ce336_staticRenderFns ,
43192
43185
false,
43193
43186
null,
43194
43187
null,
0 commit comments