From 59cee2c4e8dd84221f5b80a5a6385bb912b5d9ee Mon Sep 17 00:00:00 2001 From: rockey2020 <64777114+rockey2020@users.noreply.github.com> Date: Fri, 10 May 2024 16:27:16 +0800 Subject: [PATCH] should support number type (#716) --- packages/react-vant/src/components/picker/PropsType.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/packages/react-vant/src/components/picker/PropsType.ts b/packages/react-vant/src/components/picker/PropsType.ts index f44ac9579..0b748709a 100644 --- a/packages/react-vant/src/components/picker/PropsType.ts +++ b/packages/react-vant/src/components/picker/PropsType.ts @@ -7,7 +7,7 @@ export type PickerToolbarPosition = 'top' | 'bottom' /** ๅˆ—้€‰้กน */ export type PickerColumnOption = { text?: React.ReactNode - value?: string + value?: string | number children?: PickerColumnOption[] disabled?: boolean } & Record