From e40a64c5fa7017683f695db6590986151e54c75b Mon Sep 17 00:00:00 2001 From: LHD Date: Fri, 4 Aug 2023 11:26:34 +0800 Subject: [PATCH] chore: add `--inactive-color-half` type --- src/components/rate/rate.tsx | 7 ++++++- 1 file changed, 6 insertions(+), 1 deletion(-) diff --git a/src/components/rate/rate.tsx b/src/components/rate/rate.tsx index 47a52610f0..a175f1e6d8 100644 --- a/src/components/rate/rate.tsx +++ b/src/components/rate/rate.tsx @@ -18,7 +18,12 @@ export type RateProps = { readOnly?: boolean value?: number onChange?: (value: number) => void -} & NativeProps<'--star-size' | '--active-color' | '--inactive-color'> +} & NativeProps< + | '--star-size' + | '--active-color' + | '--inactive-color' + | '--inactive-color-half' +> const defaultProps = { count: 5,