Skip to content

docs: add a tip on using appear attribute and v-on:appear hook #2140

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

Merged
merged 2 commits into from
Apr 25, 2019

Conversation

DaKoala
Copy link
Contributor

@DaKoala DaKoala commented Apr 24, 2019

Based on issue #9320 in the issue list of vue, I added a tip to clarify the usage of appear attribute and v-on:appear hook.

@@ -569,6 +569,8 @@ By default, this will use the transitions specified for entering and leaving. If

and custom JavaScript hooks:

<p class="tip">Both `appear` attribute and `v-on:appear` hook will cause an appear transition. Compared to `appear` attribute, `v-on:appear` hook has a higher priority. If `v-on:appear` hook is specified, using `:appear="false"` does not cancel the transition.</p>
Copy link
Member

Choose a reason for hiding this comment

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

This p.tip here breaks the flow though. Do you think you can rewrite this content in a way that doesn't require a p.tip?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

Do you think it is okay to keep p.tip but move this part below the code snippet?

Copy link
Member

Choose a reason for hiding this comment

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

Please do heed An's advice here and rewrite it into the flow of the document. Thanks!

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have changed the layout and removed the p.tip

@DaKoala DaKoala force-pushed the docs-transition-appear branch from 10f2258 to b908661 Compare April 25, 2019 02:44
@sdras
Copy link
Member

sdras commented Apr 25, 2019

Looks good now, thanks!

@sdras sdras merged commit 495f3df into vuejs:master Apr 25, 2019
@vue-bot
Copy link
Contributor

vue-bot commented Apr 25, 2019

Hey @DaKoala, thank you for your time and effort spent on this PR, contributions like yours help make Vue better for everyone. Cheers! 💚

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.

4 participants