From 7b52798e1b9490ac4d40b30c1ac233a495f51d9f Mon Sep 17 00:00:00 2001 From: flowfire Date: Thu, 13 May 2021 14:38:19 +0800 Subject: [PATCH] =?UTF-8?q?=E8=87=AA=E5=AE=9A=E4=B9=89=E4=BA=8B=E4=BB=B6?= =?UTF-8?q?=E5=BA=94=E5=BD=93=E4=BC=A0=E5=85=A5=E5=8E=9F=E5=8F=82=E6=95=B0?= =?UTF-8?q?=E8=80=8C=E4=B8=8D=E5=BA=94=E8=AF=A5=E6=98=AFarguments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- packages/taro-ui/src/components/form/index.tsx | 8 ++++---- packages/taro-ui/src/components/icon/index.tsx | 4 ++-- packages/taro-ui/src/components/load-more/index.tsx | 4 ++-- 3 files changed, 8 insertions(+), 8 deletions(-) diff --git a/packages/taro-ui/src/components/form/index.tsx b/packages/taro-ui/src/components/form/index.tsx index cea4dc011..1bebc32f3 100644 --- a/packages/taro-ui/src/components/form/index.tsx +++ b/packages/taro-ui/src/components/form/index.tsx @@ -8,12 +8,12 @@ export default class AtForm extends React.Component { public static defaultProps: AtFormProps public static propTypes: InferProps - private onSubmit(): void { - this.props.onSubmit && this.props.onSubmit(arguments as any) + private onSubmit(...params): void { + this.props.onSubmit && this.props.onSubmit(...params) } - private onReset(): void { - this.props.onReset && this.props.onReset(arguments as any) + private onReset(...params): void { + this.props.onReset && this.props.onReset(...params) } public render(): JSX.Element { diff --git a/packages/taro-ui/src/components/icon/index.tsx b/packages/taro-ui/src/components/icon/index.tsx index 607850932..833e2f979 100644 --- a/packages/taro-ui/src/components/icon/index.tsx +++ b/packages/taro-ui/src/components/icon/index.tsx @@ -9,8 +9,8 @@ export default class AtIcon extends React.Component { public static defaultProps: AtIconProps public static propTypes: InferProps - private handleClick(): void { - this.props.onClick && this.props.onClick(arguments as any) + private handleClick(...params): void { + this.props.onClick && this.props.onClick(...params) } public render(): JSX.Element { diff --git a/packages/taro-ui/src/components/load-more/index.tsx b/packages/taro-ui/src/components/load-more/index.tsx index 8d95f1104..c8d57de7b 100644 --- a/packages/taro-ui/src/components/load-more/index.tsx +++ b/packages/taro-ui/src/components/load-more/index.tsx @@ -10,8 +10,8 @@ export default class AtLoadMore extends React.Component { public static defaultProps: AtLoadMoreProps public static propTypes: InferProps - private onClick(): void { - this.props.onClick && this.props.onClick(arguments as any) + private onClick(...params): void { + this.props.onClick && this.props.onClick(...params) } public render(): JSX.Element {