Skip to content

Commit

Permalink
[zh-CN]: add translation for Navigation.transition (#24505)
Browse files Browse the repository at this point in the history
  • Loading branch information
skyclouds2001 authored Nov 15, 2024
1 parent 401797d commit 50d4f37
Show file tree
Hide file tree
Showing 4 changed files with 47 additions and 7 deletions.
6 changes: 3 additions & 3 deletions files/zh-cn/web/api/navigation/activation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -31,6 +31,6 @@ if (navigation.activation) {

## 参见

- [现代客户端路由:Navigation API](https://developer.chrome.google.cn/docs/web-platform/navigation-api/)
- [Navigation API 说明](https://github.com/WICG/navigation-api/blob/main/README.md)
- Domenic Denicola 的 [Navigation API 在线示例](https://gigantic-honored-octagon.glitch.me/)
- [现代客户端路由:导航 API](https://developer.chrome.google.cn/docs/web-platform/navigation-api/)
- [导航 API 说明](https://github.com/WICG/navigation-api/blob/main/README.md)
- Domenic Denicola 的[导航 API 在线示例](https://gigantic-honored-octagon.glitch.me/)
6 changes: 3 additions & 3 deletions files/zh-cn/web/api/navigation/currententry/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,6 @@ navigation.addEventListener("navigate", (event) => {

## 参见

- [现代客户端路由:Navigation API](https://developer.chrome.google.cn/docs/web-platform/navigation-api/)
- [Navigation API 说明](https://github.com/WICG/navigation-api/blob/main/README.md)
- Domenic Denicola 的 [Navigation API 在线示例](https://gigantic-honored-octagon.glitch.me/)
- [现代客户端路由:导航 API](https://developer.chrome.google.cn/docs/web-platform/navigation-api/)
- [导航 API 说明](https://github.com/WICG/navigation-api/blob/main/README.md)
- Domenic Denicola 的[导航 API 在线示例](https://gigantic-honored-octagon.glitch.me/)
2 changes: 1 addition & 1 deletion files/zh-cn/web/api/navigation/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -127,4 +127,4 @@ navigation.updateCurrentEntry({ state: newState });

- [现代客户端路由:导航 API](https://developer.chrome.google.cn/docs/web-platform/navigation-api/)
- [导航 API 说明](https://github.com/WICG/navigation-api/blob/main/README.md)
- Domenic Denicola 的 [导航 API 在线示例](https://gigantic-honored-octagon.glitch.me/)
- Domenic Denicola 的[导航 API 在线示例](https://gigantic-honored-octagon.glitch.me/)
40 changes: 40 additions & 0 deletions files/zh-cn/web/api/navigation/transition/index.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
---
title: Navigation:transition 属性
slug: Web/API/Navigation/transition
l10n:
sourceCommit: ef75c1741b450c2331204be5563ee964ad5f4c48
---

{{APIRef("Navigation API")}}{{SeeCompatTable}}

{{domxref("Navigation")}} 接口的 **`transition`** 只读属性返回一个 {{domxref("NavigationTransition")}} 对象,该对象表示正在进行的导航的状态,可用于跟踪正在进行的导航。

##

{{domxref("NavigationTransition")}} 对象,如果当前没有正在进行的导航,则为 `null`

## 示例

```js
async function handleTransition() {
if (navigation.transition) {
showLoadingSpinner();
await navigation.transition.finished;
hideLoadingSpinner();
}
}
```

## 规范

{{Specifications}}

## 浏览器兼容性

{{Compat}}

## 参见

- [现代客户端路由:导航 API](https://developer.chrome.google.cn/docs/web-platform/navigation-api/)
- [导航 API 说明](https://github.com/WICG/navigation-api/blob/main/README.md)
- Domenic Denicola 的[导航 API 在线示例](https://gigantic-honored-octagon.glitch.me/)

0 comments on commit 50d4f37

Please sign in to comment.