|
@@ -45,7 +45,7 @@ const getOption = () => {
|
|
|
left: 19,
|
|
left: 19,
|
|
|
top: 9.5,
|
|
top: 9.5,
|
|
|
textStyle: {
|
|
textStyle: {
|
|
|
- color: '#2B2F36',
|
|
|
|
|
|
|
+ color: themeStore.theme === 'dark' ? '#f0f1f3' : '#2B2F36',
|
|
|
fontWeight: '700',
|
|
fontWeight: '700',
|
|
|
fontFamily: 'Lato-Light',
|
|
fontFamily: 'Lato-Light',
|
|
|
fontSize: '14px'
|
|
fontSize: '14px'
|
|
@@ -95,7 +95,7 @@ const getOption = () => {
|
|
|
axisTick: { show: false },
|
|
axisTick: { show: false },
|
|
|
axisLine: {
|
|
axisLine: {
|
|
|
lineStyle: {
|
|
lineStyle: {
|
|
|
- color: '#eaebed'
|
|
|
|
|
|
|
+ color: themeStore.theme === 'dark' ? '#8d9095' : '#eaebed'
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
axisLabel: {
|
|
axisLabel: {
|
|
@@ -111,13 +111,13 @@ const getOption = () => {
|
|
|
show: true,
|
|
show: true,
|
|
|
lineStyle: {
|
|
lineStyle: {
|
|
|
type: 'dashed',
|
|
type: 'dashed',
|
|
|
- color: '#3F434A'
|
|
|
|
|
|
|
+ color: themeStore.theme === 'dark' ? '#8d9095' : '#eaebed'
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
axisLine: {
|
|
axisLine: {
|
|
|
show: true,
|
|
show: true,
|
|
|
lineStyle: {
|
|
lineStyle: {
|
|
|
- color: '#3F434A'
|
|
|
|
|
|
|
+ color: themeStore.theme === 'dark' ? '#8d9095' : '#eaebed'
|
|
|
}
|
|
}
|
|
|
},
|
|
},
|
|
|
axisLabel: {
|
|
axisLabel: {
|
|
@@ -146,7 +146,7 @@ const getOption = () => {
|
|
|
top: 6,
|
|
top: 6,
|
|
|
right: 8,
|
|
right: 8,
|
|
|
iconStyle: {
|
|
iconStyle: {
|
|
|
- borderColor: '#2B2F36'
|
|
|
|
|
|
|
+ borderColor: themeStore.theme === 'dark' ? '#f0f1f3' : '#2B2F36'
|
|
|
},
|
|
},
|
|
|
emphasis: {
|
|
emphasis: {
|
|
|
iconStyle: {
|
|
iconStyle: {
|
|
@@ -235,7 +235,7 @@ watch(
|
|
|
}
|
|
}
|
|
|
})
|
|
})
|
|
|
},
|
|
},
|
|
|
- { immediate: true }
|
|
|
|
|
|
|
+ { immediate: true, deep: true }
|
|
|
)
|
|
)
|
|
|
|
|
|
|
|
// 监听窗口大小变化
|
|
// 监听窗口大小变化
|