mirror of
https://gitee.com/anji-plus/report.git
synced 2026-04-13 10:38:34 +08:00
优化--中国地图-气泡地图
This commit is contained in:
@@ -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,
|
||||
formatter: function(params) {
|
||||
if (params.value.length > 1) {
|
||||
return (
|
||||
" " +
|
||||
params.name +
|
||||
" " +
|
||||
params.value[2] +
|
||||
" "
|
||||
);
|
||||
trigger: 'item',
|
||||
formatter: function (params) {
|
||||
if (params.value.length >1 ) {
|
||||
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
|
||||
|
||||
Reference in New Issue
Block a user