2023.11.13 Today I learned that when using the element week selector, we will find that the default time selection is Sunday to the next Monday, as shown in the figure:
We need to change it to display Monday to Sunday, just add one line of code: picker-options
<el-date-picker
type="week"
placeholder="请选择周"
:picker-options="{'firstDayOfWeek':1}"
format="yyyy 第 WW 周"
/>
There will be a prompt that the parameter type does not match, but it will not be affected, as shown in the figure:
This allows you to freely select the date range.