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

fix: add observer for limit date change #5520

Merged
merged 2 commits into from
Aug 22, 2023

Conversation

johnsonwong666
Copy link
Collaborator

#5519 mindate/maxdate 变更时 执行一下initReact

@@ -78,10 +78,16 @@ VantComponent({
minDate: {
type: Number,
value: initialMinDate,
observer() {
Copy link
Contributor

Choose a reason for hiding this comment

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

改成 watch 吧,性能会更好一点

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

ok了

@landluck landluck merged commit d692b70 into youzan:dev Aug 22, 2023
3 checks passed
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