Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Bug Report] Calendar Component Displays Weekly Errors when Customizing Scope #16234

Closed
Sean-214 opened this issue Jun 26, 2019 · 1 comment · Fixed by #16235
Closed

[Bug Report] Calendar Component Displays Weekly Errors when Customizing Scope #16234

Sean-214 opened this issue Jun 26, 2019 · 1 comment · Fixed by #16235
Assignees

Comments

@Sean-214
Copy link

Element UI version

2.10.0

OS/Browsers version

Win 10 / Chrome 75

Vue version

2.6.10

Reproduction Link

https://codepen.io/sean-214/pen/OejrOp?&editable=true

Steps to reproduce

文档描述的 range 属性:时间范围,包括开始时间与结束时间。开始时间必须是周一,结束时间必须是周日,且时间跨度不能超过两个月。

当范围设置为 :range="['2019-03-04', '2019-03-24']" 时,周一显示为“日”、周二显示为“一”...

PS: 提一点建议,时间范围的限制可以根据 first-day-of-week 周起始日属性变化。

What is Expected?

正确显示星期

What is actually happening?

星期显示错误

@element-bot element-bot changed the title [Bug Report] Calendar组件自定义范围时星期显示错误 [Bug Report] Calendar Component Displays Weekly Errors when Customizing Scope Jun 26, 2019
@element-bot
Copy link
Member

Translation of this issue:

Element UI version

2.10.0

OS/Browsers version

Win 10/Chrome 75

Vue version

2.6.10

Reproduction Link

Https://codepen.io/sean-214/pen/OejrOp?&editable=true

Steps to reproduce

Range attribute of document description: time range, including start time and end time. The start time must be Monday, the end time must be Sunday, and the time span should not exceed two months.

When the range is set to range='['2019-03-04','2019-03-24']', Monday is shown as day', Tuesday is shown as `one'.
PS: To make a suggestion, the time limit can be changed according to the attributes of the first-day-of-week starting day.

What is Expected?

Display Weekly Correctly

What is actually happening?

Weekly display error

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants