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

feat(Calendar): add weekdays props #5576

Closed

Conversation

johnsonwong666
Copy link
Collaborator

],
});
if (!Array.isArray(val)) {
const defaultWeeks = ['日', '一', '二', '三', '四', '五', '六'];
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

first-day-of-week 这个参数不能满足吗?我看他的需求是从一开始,first-day-of-week 设置为 1 不就行了吗

Copy link
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

他的需求想要的是能自定义星期,可以设置成英文等。

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

多语言的问题先 hold 一下,不能通过 props 来解决。单个props配置也解决不了一个组件或者多语言的问题。另外实现有问题,一个是 ['日', '一', '二', '三', '四', '五', '六']; 这个配置出现了多次,另外一个是 ['日', '一', '二', '三', '四', '五', '六'] 这种静态配置没必要 observer。只有支持动态更新的数据 observer

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 this pull request may close these issues.

2 participants