mirror of
https://github.com/dataease/dataease.git
synced 2025-02-25 12:03:05 +08:00
Merge pull request #13477 from dataease/pr@dev-v2@chart-map-style
feat(图表): 地图、气泡地图的边线以及底色支持配置透明色
This commit is contained in:
commit
c9d6fd1125
@ -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"
|
||||
|
@ -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
|
||||
|
Loading…
Reference in New Issue
Block a user