From 28a53fe81cdb551d2bf2023167487a3060e0f180 Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期三, 30 十月 2024 00:35:51 +0800 Subject: [PATCH] 一些更改 --- src/components/Button/src/props.ts | 3 ++- 1 files changed, 2 insertions(+), 1 deletions(-) diff --git a/src/components/Button/src/props.ts b/src/components/Button/src/props.ts index 3190d2c..a61c6c3 100644 --- a/src/components/Button/src/props.ts +++ b/src/components/Button/src/props.ts @@ -22,5 +22,6 @@ * @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 }, + text: { type: String }, }; -- Gitblit v1.9.3