forked from github/dataease
Merge pull request #12597 from dataease/pr@dev-v2@chart-map-color
feat(图表): 地图以及气泡地图支持整体填充地图区域的颜色 #11900
This commit is contained in:
commit
fbc02de626
@ -754,7 +754,7 @@ export default {
|
||||
color_simple: '简洁',
|
||||
not_alpha: '不透明度',
|
||||
area_border_color: '地图边线',
|
||||
area_base_color: '底图',
|
||||
area_base_color: '地图区块填充',
|
||||
size: '大小',
|
||||
bar_width: '柱宽',
|
||||
bar_gap: '柱间隔',
|
||||
|
@ -585,6 +585,8 @@ onMounted(() => {
|
||||
/>
|
||||
</el-form-item>
|
||||
</el-col>
|
||||
</el-row>
|
||||
<el-row :gutter="8">
|
||||
<el-col :span="12" v-if="showProperty('areaBaseColor')">
|
||||
<el-form-item
|
||||
:label="t('chart.area_base_color')"
|
||||
|
@ -32,7 +32,8 @@ export class BubbleMap extends L7PlotChartView<ChoroplethOptions, Choropleth> {
|
||||
properties: EditorProperty[] = [...MAP_EDITOR_PROPERTY, 'bubble-animate']
|
||||
propertyInner = {
|
||||
...MAP_EDITOR_PROPERTY_INNER,
|
||||
'tooltip-selector': [...MAP_EDITOR_PROPERTY_INNER['tooltip-selector'], 'carousel']
|
||||
'tooltip-selector': [...MAP_EDITOR_PROPERTY_INNER['tooltip-selector'], 'carousel'],
|
||||
'basic-style-selector': [...MAP_EDITOR_PROPERTY_INNER['basic-style-selector'], 'areaBaseColor']
|
||||
}
|
||||
axis = MAP_AXIS_TYPE
|
||||
axisConfig: AxisConfig = {
|
||||
|
@ -46,7 +46,14 @@ export class Map extends L7PlotChartView<ChoroplethOptions, Choropleth> {
|
||||
properties: EditorProperty[] = [...MAP_EDITOR_PROPERTY, 'legend-selector']
|
||||
propertyInner: EditorPropertyInner = {
|
||||
...MAP_EDITOR_PROPERTY_INNER,
|
||||
'basic-style-selector': ['colors', 'alpha', 'areaBorderColor', 'zoom', 'gradient-color'],
|
||||
'basic-style-selector': [
|
||||
'colors',
|
||||
'alpha',
|
||||
'areaBorderColor',
|
||||
'areaBaseColor',
|
||||
'zoom',
|
||||
'gradient-color'
|
||||
],
|
||||
'legend-selector': ['icon', 'fontSize', 'color'],
|
||||
'tooltip-selector': [...MAP_EDITOR_PROPERTY_INNER['tooltip-selector'], 'carousel']
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user