docs: update info title (#48318)

This commit is contained in:
afc163 2024-04-07 17:02:59 +08:00 committed by GitHub
parent 4f23faf0dd
commit c5a02b2f83
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
8 changed files with 17 additions and 18 deletions

View File

@ -16,7 +16,7 @@ When you need to mention someone or something.
### Usage upgrade after 5.1.0
<!-- prettier-ignore -->
:::info
:::info{title="Upgrade Tip"}
After version 5.1.0, we provide a simpler usage `<Mentions options={[...]} />` with better performance and potential of writing simpler code style in your applications.
Meanwhile, we deprecated the old usage in browser console, we will remove it in antd 6.0.
:::

View File

@ -17,7 +17,7 @@ demo:
### 5.1.0 用法升级
<!-- prettier-ignore -->
:::info
:::info{title="升级提示"}
在 5.1.0 版本后,我们提供了 `<Mentions options={[...]} />` 的简写方式,有更好的性能和更方便的数据组织方式,开发者不再需要自行拼接 JSX。
同时我们废弃了原先的写法,你还是可以在 5.x 继续使用,但会在控制台看到警告,并会在 6.0 后移除。
:::

View File

@ -12,12 +12,6 @@ group:
tag: 5.1.0
---
<!-- prettier-ignore -->
:::info
If the QR code cannot be scanned for identification, it may be because the link address is too long, which leads to too dense pixels.
You can configure the QR code to be larger through size, or shorten the link through short link services.
:::
## When To Use
Used when the text needs to be converted into a QR Code.
@ -68,3 +62,9 @@ The ErrorLevel means that the QR code can be scanned normally after being blocke
Generally, the QR code is divided into 4 error correction levels: Level `L` can correct about `7%` errors, Level `M` can correct about `15%` errors, Level `Q` can correct about `25%` errors, and Level `H` can correct about `30%` errors. When the content encoding of the QR code carries less information, in other words, when the value link is short, set different error correction levels, and the generated image will not change.
> For more information, see the: [https://www.qrcode.com/en/about/error_correction](https://www.qrcode.com/en/about/error_correction.html)
### ⚠️⚠️⚠️ Cannot scan the QR code?
If the QR code cannot be scanned for identification, it may be because the link address is too long, which leads to too dense pixels.
You can configure the QR code to be larger through size, or shorten the link through short link services.

View File

@ -13,11 +13,6 @@ group:
tag: 5.1.0
---
<!-- prettier-ignore -->
:::info
若二维码无法扫码识别,可能是因为链接地址过长导致像素过于密集,可以通过 size 配置二维码更大,或者通过短链接服务等方式将链接变短。
:::
## 何时使用
当需要将文本转换成为二维码时使用。
@ -68,3 +63,7 @@ tag: 5.1.0
通常情况下二维码分为 4 个纠错级别:`L级` 可纠正约 `7%` 错误、`M级` 可纠正约 `15%` 错误、`Q级` 可纠正约 `25%` 错误、`H级` 可纠正约`30%` 错误。并不是所有位置都可以缺损,像最明显的三个角上的方框,直接影响初始定位。中间零散的部分是内容编码,可以容忍缺损。当二维码的内容编码携带信息比较少的时候,也就是链接比较短的时候,设置不同的纠错等级,生成的图片不会发生变化。
> 有关更多信息,可参阅相关资料:[https://www.qrcode.com/zh/about/error_correction](https://www.qrcode.com/zh/about/error_correction.html)
### ⚠️⚠️⚠️ 二维码无法扫描?
若二维码无法扫码识别,可能是因为链接地址过长导致像素过于密集,可以通过 size 配置二维码更大,或者通过短链接服务等方式将链接变短。

View File

@ -18,7 +18,7 @@ demo:
### Usage upgrade after 5.11.0
<!-- prettier-ignore -->
:::info
:::info{title="Upgrade Tip"}
After version 5.11.0, we provide a simpler usage `<Select options={[...]} />` with better performance and potential of writing simpler code style in your applications.
Meanwhile, we deprecated the old usage in browser console, we will remove it in antd 6.0.
:::

View File

@ -19,7 +19,7 @@ demo:
### 5.11.0 用法升级
<!-- prettier-ignore -->
:::info
:::info{title="升级提示"}
在 5.11.0 版本后,我们提供了 `<Select options={[...]} />` 的简写方式,有更好的性能和更方便的数据组织方式,开发者不再需要自行拼接 JSX。
同时我们废弃了原先的写法,你还是可以在 5.x 继续使用,但会在控制台看到警告,并会在 6.0 后移除。
:::

View File

@ -15,7 +15,7 @@ demo:
- When you need a timeline to make a visual connection.
<!-- prettier-ignore -->
:::info
:::info{title="Upgrade Tip"}
After version 5.2.0, we provide a simpler usage `<Timeline items={[...]} />` with better performance and potential of writing simpler code style in your applications.
Meanwhile, we deprecated the old usage in browser console, we will remove it in antd 6.0.
:::

View File

@ -16,7 +16,7 @@ demo:
- 需要有一条时间轴进行视觉上的串联时。
<!-- prettier-ignore -->
:::info
:::info{title="升级提示"}
5.2.0 版本之后,我们提供了更简单的用法 `<Timeline items={[...]} />` 以获得更好的性能,使您能在应用中编写更简单的代码。
与此同时,我们弃用了旧的用法,并且将在下一个 major 版本中删除它。
:::