refactor(components): [popconfirm] export instance type (#7967)

This commit is contained in:
Xc 2022-05-30 09:39:12 +08:00 committed by GitHub
parent 25313f1075
commit 903c20335a
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -3,6 +3,7 @@ import { QuestionFilled } from '@element-plus/icons-vue'
import { buildProps, definePropType, iconPropType } from '@element-plus/utils'
import { useTooltipContentProps } from '@element-plus/components/tooltip'
import type { Component, ExtractPropTypes } from 'vue'
import type Popconfirm from './popconfirm.vue'
const popConfirmButtonTypes = [...buttonTypes, 'text'] as const
@ -46,3 +47,5 @@ export const popconfirmProps = buildProps({
persistent: useTooltipContentProps.persistent,
} as const)
export type PopconfirmProps = ExtractPropTypes<typeof popconfirmProps>
export type PopconfirmInstance = InstanceType<typeof Popconfirm>