feat: migrate Modal Popover and Tooltip with shared overlay foundation

This commit is contained in:
maoyingjie
2026-10-22 23:39:51 +08:00
parent b086d7f30d
commit 2b4ac04df1
108 changed files with 6888 additions and 100 deletions
+11
View File
@@ -0,0 +1,11 @@
import { inject, type ComputedRef, type InjectionKey } from "vue";
export interface ConfigContext {
dir: ComputedRef<"ltr" | "rtl">;
locale: ComputedRef<string>;
}
export const configContextKey: InjectionKey<ConfigContext> =
Symbol("hv-config");
export function useConfig() {
return inject(configContextKey, undefined);
}