Преглед на файлове

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