fix(components): [cascader-panel] fix type error (#9753)

This commit is contained in:
LIUCHAO
2022-09-14 14:17:14 +08:00
committed by GitHub
parent 1c94256c19
commit df642f4ee3

View File

@@ -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')