图例名称修改统一

qianming 2 years ago
parent ef5716c782
commit e2b0e751e3

@ -138,7 +138,7 @@ export const widgetBarCompare = {
{ {
type: 'vue-color', type: 'vue-color',
label: '字体颜色', label: '字体颜色',
name: 'lengedColor', name: 'legendColor',
required: false, required: false,
placeholder: '', placeholder: '',
value: '#fff', value: '#fff',
@ -146,7 +146,7 @@ export const widgetBarCompare = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '字体字号', label: '字体字号',
name: 'lengedFontSize', name: 'legendFontSize',
required: false, required: false,
placeholder: '', placeholder: '',
value: 12, value: 12,
@ -154,7 +154,7 @@ export const widgetBarCompare = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '图例宽度', label: '图例宽度',
name: 'lengedWidth', name: 'legendWidth',
required: false, required: false,
placeholder: '', placeholder: '',
value: 12, value: 12,

@ -196,7 +196,7 @@ export const widgetBarStack = {
{ {
type: 'vue-color', type: 'vue-color',
label: '字体颜色', label: '字体颜色',
name: 'lengedColor', name: 'legendColor',
required: false, required: false,
placeholder: '', placeholder: '',
value: '#fff', value: '#fff',
@ -204,7 +204,7 @@ export const widgetBarStack = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '字体字号', label: '字体字号',
name: 'lengedFontSize', name: 'legendFontSize',
required: false, required: false,
placeholder: '', placeholder: '',
value: 12, value: 12,
@ -212,7 +212,7 @@ export const widgetBarStack = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '图例宽度', label: '图例宽度',
name: 'lengedWidth', name: 'legendWidth',
required: false, required: false,
placeholder: '', placeholder: '',
value: 12, value: 12,

@ -237,7 +237,7 @@ export const widgetBarlinechart = {
{ {
type: 'vue-color', type: 'vue-color',
label: '字体颜色', label: '字体颜色',
name: 'lengedColor', name: 'legendColor',
required: false, required: false,
placeholder: '', placeholder: '',
value: '#fff', value: '#fff',
@ -245,7 +245,7 @@ export const widgetBarlinechart = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '字体字号', label: '字体字号',
name: 'lengedFontSize', name: 'legendFontSize',
required: false, required: false,
placeholder: '', placeholder: '',
value: 12, value: 12,
@ -253,7 +253,7 @@ export const widgetBarlinechart = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '图例宽度', label: '图例宽度',
name: 'lengedWidth', name: 'legendWidth',
required: false, required: false,
placeholder: '', placeholder: '',
value: 12, value: 12,

@ -198,7 +198,7 @@ export const widgetFunnel = {
{ {
type: 'vue-color', type: 'vue-color',
label: '字体颜色', label: '字体颜色',
name: 'lengedColor', name: 'legendColor',
required: false, required: false,
placeholder: '', placeholder: '',
value: '#fff', value: '#fff',
@ -206,7 +206,7 @@ export const widgetFunnel = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '字体字号', label: '字体字号',
name: 'lengedFontSize', name: 'legendFontSize',
required: false, required: false,
placeholder: '', placeholder: '',
value: 16, value: 16,
@ -214,7 +214,7 @@ export const widgetFunnel = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '图例宽度', label: '图例宽度',
name: 'lengedWidth', name: 'legendWidth',
required: false, required: false,
placeholder: '', placeholder: '',
value: 15, value: 15,

@ -422,7 +422,7 @@ export const widgetHeatmap = {
{ {
type: 'vue-color', type: 'vue-color',
label: '数值颜色', label: '数值颜色',
name: 'lengedColor', name: 'legendColor',
required: false, required: false,
placeholder: '', placeholder: '',
value: '#fff', value: '#fff',
@ -430,7 +430,7 @@ export const widgetHeatmap = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '图例大小', label: '图例大小',
name: 'lengedFontSize', name: 'legendFontSize',
required: false, required: false,
placeholder: '', placeholder: '',
value: 12, value: 12,
@ -438,7 +438,7 @@ export const widgetHeatmap = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '图例宽度', label: '图例宽度',
name: 'lengedWidth', name: 'legendWidth',
required: false, required: false,
placeholder: '', placeholder: '',
value: 12, value: 12,
@ -488,7 +488,7 @@ export const widgetHeatmap = {
{ {
type: 'customColor', type: 'customColor',
label: '', label: '',
name: 'lengedColorList', name: 'legendColorList',
required: false, required: false,
value: [{color: '#abd9e9'}, {color: '#74add1'}, {color: '#4575b4'}, {color: '#313695'}], value: [{color: '#abd9e9'}, {color: '#74add1'}, {color: '#4575b4'}, {color: '#313695'}],
}, },

@ -170,7 +170,7 @@ export const widgetLineCompare = {
{ {
type: 'vue-color', type: 'vue-color',
label: '字体颜色', label: '字体颜色',
name: 'lengedColor', name: 'legendColor',
required: false, required: false,
placeholder: '', placeholder: '',
value: '#fff', value: '#fff',
@ -178,7 +178,7 @@ export const widgetLineCompare = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '字体字号', label: '字体字号',
name: 'lengedFontSize', name: 'legendFontSize',
required: false, required: false,
placeholder: '', placeholder: '',
value: 12, value: 12,
@ -186,7 +186,7 @@ export const widgetLineCompare = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '图例宽度', label: '图例宽度',
name: 'lengedWidth', name: 'legendWidth',
required: false, required: false,
placeholder: '', placeholder: '',
value: 12, value: 12,

@ -216,7 +216,7 @@ export const widgetLineStack = {
{ {
type: 'vue-color', type: 'vue-color',
label: '字体颜色', label: '字体颜色',
name: 'lengedColor', name: 'legendColor',
required: false, required: false,
placeholder: '', placeholder: '',
value: '#fff', value: '#fff',
@ -224,7 +224,7 @@ export const widgetLineStack = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '字体字号', label: '字体字号',
name: 'lengedFontSize', name: 'legendFontSize',
required: false, required: false,
placeholder: '', placeholder: '',
value: 12, value: 12,
@ -232,7 +232,7 @@ export const widgetLineStack = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '图例宽度', label: '图例宽度',
name: 'lengedWidth', name: 'legendWidth',
required: false, required: false,
placeholder: '', placeholder: '',
value: 12, value: 12,

@ -229,7 +229,7 @@ export const widgetMoreBarLine = {
{ {
type: 'vue-color', type: 'vue-color',
label: '字体颜色', label: '字体颜色',
name: 'lengedColor', name: 'legendColor',
required: false, required: false,
placeholder: '', placeholder: '',
value: '#fff', value: '#fff',
@ -237,7 +237,7 @@ export const widgetMoreBarLine = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '字体字号', label: '字体字号',
name: 'lengedFontSize', name: 'legendFontSize',
required: false, required: false,
placeholder: '', placeholder: '',
value: 12, value: 12,
@ -245,7 +245,7 @@ export const widgetMoreBarLine = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '图例宽度', label: '图例宽度',
name: 'lengedWidth', name: 'legendWidth',
required: false, required: false,
placeholder: '', placeholder: '',
value: 12, value: 12,

@ -239,7 +239,7 @@ export const widgetPieNightingale = {
{ {
type: 'vue-color', type: 'vue-color',
label: '字体颜色', label: '字体颜色',
name: 'lengedColor', name: 'legendColor',
required: false, required: false,
placeholder: '', placeholder: '',
value: '#fff', value: '#fff',
@ -247,7 +247,7 @@ export const widgetPieNightingale = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '字体大小', label: '字体大小',
name: 'lengedFontSize', name: 'legendFontSize',
required: false, required: false,
placeholder: '', placeholder: '',
value: 16, value: 16,
@ -255,7 +255,7 @@ export const widgetPieNightingale = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '图例宽度', label: '图例宽度',
name: 'lengedWidth', name: 'legendWidth',
required: false, required: false,
placeholder: '', placeholder: '',
value: 15, value: 15,
@ -267,10 +267,11 @@ export const widgetPieNightingale = {
required: false, required: false,
placeholder: '', placeholder: '',
selectOptions: [ selectOptions: [
{code: 'center', name: '居中'},
{code: 'left', name: '左对齐'}, {code: 'left', name: '左对齐'},
{code: 'right', name: '右对齐'}, {code: 'right', name: '右对齐'},
], ],
value: '' value: 'center'
}, },
{ {
type: 'el-select', type: 'el-select',
@ -282,7 +283,7 @@ export const widgetPieNightingale = {
{code: 'top', name: '顶部'}, {code: 'top', name: '顶部'},
{code: 'bottom', name: '底部'}, {code: 'bottom', name: '底部'},
], ],
value: '' value: 'top'
}, },
{ {
type: 'el-select', type: 'el-select',
@ -294,7 +295,7 @@ export const widgetPieNightingale = {
{code: 'vertical', name: '竖排'}, {code: 'vertical', name: '竖排'},
{code: 'horizontal', name: '横排'}, {code: 'horizontal', name: '横排'},
], ],
value: '' value: 'horizontal'
}, },
], ],
}, },

@ -1,6 +1,6 @@
/* /*
* @Descripttion: 饼图 * @Descripttion: 饼图
* @version: * @version:
* @Author: qianlishi * @Author: qianlishi
* @Date: 2021-08-29 07:28:20 * @Date: 2021-08-29 07:28:20
* @LastEditors: qianlishi * @LastEditors: qianlishi
@ -239,7 +239,7 @@ export const widgetPiechart = {
{ {
type: 'vue-color', type: 'vue-color',
label: '字体颜色', label: '字体颜色',
name: 'lengedColor', name: 'legendColor',
required: false, required: false,
placeholder: '', placeholder: '',
value: '#fff', value: '#fff',
@ -247,7 +247,7 @@ export const widgetPiechart = {
{ {
type: 'el-input-text', type: 'el-input-text',
label: '字体大小', label: '字体大小',
name: 'lengedFontSize', name: 'legendFontSize',
required: false, required: false,
placeholder: '', placeholder: '',
value: 16, value: 16,
@ -255,7 +255,7 @@ export const widgetPiechart = {
{ {
type: 'el-input-number', type: 'el-input-number',
label: '图例宽度', label: '图例宽度',
name: 'lengedWidth', name: 'legendWidth',
required: false, required: false,
placeholder: '', placeholder: '',
value: 15, value: 15,
@ -267,10 +267,11 @@ export const widgetPiechart = {
required: false, required: false,
placeholder: '', placeholder: '',
selectOptions: [ selectOptions: [
{code: 'center', name: '居中'},
{code: 'left', name: '左对齐'}, {code: 'left', name: '左对齐'},
{code: 'right', name: '右对齐'}, {code: 'right', name: '右对齐'},
], ],
value: '' value: 'center'
}, },
{ {
type: 'el-select', type: 'el-select',
@ -282,7 +283,7 @@ export const widgetPiechart = {
{code: 'top', name: '顶部'}, {code: 'top', name: '顶部'},
{code: 'bottom', name: '底部'}, {code: 'bottom', name: '底部'},
], ],
value: '' value: 'top'
}, },
{ {
type: 'el-select', type: 'el-select',
@ -294,7 +295,7 @@ export const widgetPiechart = {
{code: 'vertical', name: '竖排'}, {code: 'vertical', name: '竖排'},
{code: 'horizontal', name: '横排'}, {code: 'horizontal', name: '横排'},
], ],
value: '' value: 'horizontal'
}, },
], ],
}, },

@ -488,10 +488,10 @@ export default {
optionsSetup.longitudinalPosition; optionsSetup.longitudinalPosition;
legend.orient = optionsSetup.layoutFront; legend.orient = optionsSetup.layoutFront;
legend.textStyle = { legend.textStyle = {
color: optionsSetup.lengedColor, color: optionsSetup.legendColor,
fontSize: optionsSetup.lengedFontSize fontSize: optionsSetup.legendFontSize
}; };
legend.itemWidth = optionsSetup.lengedWidth; legend.itemWidth = optionsSetup.legendWidth;
}, },
// //
setOptionsLegendName(name){ setOptionsLegendName(name){

@ -239,10 +239,10 @@ export default {
optionsSetup.longitudinalPosition; optionsSetup.longitudinalPosition;
legend.orient = optionsSetup.layoutFront; legend.orient = optionsSetup.layoutFront;
legend.textStyle = { legend.textStyle = {
color: optionsSetup.lengedColor, color: optionsSetup.legendColor,
fontSize: optionsSetup.lengedFontSize fontSize: optionsSetup.legendFontSize
}; };
legend.itemWidth = optionsSetup.lengedWidth; legend.itemWidth = optionsSetup.legendWidth;
}, },
// //
setOptionsLegendName(name){ setOptionsLegendName(name){

@ -351,10 +351,10 @@ export default {
optionsSetup.longitudinalPosition; optionsSetup.longitudinalPosition;
legend.orient = optionsSetup.layoutFront; legend.orient = optionsSetup.layoutFront;
legend.textStyle = { legend.textStyle = {
color: optionsSetup.lengedColor, color: optionsSetup.legendColor,
fontSize: optionsSetup.lengedFontSize fontSize: optionsSetup.legendFontSize
}; };
legend.itemWidth = optionsSetup.lengedWidth; legend.itemWidth = optionsSetup.legendWidth;
}, },
// //
setOptionsLegendName(name){ setOptionsLegendName(name){

@ -366,10 +366,10 @@ export default {
optionsSetup.longitudinalPosition; optionsSetup.longitudinalPosition;
legend.orient = optionsSetup.layoutFront; legend.orient = optionsSetup.layoutFront;
legend.textStyle = { legend.textStyle = {
color: optionsSetup.lengedColor, color: optionsSetup.legendColor,
fontSize: optionsSetup.lengedFontSize fontSize: optionsSetup.legendFontSize
}; };
legend.itemWidth = optionsSetup.lengedWidth; legend.itemWidth = optionsSetup.legendWidth;
}, },
// //
setOptionsLegendName(name){ setOptionsLegendName(name){

@ -291,17 +291,17 @@ export default {
visualMap.min = optionsSetup.dataMin; visualMap.min = optionsSetup.dataMin;
visualMap.max = optionsSetup.dataMax; visualMap.max = optionsSetup.dataMax;
visualMap.textStyle = { visualMap.textStyle = {
fontSize : optionsSetup.lengedFontSize, fontSize : optionsSetup.legendFontSize,
color : optionsSetup.lengedColor color : optionsSetup.legendColor
}; };
visualMap.inRange.color = optionsSetup.lengedColorList.map((x) => { visualMap.inRange.color = optionsSetup.legendColorList.map((x) => {
return x.color; return x.color;
}); });
visualMap.left = optionsSetup.lateralPosition; visualMap.left = optionsSetup.lateralPosition;
visualMap.top = optionsSetup.longitudinalPosition; visualMap.top = optionsSetup.longitudinalPosition;
visualMap.bottom = optionsSetup.longitudinalPosition; visualMap.bottom = optionsSetup.longitudinalPosition;
visualMap.orient = optionsSetup.layoutFront; visualMap.orient = optionsSetup.layoutFront;
visualMap.itemWidth = optionsSetup.lengedWidth; visualMap.itemWidth = optionsSetup.legendWidth;
}, },
setOptionsData() { setOptionsData() {
const optionsData = this.optionsData; // or const optionsData = this.optionsData; // or

@ -538,10 +538,10 @@ export default {
optionsSetup.longitudinalPosition; optionsSetup.longitudinalPosition;
legend.orient = optionsSetup.layoutFront; legend.orient = optionsSetup.layoutFront;
legend.textStyle = { legend.textStyle = {
color: optionsSetup.lengedColor, color: optionsSetup.legendColor,
fontSize: optionsSetup.lengedFontSize fontSize: optionsSetup.legendFontSize
}; };
legend.itemWidth = optionsSetup.lengedWidth; legend.itemWidth = optionsSetup.legendWidth;
}, },
// //
setOptionsLegendName(name){ setOptionsLegendName(name){

@ -254,10 +254,10 @@ export default {
optionsSetup.longitudinalPosition; optionsSetup.longitudinalPosition;
legend.orient = optionsSetup.layoutFront; legend.orient = optionsSetup.layoutFront;
legend.textStyle = { legend.textStyle = {
color: optionsSetup.lengedColor, color: optionsSetup.legendColor,
fontSize: optionsSetup.lengedFontSize fontSize: optionsSetup.legendFontSize
}; };
legend.itemWidth = optionsSetup.lengedWidth; legend.itemWidth = optionsSetup.legendWidth;
}, },
// //
setOptionsLegendName(name){ setOptionsLegendName(name){

@ -175,10 +175,10 @@ export default {
optionsCollapse.longitudinalPosition == "bottom" ? 0 : "auto"; optionsCollapse.longitudinalPosition == "bottom" ? 0 : "auto";
legend.orient = optionsCollapse.layoutFront; legend.orient = optionsCollapse.layoutFront;
legend.textStyle = { legend.textStyle = {
color: optionsCollapse.lengedColor, color: optionsCollapse.legendColor,
fontSize: optionsCollapse.fontSize fontSize: optionsCollapse.fontSize
}; };
legend.itemWidth = optionsCollapse.lengedWidth; legend.itemWidth = optionsCollapse.legendWidth;
}, },
// //
setOptionsColor() { setOptionsColor() {

@ -174,10 +174,10 @@ export default {
optionsSetup.longitudinalPosition == "bottom" ? 0 : "auto"; optionsSetup.longitudinalPosition == "bottom" ? 0 : "auto";
legend.orient = optionsSetup.layoutFront; legend.orient = optionsSetup.layoutFront;
legend.textStyle = { legend.textStyle = {
color: optionsSetup.lengedColor, color: optionsSetup.legendColor,
fontSize: optionsSetup.fontSize fontSize: optionsSetup.fontSize
}; };
legend.itemWidth = optionsSetup.lengedWidth; legend.itemWidth = optionsSetup.legendWidth;
}, },
// //
setOptionsColor() { setOptionsColor() {

@ -190,10 +190,10 @@ export default {
optionsSetup.longitudinalPosition; optionsSetup.longitudinalPosition;
legend.orient = optionsSetup.layoutFront; legend.orient = optionsSetup.layoutFront;
legend.textStyle = { legend.textStyle = {
color: optionsSetup.lengedColor, color: optionsSetup.legendColor,
fontSize: optionsSetup.lengedFontSize fontSize: optionsSetup.legendFontSize
}; };
legend.itemWidth = optionsSetup.lengedWidth; legend.itemWidth = optionsSetup.legendWidth;
}, },
// //
setOptionsColor() { setOptionsColor() {

Loading…
Cancel
Save