From c8f8a9c645f7857859a9d56fac96192d994be70b Mon Sep 17 00:00:00 2001 From: Ben Lin <maobin001@msn.com> Date: 星期一, 24 六月 2024 18:48:29 +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