chore(components): [dialog] add instance type (#18127)

refactor(components): [dialog] add instance type
This commit is contained in:
cosine7 2024-09-03 18:16:46 +08:00 committed by GitHub
parent 8e6b88dcca
commit c25026c542
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194

View File

@ -3,6 +3,7 @@ import { UPDATE_MODEL_EVENT } from '@element-plus/constants'
import { dialogContentProps } from './dialog-content'
import type { ExtractPropTypes } from 'vue'
import type Dialog from './dialog.vue'
type DoneFn = (cancel?: boolean) => void
export type DialogBeforeCloseFn = (done: DoneFn) => void
@ -120,3 +121,4 @@ export const dialogEmits = {
closeAutoFocus: () => true,
}
export type DialogEmits = typeof dialogEmits
export type DialogInstance = InstanceType<typeof Dialog>