You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This component will automatically render a `<RouteLink>` or `<a>` bases on your configuration.
75
+
This component will automatically render internal link as `<RouteLink>`, and render external link as `<a>`. It will also add necessary attributes correspondingly.
57
76
58
-
It's recommended to use this component instead of the `<RouteLink>` component if the link can be both internal and external.
77
+
You can make use of the `before` and `after` slots to render content before and after the text. Also, you can use the `default` slot to render the text (default text is `config.text`).
59
78
60
-
It has a default slot to render the content of the link (default is `config.text`), and you can also add slots named `before` and `after`to render content before and after the text.
79
+
This component is mainly for developing themes. Users won't need it in most cases. For theme authors, it's recommended to use this component to render links that could be either internal or external.
61
80
62
81
## ClientOnly
63
82
@@ -132,4 +151,4 @@ interface AutoLinkConfig {
132
151
133
152
If the `active` prop is set to `true`, the link will have an extra `activeClass`. Notice that the active status won't be updated automatically when the route changes.
134
153
135
-
This component is mainly for developing themes. You won't need it in most cases. For theme authors, it's recommended to use this component instead of the `<RouterLink>` component from `vue-router`.
154
+
This component is mainly for developing themes. Users won't need it in most cases. For theme authors, it's recommended to use this component to render internal links instead of the `<RouterLink>` component from `vue-router`.
0 commit comments