百分比图样式功能调整

qianming 3 years ago
parent 59cc4ed96a
commit be954a9412

@ -5315,7 +5315,7 @@ const widgetTools = [
value: '' value: ''
}, },
[ [
{ /*{
name: '标题设置', name: '标题设置',
list: [ list: [
{ {
@ -5378,14 +5378,14 @@ const widgetTools = [
value: 'center' value: 'center'
} }
], ],
}, },*/
{ {
name: '数值设置', name: '数值设置',
list: [ list: [
{ {
type: 'vue-color', type: 'vue-color',
label: '数值颜色', label: '数值颜色',
name: 'textColor', name: 'textNumColor',
required: false, required: false,
placeholder: '', placeholder: '',
value: '#fff' value: '#fff'
@ -5393,15 +5393,15 @@ const widgetTools = [
{ {
type: 'el-input-number', type: 'el-input-number',
label: '数值字体', label: '数值字体',
name: 'textFontSize', name: 'textNumFontSize',
required: false, required: false,
placeholder: '', placeholder: '',
value: 60 value: 40
}, },
{ {
type: 'el-select', type: 'el-select',
label: '字体粗细', label: '字体粗细',
name: 'textFontWeight', name: 'textNumFontWeight',
required: false, required: false,
placeholder: '', placeholder: '',
selectOptions: [ selectOptions: [
@ -5426,7 +5426,7 @@ const widgetTools = [
name: 'textPerFontSize', name: 'textPerFontSize',
required: false, required: false,
placeholder: '', placeholder: '',
value: 30 value: 20
}, },
{ {
type: 'el-select', type: 'el-select',
@ -5444,7 +5444,7 @@ const widgetTools = [
} }
], ],
}, },
{ /*{
name: '图例操作', name: '图例操作',
list: [ list: [
{ {
@ -5516,7 +5516,7 @@ const widgetTools = [
value: '' value: ''
}, },
], ],
}, },*/
], ],
], ],
// 数据 // 数据

@ -353,7 +353,7 @@ export default {
}; };
}, },
editorOptions() { editorOptions() {
//this.setOptionsTitle(); this.setOptionsTitle();
//this.setOptionsTooltip(); //this.setOptionsTooltip();
//this.setOptionsLegend(); //this.setOptionsLegend();
//this.setOptionsColor(); //this.setOptionsColor();
@ -366,12 +366,14 @@ export default {
title.y = "center"; title.y = "center";
const rich = { const rich = {
nums: { nums: {
fontSize: optionsCollapse.textFontSize, fontSize: optionsCollapse.textNumFontSize,
color: optionsCollapse.textColor color: optionsCollapse.textNumColor,
fontWeight: optionsCollapse.textNumFontWeight
}, },
percent: { percent: {
fontSize: optionsCollapse.textPerFontSize, fontSize: optionsCollapse.textPerFontSize,
color: optionsCollapse.textPerColor color: optionsCollapse.textPerColor,
fontWeight: optionsCollapse.textPerFontWeight
} }
}; };
title.textStyle['rich'] = rich; title.textStyle['rich'] = rich;

Loading…
Cancel
Save