图标标题背景

This commit is contained in:
13713575202 2025-04-24 11:59:05 +08:00
parent 5ed2cf5a8e
commit b0d08dfd3f
4 changed files with 29 additions and 41 deletions

Binary file not shown.

After

Width:  |  Height:  |  Size: 38 KiB

Binary file not shown.

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 7.5 KiB

View File

@ -46,9 +46,9 @@ const chartsData = reactive({
geo3D: { geo3D: {
map: mapName.value, map: mapName.value,
roam: true, roam: true,
zoom: 0.9, zoom: 1.2,
show: true, show: true,
zlevel: -2, // zlevel: -1, //
viewControl: { viewControl: {
distance: 110, distance: 110,
alpha: 60, alpha: 60,
@ -62,7 +62,7 @@ const chartsData = reactive({
}, },
itemStyle: { itemStyle: {
// //
color: 'rgba(48,160,187,0.8)', // color: 'rgba(75,255,180,0.2)', //
opacity: 1, // [ default: 1 ] opacity: 1, // [ default: 1 ]
borderWidth: 1.5, // (线) [ default: 0 ] borderWidth: 1.5, // (线) [ default: 0 ]
borderColor: '#4bffb4', // [ default: #333 ] borderColor: '#4bffb4', // [ default: #333 ]
@ -88,19 +88,7 @@ const chartsData = reactive({
color: '#fff', color: '#fff',
}, },
itemStyle: { itemStyle: {
// show: false, color: 'rgba(75,255,180,0.3)', //
color: {
type: 'linear', // 线
x: 0,
y: 0,
x2: 0,
y2: 1,
colorStops: [
{ offset: 0, color: '#45bfe9' },
{ offset: 1, color: '#01589c' },
],
global: false, // false
},
}, },
}, },
}, },
@ -152,7 +140,7 @@ const chartsData = reactive({
show: true, show: true,
itemStyle: { itemStyle: {
// //
color: 'rgba(48,160,187,0.8)', // color: 'rgba(75,255,180,0.2)', //
opacity: 1, // [ default: 1 ] opacity: 1, // [ default: 1 ]
borderWidth: 1.5, // (线) [ default: 0 ] borderWidth: 1.5, // (线) [ default: 0 ]
borderColor: 'rgba(92, 184, 238, 1)', // [ default: #333 ] borderColor: 'rgba(92, 184, 238, 1)', // [ default: #333 ]
@ -171,27 +159,27 @@ const chartsData = reactive({
borderColor: '#000', borderColor: '#000',
}, },
}, },
emphasis: { // emphasis: {
// // //
label: { // label: {
show: true, // show: true,
color: '#fff', // color: '#fff',
}, // },
itemStyle: { // itemStyle: {
// show: false, // // show: false,
color: { // areaColor: {
type: 'linear', // 线 // type: 'linear',
x: 0, // x: 0,
y: 0, // y: 0,
x2: 0, // x2: 1,
y2: 1, // y2: 0,
colorStops: [ // colorStops: [
{ offset: 0, color: '#45bfe9' }, // { offset: 0, color: '#4bffb4' },
{ offset: 1, color: '#01589c' }, // { offset: 1, color: '#4bffb4' },
], // ],
}, // },
}, // },
}, // },
}, },
// //
{ {
@ -258,8 +246,8 @@ div {
max-height: 1000px; max-height: 1000px;
} }
.map-pos { .map-pos {
width: 80%; width: 100%;
height: 80%; height: 100%;
position: absolute; position: absolute;
bottom: 0; bottom: 0;
left: 50%; left: 50%;

View File

@ -70,7 +70,7 @@ watch(
letter-spacing: 4px; letter-spacing: 4px;
text-shadow: -2px 0 0 1px #add8f1; text-shadow: -2px 0 0 1px #add8f1;
width: 100%; width: 100%;
padding: 0 36px; padding: 0 36px 0 72px;
box-sizing: border-box; box-sizing: border-box;
position: absolute; position: absolute;
left: 0; left: 0;