mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-11-30 02:08:12 +08:00
feat: add global properties typings (#5075)
This commit is contained in:
parent
784bc069da
commit
dad5dc1743
13
typings/global.d.ts
vendored
13
typings/global.d.ts
vendored
@ -94,4 +94,17 @@ declare module 'vue' {
|
||||
}
|
||||
}
|
||||
|
||||
declare module '@vue/runtime-core' {
|
||||
interface ComponentCustomProperties {
|
||||
$message: typeof import('element-plus')['ElMessage']
|
||||
$notify: typeof import('element-plus')['ElNotification']
|
||||
$msgbox: typeof import('element-plus')['ElMessageBox']
|
||||
$messageBox: typeof import('element-plus')['ElMessageBox']
|
||||
$alert: typeof import('element-plus')['ElMessageBox']['alert']
|
||||
$confirm: typeof import('element-plus')['ElMessageBox']['confirm']
|
||||
$prompt: typeof import('element-plus')['ElMessageBox']['prompt']
|
||||
$loading: typeof import('element-plus')['ElLoadingService']
|
||||
}
|
||||
}
|
||||
|
||||
export {}
|
||||
|
Loading…
Reference in New Issue
Block a user