mirror of
https://github.com/element-plus/element-plus.git
synced 2025-04-06 16:30:35 +08:00
fix(components): [table] the overflowTooltip cannot be refreshed (#19440)
fix(components): [table] the tooltip cannot be refreshed
This commit is contained in:
parent
13506ffb81
commit
7d76dea667
@ -2,7 +2,12 @@
|
||||
import { h, inject, ref } from 'vue'
|
||||
import { debounce } from 'lodash-unified'
|
||||
import { addClass, hasClass, removeClass } from '@element-plus/utils'
|
||||
import { createTablePopper, getCell, getColumnByCell } from '../util'
|
||||
import {
|
||||
createTablePopper,
|
||||
getCell,
|
||||
getColumnByCell,
|
||||
removePopper,
|
||||
} from '../util'
|
||||
import { TABLE_INJECTION_KEY } from '../tokens'
|
||||
import type { TableColumnCtx } from '../table-column/defaults'
|
||||
import type { TableBodyProps } from './defaults'
|
||||
@ -156,6 +161,8 @@ function useEvents<T>(props: Partial<TableBodyProps<T>>) {
|
||||
cell,
|
||||
table
|
||||
)
|
||||
} else if (removePopper?.trigger === cell) {
|
||||
removePopper?.()
|
||||
}
|
||||
}
|
||||
const handleCellMouseLeave = (event) => {
|
||||
|
Loading…
x
Reference in New Issue
Block a user