Skip to content

Commit

Permalink
fix: type check failed for prop 'onClick' (#3038)
Browse files Browse the repository at this point in the history
  • Loading branch information
likui628 committed Sep 18, 2023
1 parent ce6b25d commit 4aaddef
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/components/Button/src/props.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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 },
};

0 comments on commit 4aaddef

Please sign in to comment.