Files
element-plus/packages/components/popper/src/arrow.ts
dopamine 7be4a3765e chore: emits smaller declaration files (#20109)
* Revert "fix(types): packing unexpected types (#19419)"

This reverts commit 13506ffb81.

* Revert "chore: add explicit type annoation (#19352)"

* fix(typescript): borken import paths in declaration files

* chore: emits smaller declaration files
2025-03-18 10:08:44 +08:00

24 lines
864 B
TypeScript

import { buildProps } from '@element-plus/utils'
import type { ExtractPropTypes } from 'vue'
import type Arrow from './arrow.vue'
export const popperArrowProps = buildProps({
arrowOffset: {
type: Number,
default: 5,
},
} as const)
export type PopperArrowProps = ExtractPropTypes<typeof popperArrowProps>
export type PopperArrowInstance = InstanceType<typeof Arrow> & unknown
/** @deprecated use `popperArrowProps` instead, and it will be deprecated in the next major version */
export const usePopperArrowProps = popperArrowProps
/** @deprecated use `PopperArrowProps` instead, and it will be deprecated in the next major version */
export type UsePopperArrowProps = PopperArrowProps
/** @deprecated use `PopperArrowInstance` instead, and it will be deprecated in the next major version */
export type ElPopperArrowInstance = PopperArrowInstance