element-plus/packages/tokens/dialog.ts

14 lines
440 B
TypeScript
Raw Normal View History

import type { ComputedRef, CSSProperties, InjectionKey, Ref } from 'vue'
import type { useNamespace } from '@element-plus/hooks'
export type DialogContext = {
dialogRef: Ref<HTMLElement | undefined>
headerRef: Ref<HTMLElement | undefined>
ns: ReturnType<typeof useNamespace>
rendered: Ref<boolean>
style: ComputedRef<CSSProperties>
}
export const dialogInjectionKey: InjectionKey<DialogContext> =
Symbol('dialogInjectionKey')