From 8b2f458f0dfa3b4eee4290a1c19f8d385b6580d9 Mon Sep 17 00:00:00 2001 From: jaywcjlove <398188662@qq.com> Date: Mon, 3 Apr 2023 11:46:10 +0800 Subject: [PATCH] type(Swatch): fix type error. --- packages/color-swatch/src/index.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/color-swatch/src/index.tsx b/packages/color-swatch/src/index.tsx index eaff1e0cc..6600cb2aa 100644 --- a/packages/color-swatch/src/index.tsx +++ b/packages/color-swatch/src/index.tsx @@ -89,7 +89,7 @@ const Swatch = React.forwardRef((props, ref) => { } const child = rectProps.children && React.isValidElement(rectProps.children) - ? React.cloneElement(rectProps.children, { + ? React.cloneElement(rectProps.children, { color: background, checked, })