mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-13 17:05:47 +08:00
refactor(components): [popconfirm] export instance type (#7967)
This commit is contained in:
parent
25313f1075
commit
903c20335a
@ -3,6 +3,7 @@ import { QuestionFilled } from '@element-plus/icons-vue'
|
|||||||
import { buildProps, definePropType, iconPropType } from '@element-plus/utils'
|
import { buildProps, definePropType, iconPropType } from '@element-plus/utils'
|
||||||
import { useTooltipContentProps } from '@element-plus/components/tooltip'
|
import { useTooltipContentProps } from '@element-plus/components/tooltip'
|
||||||
import type { Component, ExtractPropTypes } from 'vue'
|
import type { Component, ExtractPropTypes } from 'vue'
|
||||||
|
import type Popconfirm from './popconfirm.vue'
|
||||||
|
|
||||||
const popConfirmButtonTypes = [...buttonTypes, 'text'] as const
|
const popConfirmButtonTypes = [...buttonTypes, 'text'] as const
|
||||||
|
|
||||||
@ -46,3 +47,5 @@ export const popconfirmProps = buildProps({
|
|||||||
persistent: useTooltipContentProps.persistent,
|
persistent: useTooltipContentProps.persistent,
|
||||||
} as const)
|
} as const)
|
||||||
export type PopconfirmProps = ExtractPropTypes<typeof popconfirmProps>
|
export type PopconfirmProps = ExtractPropTypes<typeof popconfirmProps>
|
||||||
|
|
||||||
|
export type PopconfirmInstance = InstanceType<typeof Popconfirm>
|
||||||
|
Loading…
Reference in New Issue
Block a user