From aa5ed8c2374aa151d6424de7deb1512721136c63 Mon Sep 17 00:00:00 2001 From: zombieJ Date: Thu, 31 Jan 2019 16:52:29 +0800 Subject: [PATCH] Continue works on #12667 (#14668) * Update index.tsx * add limitation on checking labelPlacement * add type checking of 'mode' in DatePickerProps --- components/date-picker/interface.tsx | 1 + 1 file changed, 1 insertion(+) diff --git a/components/date-picker/interface.tsx b/components/date-picker/interface.tsx index 08f94a9c19..525f5a9044 100644 --- a/components/date-picker/interface.tsx +++ b/components/date-picker/interface.tsx @@ -46,6 +46,7 @@ export interface DatePickerProps extends PickerProps, SinglePickerProps { onOpenChange?: (status: boolean) => void; onOk?: (selectedTime: moment.Moment) => void; placeholder?: string; + mode?: 'time' | 'date' | 'month' | 'year'; } export interface MonthPickerProps extends PickerProps, SinglePickerProps {