fix(components): [el-table] hover not working in fixed mode (#5638)

This commit is contained in:
msidolphin 2022-01-26 14:06:22 +08:00 committed by GitHub
parent 043d20403f
commit f860941d8e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -37,7 +37,7 @@ export default defineComponent({
raf = (fn) => window.setTimeout(fn, 16)
}
raf(() => {
const rows = instance?.vnode.el?.querySelectorAll(ns.e('row'))
const rows = instance?.vnode.el?.querySelectorAll(`.${ns.e('row')}`)
const oldRow = rows[oldVal]
const newRow = rows[newVal]
if (oldRow) {