mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-14 17:31:02 +08:00
14 lines
440 B
TypeScript
14 lines
440 B
TypeScript
import type { CSSProperties, ComputedRef, 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')
|