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
Copy file name to clipboardExpand all lines: docs/api/README.md
-2Lines changed: 0 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,6 @@ sidebar: auto
4
4
5
5
# API Reference
6
6
7
-
<Bit/>
8
-
9
7
## `<router-link>`
10
8
11
9
`<router-link>` is the component for enabling user navigation in a router-enabled app. The target location is specified with the `to` prop. It renders as an `<a>` tag with correct `href` by default, but can be configured with the `tag` prop. In addition, the link automatically gets an active CSS class when the target route is active.
Copy file name to clipboardExpand all lines: docs/fr/api/README.md
+12-10Lines changed: 12 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,6 @@ sidebar: auto
4
4
5
5
# API
6
6
7
-
<Bit/>
8
-
9
7
## `<router-link>`
10
8
11
9
`<router-link>` est le composant pour activer la navigation utilisateur dans une application où le routeur est activé. La localisation cible est spécifiée grâce à la prop `to`. Il est rendu en tant que balise `<a>` avec le `href` correct par défaut, mais peut être configuré grâce à la prop `tag`. De plus, le lien se verra attribuer une classe CSS active lorsque la route cible est active.
@@ -55,10 +53,14 @@ Dans ce cas, `<a>` sera le lien actuel (et récupèrera le bon `href`), mais la
Copy file name to clipboardExpand all lines: docs/fr/guide/README.md
+6-10Lines changed: 6 additions & 10 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -1,17 +1,15 @@
1
1
# Pour commencer
2
2
3
-
<Bit/>
4
-
5
3
::: tip Note
6
4
Nous utiliserons [ES2015](https://github.com/lukehoban/es6features) dans les exemples de code dans ce guide.
7
-
Tous les exemples utiliseront la version complète de Vue pour rendre l'analyse de template possible. Plus de détails [ici](https://fr.vuejs.org/guide/installation.html#Runtime-Compiler-vs-Runtime-seul).
5
+
Tous les exemples utiliseront la version complète de Vue pour rendre l'analyse de template possible. Plus de détails [ici](https://fr.vuejs.org/guide/installation.html#Runtime-Compiler-vs-Runtime-seul).
8
6
:::
9
7
10
8
Créer une application monopage avec Vue + Vue Router est vraiment simple. Avec Vue.js, nous concevons déjà notre application avec des composants. En ajoutant vue-router dans notre application, tout ce qu'il nous reste à faire est de relier nos composants aux routes, et de laisser vue-router faire le rendu. Voici un exemple de base :
Copy file name to clipboardExpand all lines: docs/ru/api/README.md
+3-5Lines changed: 3 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -4,8 +4,6 @@ sidebar: auto
4
4
5
5
# Справочник API
6
6
7
-
<Bit/>
8
-
9
7
## `<router-link>`
10
8
11
9
`<router-link>` — это компонент предназначенный для навигации пользователя в приложении с клиентской маршрутизацией. Путь назначения указывается входным параметром `to`. По умолчанию компонент рендерится в тег `<a>` с корректным значением `href`, но это можно изменить входным параметром `tag`. Кроме того, ссылка автоматически получает активный класс CSS при переходе на путь назначения.
@@ -167,7 +165,7 @@ sidebar: auto
167
165
168
166
## `<router-view>`
169
167
170
-
Функциональный компонент `<router-view>` отображает компонент соответствующий данному маршруту. Компоненты внутри `<router-view>` также могут содержать в шаблоне собственный `<router-view>` (он будет использован для отображения компонентов вложенных маршрутов).
168
+
Функциональный компонент `<router-view>` отображает компонент соответствующий данному маршруту. Компоненты внутри `<router-view>` также могут содержать в шаблоне собственный `<router-view>` (он будет использован для отображения компонентов вложенных маршрутов).
171
169
172
170
Все остальные входные параметры передаются в отображаемый компонент, однако данные маршрута удобнее получать из `$route.params` текущего маршрута.
173
171
@@ -457,7 +455,7 @@ router.onError(callback)
457
455
458
456
```js
459
457
constrouter=newVueRouter({
460
-
scrollBehavior(to, from, savedPosition) {
458
+
scrollBehavior(to, from, savedPosition) {
461
459
// как `to` так и `from` являются объектами маршрута
462
460
}
463
461
})
@@ -475,7 +473,7 @@ router.onError(callback)
475
473
476
474
- тип: `Object`
477
475
478
-
Объект, который содержит пары ключ/значение динамических сегментов маршрута (включая *-сегменты). Если параметров нет, то значением будет пустой объект.
476
+
Объект, который содержит пары ключ/значение динамических сегментов маршрута (включая \*-сегменты). Если параметров нет, то значением будет пустой объект.
0 commit comments