隐患点风险点添加颜色

This commit is contained in:
wzy-warehouse
2026-06-17 15:41:47 +08:00
parent a018957454
commit 3c87fcb2a9
18 changed files with 43 additions and 25 deletions
+4 -4
View File
@@ -25,10 +25,10 @@ export const useHiddenPoint = () => {
};
/**
* 颜色
* 样式
*/
const color = {
probability: 'red',
const style = {
probability: { background: '#888888' },
};
/**
@@ -59,5 +59,5 @@ export const useHiddenPoint = () => {
}
}
return { field, color, getDisasterIcon };
return { field, style, getDisasterIcon };
};
+4 -4
View File
@@ -29,10 +29,10 @@ export const useRiskPoint = () => {
};
/**
* 颜色
* 样式
*/
const color = {
probability: 'red',
const style = {
probability: { background: '#888888' },
};
/**
@@ -43,5 +43,5 @@ export const useRiskPoint = () => {
return riskAreaIcon;
}
return { informationBoxTitle, field, color, getDisasterIcon };
return { informationBoxTitle, field, style, getDisasterIcon };
};