mirror of
https://github.com/dataease/dataease.git
synced 2026-06-09 21:27:21 +08:00
refactor: 历史样式适配 (#18261)
This commit is contained in:
@@ -380,9 +380,20 @@ const fontSizeList = computed(() => {
|
||||
return arr
|
||||
})
|
||||
|
||||
const colorForm = computed(
|
||||
() => canvasStyleData.value.component.chartColor as DeepPartial<ChartAttr>
|
||||
)
|
||||
const colorForm = computed(() => ({
|
||||
...(canvasStyleData.value.component.chartColor as DeepPartial<ChartAttr>),
|
||||
label: {
|
||||
color: '#000000',
|
||||
fontSize: 12,
|
||||
...(canvasStyleData.value.component.chartColor?.label || {})
|
||||
},
|
||||
tooltip: {
|
||||
color: '#000000',
|
||||
fontSize: 12,
|
||||
backgroundColor: '#FFFFFF',
|
||||
...(canvasStyleData.value.component.chartColor?.tooltip || {})
|
||||
}
|
||||
}))
|
||||
|
||||
const seniorForm = computed(() => canvasStyleData.value.component.seniorStyleSetting)
|
||||
|
||||
|
||||
Reference in New Issue
Block a user