Explorar o código

fix: type check failed for prop 'onClick' (#3038)

Li Kui hai 1 ano
pai
achega
4aaddef06f
Modificáronse 1 ficheiros con 1 adicións e 1 borrados
  1. 1 1
      src/components/Button/src/props.ts

+ 1 - 1
src/components/Button/src/props.ts

@@ -22,5 +22,5 @@ export const buttonProps = {
    * @default: 14
    */
   iconSize: { type: Number, default: 14 },
-  onClick: { type: Function as PropType<(...args) => any>, default: null },
+  onClick: { type: [Function, Array] as PropType<(() => any) | (() => any)[]>, default: null },
 };