优化--中国地图-气泡地图

qianming 2 years ago
parent a8738fcfb4
commit a797577e17

@ -134,8 +134,16 @@ export const widgetAirbubbleMap = {
],
},
{
name: '字体设置',
name: '地图设置',
list: [
{
type: 'el-switch',
label: '文字显示',
name: 'isShowMap',
required: false,
placeholder: '',
value: true
},
{
type: 'el-input-number',
label: '文字大小',

@ -215,24 +215,12 @@ export default {
options: {
//backgroundColor: '#0F1C3C',
tooltip: {
show: true,
trigger: 'item',
formatter: function (params) {
if (params.value.length >1 ) {
return (
"  " +
params.name +
"   " +
params.value[2] +
"  "
);
return params.data.name + "" + params.data.value[2];
} else {
return (
"  " +
params.name +
"   " +
params.value +
"  "
);
return params.name;
}
}
},
@ -472,7 +460,7 @@ export default {
const label = this.options.series[0]["label"];
const normal = {
position: "right",
show: true,
show: optionsSetup.isShowMap,
color: optionsSetup.fontTextColor,
fontSize: optionsSetup.fontTextSize,
fontWeight: optionsSetup.fontTextWeight

Loading…
Cancel
Save