From bec9071cf752a1ce28ac2f9262496e8dda212e3f Mon Sep 17 00:00:00 2001 From: witt Date: Tue, 25 Aug 2020 15:04:53 +0800 Subject: [PATCH] fix(checkbox): fix export type (#376) --- components/checkbox/checkbox.tsx | 12 +++++++++--- 1 file changed, 9 insertions(+), 3 deletions(-) diff --git a/components/checkbox/checkbox.tsx b/components/checkbox/checkbox.tsx index 8f46a3f..437445f 100644 --- a/components/checkbox/checkbox.tsx +++ b/components/checkbox/checkbox.tsx @@ -34,7 +34,7 @@ const defaultProps = { value: '', } -type NativeAttrs = Omit, keyof Props> +type NativeAttrs = Omit, keyof Props> export type CheckboxProps = Props & typeof defaultProps & NativeAttrs const Checkbox: React.FC = ({ @@ -91,9 +91,15 @@ const Checkbox: React.FC = ({ }, [checked]) return ( -