- Sponsor
-
Notifications
You must be signed in to change notification settings - Fork 681
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
Vue3 v-model API changes #1039
Merged
ota-meshi
merged 6 commits into
vuejs:master
from
przemkow:RFC0005/replace-v-bind-sync-with-v-model-argument
Mar 14, 2020
Merged
Vue3 v-model API changes #1039
ota-meshi
merged 6 commits into
vuejs:master
from
przemkow:RFC0005/replace-v-bind-sync-with-v-model-argument
Mar 14, 2020
+638
−14
Conversation
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
…rguments. Vue 2 compatibility rule
723ffab
to
a1d0547
Compare
a1d0547
to
900f89e
Compare
ota-meshi
requested changes
Mar 5, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for this PR! And sorry for the late reply.
I have some requests.
… on Vue component
…ks if v-model has not allowed modifiers (Vue 2 backward compatibility)
900f89e
to
009ff3e
Compare
ota-meshi
approved these changes
Mar 9, 2020
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thank you for changing this PR! LGTM!
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Add suppor for
v-model
API changesv-model:argument
syntax (replacement forv-bind.sync
)v-model.customModifier
syntaxRelates to:
#1035
RFC0005
RFC0011
Scope:
vue/valid-v-model
- modify rule implementation to do not report an error when:v-model
is used with an argument on Vue Component. (v-model:argument
syntax)v-model
is used with custom modifiers on Vue Component. (v-model. customModifier
syntax)vue/no-v-model-argument
- new rule which reports an error whenv-model
is used with an argument on Vue Component (Vue 2 backward compatibility rule, previously handled byvue/valid-v-model
)vue/no-deprecated-v-bind-sync
- new rule which reports an error when deprecated.sync
modifier is used onv-bind
directive.vue/no-custom-modifiers-on-v-model
- new rule which reports an error when v-model is used with custom modifiers on Vue Component (Vue 2 backward compatibility rule, previously handled by vue/valid-v-model)Clarification needed:
v-bind.sync="xxx"
).According to RFC it's not clear which option was selected for the final implementation. Testing that with
Vue 3.0.0-alpha.3
it seems that spread onv-model
is currently not supported, nevertheless, it requires additional confirmation before merge.