如何将View UI DatePicker的周起始日设置为周一?
如何将View UI DatePicker的周起始日改为周一
- 使用DatePicker组件的
first-day-of-week属性,将其值设为1,即可把默认的周日起始改为周一。该属性取值范围为0(周日)到6(周六)。 - 示例代码:
<DatePicker type="week" first-day-of-week="1" placeholder="选择周"></DatePicker>
若使用JSX语法:
<DatePicker type="week" firstDayOfWeek={1} placeholder="选择周" />
内容的提问来源于stack exchange,提问作者jianjun0230419
相关产品推荐
相关产品推荐

