fix: chromatic failure (#15757)
This commit is contained in:
parent
5949bb6c7f
commit
22f874c81d
|
@ -69,7 +69,7 @@ const emit = defineEmits<{
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
//const viewId = inject(DI.viewId);
|
//const viewId = inject(DI.viewId);
|
||||||
const injectedPageMetadata = inject(DI.pageMetadata);
|
const injectedPageMetadata = inject(DI.pageMetadata, ref(null));
|
||||||
const pageMetadata = computed(() => props.overridePageMetadata ?? injectedPageMetadata.value);
|
const pageMetadata = computed(() => props.overridePageMetadata ?? injectedPageMetadata.value);
|
||||||
|
|
||||||
const hideTitle = computed(() => inject('shouldOmitHeaderTitle', false) || props.hideTitle);
|
const hideTitle = computed(() => inject('shouldOmitHeaderTitle', false) || props.hideTitle);
|
||||||
|
|
|
@ -10,7 +10,7 @@ export const DI = {
|
||||||
routerCurrentDepth: Symbol() as InjectionKey<number>,
|
routerCurrentDepth: Symbol() as InjectionKey<number>,
|
||||||
router: Symbol() as InjectionKey<Router>,
|
router: Symbol() as InjectionKey<Router>,
|
||||||
mock: Symbol() as InjectionKey<boolean>,
|
mock: Symbol() as InjectionKey<boolean>,
|
||||||
pageMetadata: Symbol() as InjectionKey<Ref<Record<string, any>>>,
|
pageMetadata: Symbol() as InjectionKey<Ref<Record<string, any> | null>>,
|
||||||
viewId: Symbol() as InjectionKey<string>,
|
viewId: Symbol() as InjectionKey<string>,
|
||||||
currentStickyTop: Symbol() as InjectionKey<Ref<number>>,
|
currentStickyTop: Symbol() as InjectionKey<Ref<number>>,
|
||||||
currentStickyBottom: Symbol() as InjectionKey<Ref<number>>,
|
currentStickyBottom: Symbol() as InjectionKey<Ref<number>>,
|
||||||
|
|
|
@ -66,7 +66,7 @@ const emit = defineEmits<{
|
||||||
(ev: 'update:tab', key: string);
|
(ev: 'update:tab', key: string);
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const pageMetadata = inject(DI.pageMetadata);
|
const pageMetadata = inject(DI.pageMetadata, ref(null));
|
||||||
|
|
||||||
const el = useTemplateRef('el');
|
const el = useTemplateRef('el');
|
||||||
const tabHighlightEl = useTemplateRef('tabHighlightEl');
|
const tabHighlightEl = useTemplateRef('tabHighlightEl');
|
||||||
|
|
Loading…
Reference in New Issue