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

Improve Vetur component data #408

Merged
merged 1 commit into from
Aug 7, 2020
Merged

Conversation

octref
Copy link
Member

@octref octref commented Aug 6, 2020

No description provided.

@octref octref marked this pull request as draft August 6, 2020 15:25
vetur/tags.json Outdated Show resolved Hide resolved
vetur/tags.json Outdated
@@ -1,10 +1,10 @@
{
"router-view": {
"attributes": ["name", "route"],
"description": "Component that renders the matched component for the current location. Components rendered by `<router-view>` can also contain their own `<router-view>` to render nested routes."
"description": "Component that renders the matched component for the current location. Components rendered by `<router-view>` can also contain their own `<router-view>` to render nested routes.\n\n[API Reference](https://router.vuejs.org/api/#router-link)"
},
"router-link": {
"attributes": ["to", "activeClass","exactActiveClass", "custom"],
Copy link
Member Author

Choose a reason for hiding this comment

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

Why are you not including all attributes for router-link?

Copy link
Member

Choose a reason for hiding this comment

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

I forgot ariaCurrentValue because I added it later I think

Copy link
Member

Choose a reason for hiding this comment

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

all the other props have been removed

Copy link
Member Author

Choose a reason for hiding this comment

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

🤦‍♂️ I was comparing it against old Vue router docs. Do you have a new one available? Can't find it. Also if they would be in different sites I should link to the one for vue-router-next.
(BTW I wasn't aware, are all attributes renamed to camelCase?)

Copy link
Member

Choose a reason for hiding this comment

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

There isn't an official link yet, so I think we can add that later.
props can be passed both ways but by what you are saying I understand I should provide the kebab-case version for autocompletion 😄

Copy link
Member Author

Choose a reason for hiding this comment

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

@posva I can add functionality to handle camelCase to kebab-case as well. No worries, just need to do a bit of changes in Vetur side.

Copy link
Member

Choose a reason for hiding this comment

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

I think autocompleting on kebab-case is the way to go because it works on different contexts whereas camelCase doesn't. We should just use kebab-case in these files

@octref octref marked this pull request as ready for review August 6, 2020 16:18
vetur/attributes.json Outdated Show resolved Hide resolved
Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

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

Should we remove the links or point somewhere else?

@octref
Copy link
Member Author

octref commented Aug 7, 2020

remove the links

Do you mean that because we don't have a new site for vue-router-next yet, so we shouldn't link them anyway?

@posva
Copy link
Member

posva commented Aug 7, 2020

yes, because we don't have the right links so pointing to outdated ones could be confusing

@octref
Copy link
Member Author

octref commented Aug 7, 2020

I didn't notice the contributing guideline. I squashed and gave a new commit message.

Copy link
Member

@posva posva left a comment

Choose a reason for hiding this comment

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

Great, thanks! Do you want me to release a new version as well?

@posva posva merged commit df8b2b1 into vuejs:master Aug 7, 2020
@octref
Copy link
Member Author

octref commented Aug 7, 2020

@posva That's up to you — anytime you want. Thanks for reviewing 👍

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.

None yet

2 participants