style: 优化暗黑主题下组件的样式
This commit is contained in:
parent
2c0f311041
commit
c3d78c72fa
@ -25,6 +25,10 @@ const themeStore = useThemeStore();
|
||||
const { domRef, updateOptions } = useEcharts(() => ({
|
||||
tooltip: {
|
||||
trigger: 'item',
|
||||
textStyle: {
|
||||
color: themeStore.darkMode ? '#dededf' : '#333639'
|
||||
},
|
||||
backgroundColor: themeStore.darkMode ? '#48484e' : '#fff',
|
||||
formatter: '{a} <br/>{b}: {d}%'
|
||||
},
|
||||
legend: {
|
||||
@ -87,6 +91,8 @@ function updateLocale() {
|
||||
opts.series[0].name = originOpts.series[0].name;
|
||||
opts.series[0].color = originOpts.series[0].color;
|
||||
opts.series[0].itemStyle.borderColor = originOpts.series[0].itemStyle.borderColor;
|
||||
opts.tooltip.textStyle.color = originOpts.tooltip.textStyle.color;
|
||||
opts.tooltip.backgroundColor = originOpts.tooltip.backgroundColor;
|
||||
|
||||
if (props.type === 0) {
|
||||
const retryTask = props.modelValue.retryTask;
|
||||
|
Loading…
Reference in New Issue
Block a user