From 4b8258431ca1f1caa4d17f4ed7b242fd0a6e0601 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A0=97=E5=98=89=E7=94=B7?= <574980606@qq.com> Date: Thu, 7 Mar 2024 14:17:53 +0800 Subject: [PATCH] type: update label prop type --- src/Select.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Select.tsx b/src/Select.tsx index 13edadd5..5da38d41 100644 --- a/src/Select.tsx +++ b/src/Select.tsx @@ -97,7 +97,7 @@ export interface BaseOptionType { } export interface DefaultOptionType extends BaseOptionType { - label: React.ReactNode; + label?: React.ReactNode; value?: string | number | null; children?: Omit[]; }