Skip to content

docs(indent): update the table indentation #3723

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 1 commit into from
Feb 22, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions docs/fr/guide/essentials/dynamic-matching.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ Vous pouvez regarder un exemple en ligne [ici](https://jsfiddle.net/yyx990803/4x

Vous pouvez avoir plusieurs segments dynamiques pour une même route, et ils seront associés aux champs associés dans `$route.params`. Des exemples :

| motif | chemin concordant | $route.params |
|---------|------|--------|
| /utilisateur/:username | /utilisateur/evan | `{ username: 'evan' }` |
| motif | chemin concordant | $route.params |
| -------------------------------------- | ---------------------------- | ------------------------------------ |
| /utilisateur/:username | /utilisateur/evan | `{ username: 'evan' }` |
| /utilisateur/:username/billet/:post_id | /utilisateur/evan/billet/123 | `{ username: 'evan', post_id: 123 }` |

En plus de `$route.params`, l'objet `$route` expose également d'autres informations utiles comme la `$route.query` (s'il y a une requête dans l'URL), `$route.hash`, etc. Vous pouvez accéder à tous les détails de cela dans la [référence de l'API](../../api/#the-route-object).
Expand Down
8 changes: 4 additions & 4 deletions docs/fr/guide/essentials/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ Pour naviguer vers un URL différent, utilisez `router.push`. Cette méthode ajo

Cette méthode est appelée en interne quand vous cliquez sur `<router-link>`, donc cliquer sur `<router-link :to="...">` est équivalent à appeler `router.push(...)`.

| Déclarative | Programmatique |
|-------------|--------------|
| Déclarative | Programmatique |
| ------------------------- | ------------------ |
| `<router-link :to="...">` | `router.push(...)` |

L'argument peut être une chaine de caractère représentant un chemin, ou un objet de description de destination. Des exemples :
Expand Down Expand Up @@ -54,8 +54,8 @@ Dans la version 2.2.0+, vous pouvez optionnellement fournir les fonctions de rap

Il agit comme `router.push`. La seule différence est que la navigation se fait sans ajouter de nouvelle entrée dans la pile de l'historique. Comme son nom l'indique, il remplace l'entrée courante.

| Déclarative | Programmatique |
|-------------|--------------|
| Déclarative | Programmatique |
| --------------------------------- | --------------------- |
| `<router-link :to="..." replace>` | `router.replace(...)` |


Expand Down
6 changes: 3 additions & 3 deletions docs/ru/guide/essentials/dynamic-matching.md
Original file line number Diff line number Diff line change
Expand Up @@ -29,9 +29,9 @@ const User = {

Может быть несколько динамических сегментов в одном маршруте. Для каждого сегмента появится соответствующее свойство в `$route.params`. Например:

| Шаблон | Совпадающий путь | $route.params |
|---------|------|--------|
| /user/:username | /user/evan | `{ username: 'evan' }` |
| Шаблон | Совпадающий путь | $route.params |
| ----------------------------- | ------------------- | -------------------------------------- |
| /user/:username | /user/evan | `{ username: 'evan' }` |
| /user/:username/post/:post_id | /user/evan/post/123 | `{ username: 'evan', post_id: '123' }` |

Кроме `$route.params`, объект `$route` предоставляют и другую полезную информацию, например `$route.query` (если URL содержит строку запроса), `$route.hash`, и т.д. Подробнее в [справочнике API](../../api/#объект-route).
Expand Down
4 changes: 2 additions & 2 deletions docs/ru/guide/essentials/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ sidebarDepth: 0
При клике на `<router-link>` этот метод вызывается автоматически. Клик по `<router-link :to="...">` эквивалентен программному вызову `router.push(...)`.

| Декларативная запись | Программная запись |
|---------------------------|--------------------|
| ------------------------- | ------------------ |
| `<router-link :to="...">` | `router.push(...)` |

В качестве аргумента можно передать строку или объект, описывающий маршрут. Например:
Expand Down Expand Up @@ -57,7 +57,7 @@ router.push({ path: '/user', params: { userId } }) // -> /user
Действует как `router.push`, с той лишь разницей, что переход осуществляется без добавления новой записи в историю навигации, а заменяет текущую запись в нём.

| Декларативная запись | Программная запись |
|-----------------------------------|-----------------------|
| --------------------------------- | --------------------- |
| `<router-link :to="..." replace>` | `router.replace(...)` |

## `router.go(n)`
Expand Down
8 changes: 4 additions & 4 deletions docs/zh/guide/essentials/navigation.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,8 +14,8 @@ sidebarDepth: 0

当你点击 `<router-link>` 时,这个方法会在内部调用,所以说,点击 `<router-link :to="...">` 等同于调用 `router.push(...)`。

| 声明式 | 编程式 |
|-------------|--------------|
| 声明式 | 编程式 |
| ------------------------- | ------------------ |
| `<router-link :to="...">` | `router.push(...)` |

该方法的参数可以是一个字符串路径,或者一个描述地址的对象。例如:
Expand Down Expand Up @@ -54,8 +54,8 @@ router.push({ path: '/user', params: { userId }}) // -> /user

跟 `router.push` 很像,唯一的不同就是,它不会向 history 添加新记录,而是跟它的方法名一样 —— 替换掉当前的 history 记录。

| 声明式 | 编程式 |
|-------------|--------------|
| 声明式 | 编程式 |
| --------------------------------- | --------------------- |
| `<router-link :to="..." replace>` | `router.replace(...)` |

## `router.go(n)`
Expand Down