样式更新

qianming 3 years ago
parent 81cf89aeab
commit 1525595546

@ -2250,6 +2250,26 @@ const widgetTools = [
}, },
], ],
}, },
{
name: '提示语设置',
list: [
{
type: 'el-input-number',
label: '字体大小',
name: 'tipsFontSize',
required: false,
placeholder: '',
value: 16
},
{
type: 'vue-color',
label: '字体颜色',
name: 'lineColor',
required: false,
placeholder: '',
},
],
},
{ {
name: '坐标轴边距设置', name: '坐标轴边距设置',
list: [ list: [
@ -6050,7 +6070,7 @@ const widgetTools = [
}, },
], ],
}, },
/*{ {
name: '提示语设置', name: '提示语设置',
list: [ list: [
{ {
@ -6069,7 +6089,7 @@ const widgetTools = [
placeholder: '', placeholder: '',
}, },
], ],
},*/ },
/*{ /*{
name: '坐标轴边距设置', name: '坐标轴边距设置',
list: [ list: [

@ -97,7 +97,7 @@ export default {
this.setOptionsX(); this.setOptionsX();
this.setOptionsY(); this.setOptionsY();
this.setOptionsTop(); this.setOptionsTop();
//this.setOptionsTooltip(); this.setOptionsTooltip();
//this.setOptionsMargin(); //this.setOptionsMargin();
//this.setOptionsLegend(); //this.setOptionsLegend();
//this.setOptionsColor(); //this.setOptionsColor();
@ -215,8 +215,8 @@ export default {
} }
this.options.series = series; this.options.series = series;
}, },
// tooltip // tooltip
/* setOptionsTooltip() { setOptionsTooltip() {
const optionsCollapse = this.optionsSetup; const optionsCollapse = this.optionsSetup;
const tooltip = { const tooltip = {
trigger: "item", trigger: "item",
@ -227,7 +227,7 @@ export default {
} }
}; };
this.options.tooltip = tooltip; this.options.tooltip = tooltip;
},*/ },
// //
setOptionsMargin() { setOptionsMargin() {
const optionsCollapse = this.optionsSetup; const optionsCollapse = this.optionsSetup;

@ -283,12 +283,11 @@ export default {
fontWeight: optionsCollapse.fontWeight fontWeight: optionsCollapse.fontWeight
}; };
series[key].barWidth = optionsCollapse.maxWidth; series[key].barWidth = optionsCollapse.maxWidth;
//series[key].barMinHeight = optionsCollapse.minHeight;
} }
} }
this.options.series = series; this.options.series = series;
}, },
// tooltip // tooltip
setOptionsTooltip() { setOptionsTooltip() {
const optionsCollapse = this.optionsSetup; const optionsCollapse = this.optionsSetup;
const tooltip = { const tooltip = {

Loading…
Cancel
Save