diff --git a/components/date-picker/generatePicker/generateRangePicker.tsx b/components/date-picker/generatePicker/generateRangePicker.tsx index 9de3ef10da..aff3e16c89 100644 --- a/components/date-picker/generatePicker/generateRangePicker.tsx +++ b/components/date-picker/generatePicker/generateRangePicker.tsx @@ -117,7 +117,7 @@ export default function generateRangePicker(generateConfig: GenerateCo disabled={mergedDisabled} ref={innerRef} dropdownAlign={transPlacement2DropdownAlign(direction, placement)} - placeholder={getRangePlaceholder(picker, locale, placeholder)} + placeholder={getRangePlaceholder(locale, picker, placeholder)} suffixIcon={suffixNode} clearIcon={} prevIcon={} diff --git a/components/date-picker/util.ts b/components/date-picker/util.ts index 2196ddfd52..78cd97d7bb 100644 --- a/components/date-picker/util.ts +++ b/components/date-picker/util.ts @@ -31,8 +31,8 @@ export function getPlaceholder( } export function getRangePlaceholder( - picker: PickerMode | undefined, locale: PickerLocale, + picker?: PickerMode, customizePlaceholder?: [string, string], ) { if (customizePlaceholder !== undefined) {