2022-03-25 15:35:56 +08:00
|
|
|
import type { CSSProperties, ComputedRef, InjectionKey, Ref } from 'vue'
|
2022-02-22 12:49:28 +08:00
|
|
|
import type { useNamespace } from '@element-plus/hooks'
|
|
|
|
|
|
|
|
export type DialogContext = {
|
2022-03-01 23:43:50 +08:00
|
|
|
dialogRef: Ref<HTMLElement | undefined>
|
|
|
|
headerRef: Ref<HTMLElement | undefined>
|
2022-05-10 17:58:18 +08:00
|
|
|
bodyId: Ref<string>
|
2022-02-22 12:49:28 +08:00
|
|
|
ns: ReturnType<typeof useNamespace>
|
|
|
|
rendered: Ref<boolean>
|
|
|
|
style: ComputedRef<CSSProperties>
|
|
|
|
}
|
|
|
|
|
2022-03-01 23:43:50 +08:00
|
|
|
export const dialogInjectionKey: InjectionKey<DialogContext> =
|
|
|
|
Symbol('dialogInjectionKey')
|