소스 검색

fix(Tree): beforeRightClick type (#2968)

Li Kui 1 년 전
부모
커밋
2c74e790cb
1개의 변경된 파일1개의 추가작업 그리고 1개의 파일을 삭제
  1. 1 1
      src/components/Tree/src/types/tree.ts

+ 1 - 1
src/components/Tree/src/types/tree.ts

@@ -105,7 +105,7 @@ export const treeProps = buildProps({
   },
 
   beforeRightClick: {
-    type: Function as PropType<(...arg: any) => ContextMenuItem[] | ContextMenuOptions>,
+    type: Function as PropType<(...arg: any) => Promise<ContextMenuItem[] | ContextMenuOptions>>,
     default: undefined,
   },