mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-24 02:59:58 +08:00
chore: adjust parameter order (#40250)
This commit is contained in:
parent
4626bfb0af
commit
8970f65faf
@ -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`} />}
|
||||
|
@ -31,8 +31,8 @@ export function getPlaceholder(
|
||||
}
|
||||
|
||||
export function getRangePlaceholder(
|
||||
picker: PickerMode | undefined,
|
||||
locale: PickerLocale,
|
||||
picker?: PickerMode,
|
||||
customizePlaceholder?: [string, string],
|
||||
) {
|
||||
if (customizePlaceholder !== undefined) {
|
||||
|
Loading…
Reference in New Issue
Block a user