How the DatePicker time selector component selects only the year antd

Can the DatePicker time selector component in

antd select only the year?

Dec.23,2021

. Then not a selection box is enough, the year cycle to generate its own.


which component is it? can you give me a link?


clipboard.png

format= {'YYYY'}


select


refer to https://codeshelper.com/q/10.


mode='year'

Menu