diff --git a/docs/Masa.Blazor.Docs/wwwroot/pages/getting-started/upgrade-guide/en-US.md b/docs/Masa.Blazor.Docs/wwwroot/pages/getting-started/upgrade-guide/en-US.md index 293d6de300..315ec89434 100644 --- a/docs/Masa.Blazor.Docs/wwwroot/pages/getting-started/upgrade-guide/en-US.md +++ b/docs/Masa.Blazor.Docs/wwwroot/pages/getting-started/upgrade-guide/en-US.md @@ -28,6 +28,13 @@ v1.0.x contains non backwards compatible breaking changes, the following changes - + ``` +- Removed the **PToasts** component, and use the **PEnqueuedSnackbars** component instead. +- **PopupService** removes `AlertAsync` 和 `ToastAsync`, and use `EnqueueSnackbarAsync` instead. + ```diff + - PopupService.AlertAsync() + - PopupService.ToastAsync() + + PopupService.EnqueueSnackbarAsync() + ``` ## Upgrading from v0.5.x to v0.6.x diff --git a/docs/Masa.Blazor.Docs/wwwroot/pages/getting-started/upgrade-guide/zh-CN.md b/docs/Masa.Blazor.Docs/wwwroot/pages/getting-started/upgrade-guide/zh-CN.md index f28e3df9a5..7f10e9e454 100644 --- a/docs/Masa.Blazor.Docs/wwwroot/pages/getting-started/upgrade-guide/zh-CN.md +++ b/docs/Masa.Blazor.Docs/wwwroot/pages/getting-started/upgrade-guide/zh-CN.md @@ -28,6 +28,13 @@ v1.0.x 包含了不兼容的破坏性更改,包括以下变更: - + ``` +- 移除了 **PToasts** 组件,请使用 **PEnqueuedSnackbars** 组件代替。 +- **PopupService** 移除了 `AlertAsync` 和 `ToastAsync`,请使用 `EnqueueSnackbarAsync` 代替。 + ```diff + - PopupService.AlertAsync() + - PopupService.ToastAsync() + + PopupService.EnqueueSnackbarAsync() + ``` ## 从 v0.5.x 升级到 v0.6.x