docs: update alert and apiComponent docs (#5961)

This commit is contained in:
Netfan
2025-04-15 20:52:23 +08:00
committed by GitHub
parent 333998b518
commit d18f56177c
2 changed files with 11 additions and 7 deletions

View File

@@ -42,7 +42,11 @@ Alert提供的快捷方法alert、confirm、prompt动态创建的弹窗在已打
当弹窗的content、footer、icon使用自定义组件时在这些组件中可以使用 `useAlertContext` 获取当前弹窗的上下文对象,用来主动控制弹窗。
::: tip 注意 `useAlertContext`只能用在setup或者函数式组件中。:::
::: tip 注意
`useAlertContext`只能用在setup或者函数式组件中。
:::
### Methods