mirror of
https://github.com/dataease/dataease.git
synced 2026-05-23 22:08:34 +08:00
feat(视图-地图): 地图边线颜色配置
This commit is contained in:
@@ -23,7 +23,8 @@ export const DEFAULT_COLOR_CASE = {
|
||||
dimensionColor: '#000000',
|
||||
quotaColor: '#4E81BB',
|
||||
tableBorderColor: '#E6E7E4',
|
||||
seriesColors: [] // 格式:{"name":"s1","color":"","isCustom":false}
|
||||
seriesColors: [], // 格式:{"name":"s1","color":"","isCustom":false}
|
||||
areaBorderColor: '#303133'
|
||||
}
|
||||
|
||||
export const DEFAULT_COLOR_CASE_DARK = {
|
||||
@@ -37,7 +38,8 @@ export const DEFAULT_COLOR_CASE_DARK = {
|
||||
dimensionColor: '#ffffff',
|
||||
quotaColor: '#4E81BB',
|
||||
tableBorderColor: '#CCCCCC',
|
||||
seriesColors: [] // 格式:{"name":"s1","color":"","isCustom":false}
|
||||
seriesColors: [], // 格式:{"name":"s1","color":"","isCustom":false}
|
||||
areaBorderColor: '#EBEEF5'
|
||||
}
|
||||
export const DEFAULT_SIZE = {
|
||||
barDefault: true,
|
||||
@@ -835,7 +837,15 @@ export const BASE_MAP = {
|
||||
type: 'map',
|
||||
map: 'MAP',
|
||||
roam: true,
|
||||
data: []
|
||||
data: [],
|
||||
itemStyle: {
|
||||
normal: {
|
||||
|
||||
},
|
||||
emphasis: {
|
||||
|
||||
}
|
||||
}
|
||||
}
|
||||
]
|
||||
}
|
||||
|
||||
@@ -9,6 +9,9 @@ export function baseMapOption(chart_option, chart, themeStyle, curAreaCode) {
|
||||
customAttr = JSON.parse(chart.customAttr)
|
||||
if (customAttr.color) {
|
||||
chart_option.color = customAttr.color.colors
|
||||
if (customAttr.color.areaBorderColor) {
|
||||
chart_option.series[0].itemStyle.normal.borderColor = customAttr.color.areaBorderColor
|
||||
}
|
||||
}
|
||||
// tooltip
|
||||
if (customAttr.tooltip) {
|
||||
|
||||
@@ -2600,7 +2600,8 @@ export const TYPE_CONFIGS = [
|
||||
'color-selector': [
|
||||
'value',
|
||||
'custom',
|
||||
'alpha'
|
||||
'alpha',
|
||||
'area-border-color'
|
||||
],
|
||||
'label-selector': [
|
||||
'show',
|
||||
|
||||
@@ -105,6 +105,10 @@
|
||||
<el-form-item v-show="showProperty('alpha')" :label="$t('chart.not_alpha')" class="form-item form-item-slider">
|
||||
<el-slider v-model="colorForm.alpha" show-input :show-input-controls="false" input-size="mini" @change="changeColorCase('alpha')" />
|
||||
</el-form-item>
|
||||
|
||||
<el-form-item v-show="showProperty('area-border-color') " :label="$t('chart.area_border_color')" class="form-item">
|
||||
<el-color-picker v-model="colorForm.areaBorderColor" class="color-picker-style" :predefine="predefineColors" @change="changeColorCase('areaBorderColor')" />
|
||||
</el-form-item>
|
||||
</el-form>
|
||||
</el-col>
|
||||
</div>
|
||||
|
||||
Reference in New Issue
Block a user