feat(图表): 地图、气泡地图的边线以及底色支持配置透明色

This commit is contained in:
jianneng-fit2cloud 2024-11-21 19:35:32 +08:00
parent 6cf298f4bc
commit 88c658aaed
2 changed files with 3 additions and 1 deletions

View File

@ -706,6 +706,7 @@ onMounted(() => {
v-model="state.basicStyleForm.areaBorderColor"
:effect="themes"
is-custom
show-alpha
:trigger-width="108"
class="color-picker-style"
:predefine="predefineColors"
@ -725,6 +726,7 @@ onMounted(() => {
:persistent="false"
v-model="state.basicStyleForm.areaBaseColor"
is-custom
show-alpha
:effect="themes"
:trigger-width="108"
class="color-picker-style"

View File

@ -220,7 +220,7 @@ export class BubbleMap extends L7PlotChartView<ChoroplethOptions, Choropleth> {
const senior = parseJson(chart.senior)
const curAreaNameMapping = senior.areaMapping?.[areaId]
handleGeoJson(geoJson, curAreaNameMapping)
options.color = hexColorToRGBA(basicStyle.areaBaseColor, basicStyle.alpha)
options.color = basicStyle.areaBaseColor
if (!chart.data?.data?.length || !geoJson?.features?.length) {
options.label && (options.label.field = 'name')
return options