feat: implement PolyWeather dashboard components and state management store

This commit is contained in:
2569718930@qq.com
2026-04-23 10:31:09 +08:00
parent b65bdd010d
commit 73eeb11b88
5 changed files with 780 additions and 551 deletions
+5
View File
@@ -42,6 +42,10 @@ interface DashboardStoreValue extends DashboardState {
force?: boolean,
depth?: "panel" | "market" | "nearby" | "full",
) => Promise<CityDetail>;
ensureCityMarketScan: (
cityName: string,
force?: boolean,
) => Promise<CityDetail["market_scan"] | null>;
focusCity: (cityName: string) => Promise<void>;
forecastModalMode: ForecastModalMode | null;
futureModalDate: string | null;
@@ -1113,6 +1117,7 @@ export function DashboardStoreProvider({
setIsPanelOpen(false);
},
ensureCityDetail,
ensureCityMarketScan,
focusCity,
forecastModalMode,
futureModalDate,