瀏覽代碼

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,
   },