mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
refactor(components): [cascader] adjust the ts type (#21966)
This commit is contained in:
@@ -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) {
|
||||
|
||||
@@ -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'
|
||||
|
||||
Reference in New Issue
Block a user