From c5a02b2f83b5857d102bc0dc1d4caeabbbc56fde Mon Sep 17 00:00:00 2001 From: afc163 Date: Sun, 7 Apr 2024 17:02:59 +0800 Subject: [PATCH] docs: update info title (#48318) --- components/mentions/index.en-US.md | 2 +- components/mentions/index.zh-CN.md | 2 +- components/qr-code/index.en-US.md | 12 ++++++------ components/qr-code/index.zh-CN.md | 9 ++++----- components/select/index.en-US.md | 2 +- components/select/index.zh-CN.md | 2 +- components/timeline/index.en-US.md | 2 +- components/timeline/index.zh-CN.md | 4 ++-- 8 files changed, 17 insertions(+), 18 deletions(-) diff --git a/components/mentions/index.en-US.md b/components/mentions/index.en-US.md index 0598090af4..edbf6923f4 100644 --- a/components/mentions/index.en-US.md +++ b/components/mentions/index.en-US.md @@ -16,7 +16,7 @@ When you need to mention someone or something. ### Usage upgrade after 5.1.0 -:::info +:::info{title="Upgrade Tip"} After version 5.1.0, we provide a simpler usage `` 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. ::: diff --git a/components/mentions/index.zh-CN.md b/components/mentions/index.zh-CN.md index 58c2455af8..25869b2e5d 100644 --- a/components/mentions/index.zh-CN.md +++ b/components/mentions/index.zh-CN.md @@ -17,7 +17,7 @@ demo: ### 5.1.0 用法升级 -:::info +:::info{title="升级提示"} 在 5.1.0 版本后,我们提供了 `` 的简写方式,有更好的性能和更方便的数据组织方式,开发者不再需要自行拼接 JSX。 同时我们废弃了原先的写法,你还是可以在 5.x 继续使用,但会在控制台看到警告,并会在 6.0 后移除。 ::: diff --git a/components/qr-code/index.en-US.md b/components/qr-code/index.en-US.md index 12fd3878d3..51f7730dc2 100644 --- a/components/qr-code/index.en-US.md +++ b/components/qr-code/index.en-US.md @@ -12,12 +12,6 @@ group: tag: 5.1.0 --- - -:::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. diff --git a/components/qr-code/index.zh-CN.md b/components/qr-code/index.zh-CN.md index 240424da19..c9a3fc442f 100644 --- a/components/qr-code/index.zh-CN.md +++ b/components/qr-code/index.zh-CN.md @@ -13,11 +13,6 @@ group: tag: 5.1.0 --- - -:::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 配置二维码更大,或者通过短链接服务等方式将链接变短。 diff --git a/components/select/index.en-US.md b/components/select/index.en-US.md index d46cdea5ce..4534d7baa5 100644 --- a/components/select/index.en-US.md +++ b/components/select/index.en-US.md @@ -18,7 +18,7 @@ demo: ### Usage upgrade after 5.11.0 -:::info +:::info{title="Upgrade Tip"} After version 5.11.0, we provide a simpler usage `` 的简写方式,有更好的性能和更方便的数据组织方式,开发者不再需要自行拼接 JSX。 同时我们废弃了原先的写法,你还是可以在 5.x 继续使用,但会在控制台看到警告,并会在 6.0 后移除。 ::: diff --git a/components/timeline/index.en-US.md b/components/timeline/index.en-US.md index b6ebfa3923..b74f54ac57 100644 --- a/components/timeline/index.en-US.md +++ b/components/timeline/index.en-US.md @@ -15,7 +15,7 @@ demo: - When you need a timeline to make a visual connection. -:::info +:::info{title="Upgrade Tip"} After version 5.2.0, we provide a simpler usage `` 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. ::: diff --git a/components/timeline/index.zh-CN.md b/components/timeline/index.zh-CN.md index 7122bff5ec..cd1e974c78 100644 --- a/components/timeline/index.zh-CN.md +++ b/components/timeline/index.zh-CN.md @@ -16,8 +16,8 @@ demo: - 需要有一条时间轴进行视觉上的串联时。 -:::info -5.2.0版本之后,我们提供了更简单的用法 `` 以获得更好的性能,使您能在应用中编写更简单的代码。 +:::info{title="升级提示"} +5.2.0 版本之后,我们提供了更简单的用法 `` 以获得更好的性能,使您能在应用中编写更简单的代码。 与此同时,我们弃用了旧的用法,并且将在下一个 major 版本中删除它。 :::