From 4aaddef06ffcad3af5ccfd382fa38809e1059140 Mon Sep 17 00:00:00 2001 From: Li Kui <90845831+likui628@users.noreply.github.com> Date: Mon, 18 Sep 2023 10:04:15 +0800 Subject: [PATCH] fix: type check failed for prop 'onClick' (#3038) --- src/components/Button/src/props.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/components/Button/src/props.ts b/src/components/Button/src/props.ts index 3190d2ceeda..fd5fa52ffd2 100644 --- a/src/components/Button/src/props.ts +++ b/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 }, };