feat: 微客宝H5客户端 - 基础架构+核心页面

This commit is contained in:
li
2026-03-14 19:44:03 +08:00
parent 54d2f617bb
commit 0e974da09c
3738 changed files with 811180 additions and 21 deletions
+22
View File
@@ -0,0 +1,22 @@
import { inject, provide, computed } from "vue";
const TAB_STATUS_KEY = /* @__PURE__ */ Symbol();
const ALL_TAB_STATUS_KEY = /* @__PURE__ */ Symbol();
const useTabStatus = () => inject(TAB_STATUS_KEY, null);
const useAllTabStatus = () => inject(ALL_TAB_STATUS_KEY, null);
const useProvideTabStatus = (status) => {
const allTabStatus = useAllTabStatus();
provide(TAB_STATUS_KEY, status);
provide(
ALL_TAB_STATUS_KEY,
computed(() => {
return (allTabStatus == null || allTabStatus.value) && status.value;
})
);
};
export {
ALL_TAB_STATUS_KEY,
TAB_STATUS_KEY,
useAllTabStatus,
useProvideTabStatus,
useTabStatus
};