File tree Expand file tree Collapse file tree 2 files changed +7
-1
lines changed
components/date-picker/components/panel
tdesign-vue-next/.changelog Expand file tree Collapse file tree 2 files changed +7
-1
lines changed Original file line number Diff line number Diff line change @@ -112,7 +112,7 @@ export default defineComponent({
112
112
! hidePreselection && props . hoverValue [ 1 ]
113
113
? parseToDayjs ( props . hoverValue [ 1 ] , format . value ) . toDate ( )
114
114
: undefined ,
115
- year : props . year [ 1 ] - props . year [ 0 ] <= 9 ? props . year [ 1 ] + 9 : props . year [ 1 ] ,
115
+ year : props . mode === 'year' && props . year [ 1 ] - props . year [ 0 ] <= 9 ? props . year [ 1 ] + 9 : props . year [ 1 ] ,
116
116
month : props . month [ 1 ] ,
117
117
mode : props . mode ,
118
118
firstDayOfWeek : props . firstDayOfWeek || globalConfig . value . firstDayOfWeek ,
Original file line number Diff line number Diff line change
1
+ ---
2
+ pr_number : 5901
3
+ contributor : uyarn
4
+ ---
5
+
6
+ - fix(DatePicker): 修复 ` 1.15.3 ` 版本中日期范围选择面板年份错误的问题 @uyarn ([ #5901 ] ( https://github.com/Tencent/tdesign-vue-next/pull/5901 ) )
You can’t perform that action at this time.
0 commit comments