mirror of
https://github.com/element-plus/element-plus.git
synced 2026-03-13 07:51:17 +08:00
fix(components): [cascader-panel] fix type error (#9753)
This commit is contained in:
@@ -1,4 +1,3 @@
|
||||
// @ts-nocheck
|
||||
import { isLeaf } from '@element-plus/utils'
|
||||
import type { default as CascaderNode } from './node'
|
||||
|
||||
@@ -8,7 +7,7 @@ export const getMenuIndex = (el: HTMLElement) => {
|
||||
return Number(pieces[pieces.length - 2])
|
||||
}
|
||||
|
||||
export const checkNode = (el) => {
|
||||
export const checkNode = (el: HTMLElement) => {
|
||||
if (!el) return
|
||||
|
||||
const input = el.querySelector('input')
|
||||
|
||||
Reference in New Issue
Block a user