-
Notifications
You must be signed in to change notification settings - Fork 4.8k
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
Show OutboundLink icon for external links #428
Conversation
lib/default-theme/NavLink.vue
Outdated
@@ -1,23 +1,24 @@ | |||
<template> | |||
<router-link | |||
class="nav-link" | |||
<router-link class="nav-link" |
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.
Don't format the original code
lib/default-theme/NavLink.vue
Outdated
</template> | ||
|
||
<script> | ||
import { isExternal, isMailto, isTel, ensureExt } from './util' | ||
import OutboundLink from './OutboundLink.vue' |
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.
Since you have registered <OutboundLink>
as a global component, either that removing this import
or removing the global registration. (You could only choose the 1st.)
@ulivz done boss! please review again if you are free! 😄 |
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.
Great work!
This PR includes the following enhancements
addAttr()
bytoken.attrSet()