update 优化地图工具方法,调整地图样式
This commit is contained in:
@@ -0,0 +1,7 @@
|
||||
:root {
|
||||
|
||||
--antSelectDropdownBg: #00152b;
|
||||
--antSelectDropdownBorderColor: #1b7ef2;
|
||||
/*服务详情数据*/
|
||||
|
||||
}
|
||||
@@ -0,0 +1,23 @@
|
||||
export const themeList = {
|
||||
dark: {
|
||||
/*下拉框*/
|
||||
antSelectDropdownBg: '#00152b',
|
||||
antSelectDropdownBorderColor: '#1b7ef2',
|
||||
/*服务详情数据*/
|
||||
typeTimeSelectColor: '#45a2ff',
|
||||
typeTimeUnSelectColor: '#a3a4a4',
|
||||
},
|
||||
light: {
|
||||
antSelectDropdownBg: '#fff',
|
||||
antSelectDropdownBorderColor: '#1b7ef2',
|
||||
typeTimeSelectColor: '#45a2ff',
|
||||
typeTimeUnSelectColor: '#a3a4a4',
|
||||
},
|
||||
};
|
||||
|
||||
export function setTheme(theme: string) {
|
||||
const themeStyle = themeList[theme];
|
||||
for (const key in themeStyle) {
|
||||
document.documentElement.style.setProperty(`--${key}`, themeStyle[key]);
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user