有没有办法从日历选择器中删除SwitchViewButton(显示月份和年份的按钮),或者用我自己的组件替换它?
他们的API提供了以下道具,可以在StaticDatePicker中对其进行修改:
components = { LeftArrowButton?: elementType, LeftArrowIcon?: elementType, OpenPickerIcon?: elementType, RightArrowButton?: elementType, RightArrowIcon?: elementType, SwitchViewButton?: elementType, SwitchViewIcon?: elementType }
但当我尝试向其中任何一个发送“null”时,它会完全忽略它们并呈现相同的内容。
Date Picker view