mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
docs(components): [popconfirm] set type definition for virtual-ref (#22229)
chore: set comments Co-authored-by: Dsaquel <291874700n@gmail.com>
This commit is contained in:
@@ -1,7 +1,10 @@
|
||||
import { buttonTypes } from '@element-plus/components/button'
|
||||
import { QuestionFilled } from '@element-plus/icons-vue'
|
||||
import { buildProps, iconPropType } from '@element-plus/utils'
|
||||
import { useTooltipContentProps } from '@element-plus/components/tooltip'
|
||||
import {
|
||||
useTooltipContentProps,
|
||||
useTooltipTriggerProps,
|
||||
} from '@element-plus/components/tooltip'
|
||||
|
||||
import type { ExtractPropTypes, __ExtractPublicPropTypes } from 'vue'
|
||||
import type Popconfirm from './popconfirm.vue'
|
||||
@@ -82,6 +85,8 @@ export const popconfirmProps = buildProps({
|
||||
type: [String, Number],
|
||||
default: 150,
|
||||
},
|
||||
virtualTriggering: useTooltipTriggerProps.virtualTriggering,
|
||||
virtualRef: useTooltipTriggerProps.virtualRef,
|
||||
} as const)
|
||||
|
||||
export const popconfirmEmits = {
|
||||
|
||||
@@ -4,9 +4,11 @@ import type { Measurable } from './constants'
|
||||
import type Trigger from './trigger.vue'
|
||||
|
||||
export const popperTriggerProps = buildProps({
|
||||
/** @description Indicates the reference element to which the popper is attached */
|
||||
virtualRef: {
|
||||
type: definePropType<Measurable>(Object),
|
||||
},
|
||||
/** @description Indicates whether virtual triggering is enabled */
|
||||
virtualTriggering: Boolean,
|
||||
onMouseenter: {
|
||||
type: definePropType<(e: Event) => void>(Function),
|
||||
|
||||
Reference in New Issue
Block a user