12345678910111213141516 |
- import { type ComputedRef, type InjectionKey, inject } from 'vue'
- export const MAIN_LAYOUT_KEY = Symbol('main-content-container') as InjectionKey<
- ComputedRef<HTMLElement | undefined>
- >
- export const useMainLayoutContainer = () => {
- return {
- node: inject(MAIN_LAYOUT_KEY),
- }
- }
|