chore: adjust parameter order (#40250)

This commit is contained in:
lijianan 2023-01-16 16:44:16 +08:00 committed by GitHub
parent 4626bfb0af
commit 8970f65faf
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
2 changed files with 2 additions and 2 deletions

View File

@ -117,7 +117,7 @@ export default function generateRangePicker<DateType>(generateConfig: GenerateCo
disabled={mergedDisabled}
ref={innerRef}
dropdownAlign={transPlacement2DropdownAlign(direction, placement)}
placeholder={getRangePlaceholder(picker, locale, placeholder)}
placeholder={getRangePlaceholder(locale, picker, placeholder)}
suffixIcon={suffixNode}
clearIcon={<CloseCircleFilled />}
prevIcon={<span className={`${prefixCls}-prev-icon`} />}

View File

@ -31,8 +31,8 @@ export function getPlaceholder(
}
export function getRangePlaceholder(
picker: PickerMode | undefined,
locale: PickerLocale,
picker?: PickerMode,
customizePlaceholder?: [string, string],
) {
if (customizePlaceholder !== undefined) {