refactor(components): [cascader] adjust the ts type (#21966)

This commit is contained in:
thinkasany
2025-08-31 15:42:03 +08:00
committed by GitHub
parent 52cfb4afd8
commit 1671338036
2 changed files with 3 additions and 3 deletions

View File

@@ -247,7 +247,7 @@ import {
import { ArrowDown, Check } from '@element-plus/icons-vue'
import { cascaderEmits, cascaderProps } from './cascader'
import type { Options, State } from '@element-plus/components/popper'
import type { Options } from '@element-plus/components/popper'
import type { ComputedRef, Ref, StyleValue } from 'vue'
import type { TooltipInstance } from '@element-plus/components/tooltip'
import type { InputInstance } from '@element-plus/components/input'
@@ -265,7 +265,7 @@ const popperOptions: Partial<Options> = {
name: 'arrowPosition',
enabled: true,
phase: 'main',
fn: ({ state }: { state: State }) => {
fn: ({ state }) => {
const { modifiersData, placement } = state
if (['right', 'left', 'bottom', 'top'].includes(placement)) return
if (modifiersData.arrow) {

View File

@@ -17,4 +17,4 @@ export * from './src/content'
export * from './src/arrow'
export * from './src/constants'
export type { Placement, Options, State } from '@popperjs/core'
export type { Placement, Options } from '@popperjs/core'