From 903c20335a88d7c2e5a6fd17b9e74bced14213d4 Mon Sep 17 00:00:00 2001 From: Xc <124118265@qq.com> Date: Mon, 30 May 2022 09:39:12 +0800 Subject: [PATCH] refactor(components): [popconfirm] export instance type (#7967) --- packages/components/popconfirm/src/popconfirm.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/packages/components/popconfirm/src/popconfirm.ts b/packages/components/popconfirm/src/popconfirm.ts index 9186fd6f67..6823ac1096 100644 --- a/packages/components/popconfirm/src/popconfirm.ts +++ b/packages/components/popconfirm/src/popconfirm.ts @@ -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 + +export type PopconfirmInstance = InstanceType