From fb0f01cf6aa0e5796396db682ae58f90d1949c9c Mon Sep 17 00:00:00 2001 From: tangjinzhou <415800467@qq.com> Date: Sun, 29 Aug 2021 14:17:19 +0800 Subject: [PATCH] fix: uddate ts type --- components/vc-tree/props.ts | 13 +++++++------ 1 file changed, 7 insertions(+), 6 deletions(-) diff --git a/components/vc-tree/props.ts b/components/vc-tree/props.ts index e2954f3b0..f6bcd28ff 100644 --- a/components/vc-tree/props.ts +++ b/components/vc-tree/props.ts @@ -1,4 +1,5 @@ import type { ExtractPropTypes, PropType } from 'vue'; +import type { EventHandler } from '../_util/EventInterface'; import PropTypes from '../_util/vue-types'; import type { NodeDragEventParams, @@ -47,7 +48,7 @@ export const treeNodeProps = { isStart: { type: Array as PropType }, isEnd: { type: Array as PropType }, active: { type: Boolean, default: undefined }, - onMousemove: { type: Function as PropType }, + onMousemove: { type: Function as PropType }, // By user isLeaf: { type: Boolean, default: undefined }, @@ -91,11 +92,11 @@ export const nodeListProps = { itemHeight: { type: Number as PropType }, virtual: { type: Boolean as PropType }, - onKeydown: { type: Function as PropType }, + onKeydown: { type: Function as PropType }, onFocus: { type: Function as PropType<(e: FocusEvent) => void> }, onBlur: { type: Function as PropType<(e: FocusEvent) => void> }, onActiveChange: { type: Function as PropType<(key: Key) => void> }, - onContextmenu: { type: Function as PropType }, + onContextmenu: { type: Function as PropType }, onListChangeStart: { type: Function as PropType<() => void> }, onListChangeEnd: { type: Function as PropType<() => void> }, @@ -146,11 +147,11 @@ export const treeProps = () => ({ }, onFocus: { type: Function as PropType<(e: FocusEvent) => void> }, onBlur: { type: Function as PropType<(e: FocusEvent) => void> }, - onKeydown: { type: Function as PropType }, - onContextmenu: { type: Function as PropType }, + onKeydown: { type: Function as PropType }, + onContextmenu: { type: Function as PropType }, onClick: { type: Function as PropType }, onDblclick: { type: Function as PropType }, - onScroll: { type: Function as PropType }, + onScroll: { type: Function as PropType }, onExpand: { type: Function as PropType< (