重构组件结构,添加周边分析组件结构(但无具体实现)

This commit is contained in:
wzy-warehouse
2026-04-21 19:50:57 +08:00
parent 37c412468a
commit 947787f717
29 changed files with 247 additions and 111 deletions
@@ -0,0 +1,25 @@
import { useStatusStore } from '@/stores/useStatusStore';
export const useLeftHandle = () => {
/**
* 周边分析
*/
const clickAroundAnalysis = (status: unknown) => {
// 如果选中,隐藏右侧按钮,取消选中则显示右侧按钮
if (status as boolean) {
useStatusStore().uiComponents.rightButton.show = false;
// 加载周边分析
useStatusStore().functionStatus.aroundAnalysis.loading = true;
useStatusStore().functionStatus.aroundAnalysis.show = true;
} else {
useStatusStore().uiComponents.rightButton.show = true;
// 隐藏周边分析
useStatusStore().functionStatus.aroundAnalysis.show = false;
}
};
return {
clickAroundAnalysis,
};
};