-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
8 changed files
with
97 additions
and
103 deletions.
There are no files selected for viewing
169 changes: 86 additions & 83 deletions
169
src/frontend/admin/src/components/scEcharts/echarts-theme-T.js
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,92 +1,95 @@ | ||
import colorTool from '@/utils/color' | ||
const style = getComputedStyle(document.documentElement) | ||
const el_color_primary = style.getPropertyValue('--el-color-primary') | ||
const el_color_info = style.getPropertyValue('--el-color-info') | ||
const el_text_color_primary = style.getPropertyValue('--el-text-color-primary') | ||
const el_border_color_lighter = style.getPropertyValue('--el-border-color-lighter') | ||
|
||
const T = { | ||
color: [el_color_primary, colorTool.lighten(el_color_primary, 0.5), ...colorTool.colorSets], | ||
grid: { | ||
left: '3%', | ||
right: '3%', | ||
bottom: '10', | ||
top: '40', | ||
containLabel: true, | ||
}, | ||
pie: { | ||
label: { | ||
color: el_color_info, | ||
}, | ||
}, | ||
gauge: { | ||
axisTick: { | ||
lineStyle: { | ||
color: el_color_info, | ||
}, | ||
}, | ||
splitLine: { | ||
lineStyle: { | ||
color: el_color_info, | ||
}, | ||
}, | ||
axisLabel: { | ||
color: el_color_info, | ||
}, | ||
title: { | ||
color: el_color_info, | ||
}, | ||
}, | ||
legend: { | ||
textStyle: { | ||
color: el_color_info, | ||
}, | ||
inactiveColor: 'rgba(128,128,128,0.4)', | ||
}, | ||
categoryAxis: { | ||
axisLine: { | ||
show: true, | ||
lineStyle: { | ||
color: 'rgba(128,128,128,0.2)', | ||
width: 1, | ||
export default { | ||
build() { | ||
const style = getComputedStyle(document.documentElement) | ||
const el_color_primary = style.getPropertyValue('--el-color-primary') | ||
const el_color_info = style.getPropertyValue('--el-color-info') | ||
const el_text_color_primary = style.getPropertyValue('--el-text-color-primary') | ||
const el_border_color_lighter = style.getPropertyValue('--el-border-color-lighter') | ||
|
||
return { | ||
color: [el_color_primary, colorTool.lighten(el_color_primary, 0.5), ...colorTool.colorSets], | ||
grid: { | ||
left: '3%', | ||
right: '3%', | ||
bottom: '10', | ||
top: '40', | ||
containLabel: true, | ||
}, | ||
}, | ||
axisTick: { | ||
show: false, | ||
lineStyle: { | ||
color: el_text_color_primary, | ||
pie: { | ||
label: { | ||
color: el_color_info, | ||
}, | ||
}, | ||
}, | ||
axisLabel: { | ||
color: el_color_info, | ||
}, | ||
splitLine: { | ||
show: false, | ||
lineStyle: { | ||
color: [el_border_color_lighter], | ||
gauge: { | ||
axisTick: { | ||
lineStyle: { | ||
color: el_color_info, | ||
}, | ||
}, | ||
splitLine: { | ||
lineStyle: { | ||
color: el_color_info, | ||
}, | ||
}, | ||
axisLabel: { | ||
color: el_color_info, | ||
}, | ||
title: { | ||
color: el_color_info, | ||
}, | ||
}, | ||
}, | ||
splitArea: { | ||
show: false, | ||
areaStyle: { | ||
color: ['rgba(255,255,255,0.01)', 'rgba(0,0,0,0.01)'], | ||
legend: { | ||
textStyle: { | ||
color: el_color_info, | ||
}, | ||
inactiveColor: 'rgba(128,128,128,0.4)', | ||
}, | ||
}, | ||
}, | ||
valueAxis: { | ||
axisLine: { | ||
show: false, | ||
lineStyle: { | ||
color: el_color_info, | ||
categoryAxis: { | ||
axisLine: { | ||
show: true, | ||
lineStyle: { | ||
color: 'rgba(128,128,128,0.2)', | ||
width: 1, | ||
}, | ||
}, | ||
axisTick: { | ||
show: false, | ||
lineStyle: { | ||
color: el_text_color_primary, | ||
}, | ||
}, | ||
axisLabel: { | ||
color: el_color_info, | ||
}, | ||
splitLine: { | ||
show: false, | ||
lineStyle: { | ||
color: [el_border_color_lighter], | ||
}, | ||
}, | ||
splitArea: { | ||
show: false, | ||
areaStyle: { | ||
color: ['rgba(255,255,255,0.01)', 'rgba(0,0,0,0.01)'], | ||
}, | ||
}, | ||
}, | ||
}, | ||
splitLine: { | ||
show: true, | ||
lineStyle: { | ||
color: 'rgba(128,128,128,0.2)', | ||
valueAxis: { | ||
axisLine: { | ||
show: false, | ||
lineStyle: { | ||
color: el_color_info, | ||
}, | ||
}, | ||
splitLine: { | ||
show: true, | ||
lineStyle: { | ||
color: 'rgba(128,128,128,0.2)', | ||
}, | ||
}, | ||
}, | ||
}, | ||
} | ||
}, | ||
} | ||
|
||
export default T | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters