mirror of
https://github.com/element-plus/element-plus.git
synced 2024-11-27 02:01:15 +08:00
chore(components): [dialog] add instance type (#18127)
refactor(components): [dialog] add instance type
This commit is contained in:
parent
8e6b88dcca
commit
c25026c542
@ -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>
|
||||
|
Loading…
Reference in New Issue
Block a user