diff --git a/components/date-picker/WeekPicker.tsx b/components/date-picker/WeekPicker.tsx index c6b97fe48d..6a127ef229 100644 --- a/components/date-picker/WeekPicker.tsx +++ b/components/date-picker/WeekPicker.tsx @@ -11,7 +11,7 @@ function formatValue(value: moment.Moment | null, format: string): string { export default class WeekPicker extends React.Component { static defaultProps = { - format: 'YYYY-wo', + format: 'gggg-wo', allowClear: true, }; diff --git a/components/date-picker/index.tsx b/components/date-picker/index.tsx index 7c8e6d2b44..9d3e6de58d 100755 --- a/components/date-picker/index.tsx +++ b/components/date-picker/index.tsx @@ -14,7 +14,7 @@ const MonthPicker = wrapPicker(createPicker(MonthCalendar), 'YYYY-MM'); Object.assign(DatePicker, { RangePicker: wrapPicker(RangePicker), MonthPicker, - WeekPicker: wrapPicker(WeekPicker, 'YYYY-wo'), + WeekPicker: wrapPicker(WeekPicker, 'gggg-wo'), }); export default DatePicker as DatePickerDecorator;