mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-16 02:11:48 +08:00
9c51dab123
* feat(components): [dialog] a11y and focus trap on dialog components * feat(components): [dialog] remove default browser focus style * feat(components): [dialog] clean up async and comment
15 lines
462 B
TypeScript
15 lines
462 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>
|
|
bodyId: Ref<string>
|
|
ns: ReturnType<typeof useNamespace>
|
|
rendered: Ref<boolean>
|
|
style: ComputedRef<CSSProperties>
|
|
}
|
|
|
|
export const dialogInjectionKey: InjectionKey<DialogContext> =
|
|
Symbol('dialogInjectionKey')
|