Procházet zdrojové kódy

fix(Tree): beforeRightClick type (#2968)

Li Kui před 1 rokem
rodič
revize
2c74e790cb
1 změnil soubory, kde provedl 1 přidání a 1 odebrání
  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,
   },