图标组件以及整理代码结构

This commit is contained in:
wzy-warehouse
2026-04-13 20:55:32 +08:00
parent 15b0d2e994
commit 4d2d8787b1
12 changed files with 316 additions and 125 deletions
+21
View File
@@ -0,0 +1,21 @@
import {
debrisFlowIcon,
flashFloodIcon,
landslideIcon,
riskAreaIcon,
waterLoggingIcon,
} from '@/assets';
// 引入图例钩子函数
export function useRainLegend() {
// 图例数据
const legendList = [
{ name: '滑坡隐患点', link: landslideIcon },
{ name: '泥石流隐患点', link: debrisFlowIcon },
{ name: '山洪隐患点', link: flashFloodIcon },
{ name: '内涝隐患点', link: waterLoggingIcon },
{ name: '风险区域', link: riskAreaIcon },
];
return { legendList };
}