docs: Update faq.zh-CN.md (#44274)

* docs: Update faq.zh-CN.md

Signed-off-by: afc163 <afc163@gmail.com>

* Update faq.zh-CN.md

Signed-off-by: afc163 <afc163@gmail.com>

---------

Signed-off-by: afc163 <afc163@gmail.com>
This commit is contained in:
afc163 2023-08-17 19:12:26 +08:00 committed by GitHub
parent f1c38bf9e0
commit 3525966682
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -11,7 +11,7 @@ title: FAQ
## `undefined``null``antd` 的受控组件中有区别吗?
**有。antd 约定:`undefined` 是非受控的标志,`null` 作为显式的受控空值。**
**有区别。antd 约定:`undefined` 是非受控的标志,`null` 作为显式的受控空值。**
在输入元素中React 认为 `undefined``null` 都属于非受控的标志。当 `value` 由非空值转化为 `undefined``null` 时,组件不再受控,这通常是一些意外情况发生的原因。
@ -107,12 +107,19 @@ antd 内部会对 props 进行浅比较实现性能优化。当状态变更,
有的,你可以访问 https://ant-design.antgroup.com/index-cn 或 https://ant-design.gitee.io/index-cn 。
历史版本:
- 4.x: https://4x-ant-design.antgroup.com
- 3.x: https://ant-design-3x.gitee.io/
- 2.x: https://ant-design-2x.gitee.io/
- 1.x: https://ant-design-1x.gitee.io/
| 产品/版本 | 地址 |
| --- | --- |
| Ant Design 5.x | https://ant-design.antgroup.com <br /> https://ant-design.gitee.io |
| Ant Design 4.x | https://4x-ant-design.antgroup.com |
| Ant Design 3.x | https://ant-design-3x.gitee.io |
| Ant Design 2.x | https://ant-design-2x.gitee.io |
| Ant Design 1.x | https://ant-design-1x.gitee.io |
| Ant Design Pro | https://ant-design-pro.gitee.io/ |
| Ant Design Mobile | https://ant-design-mobile.antgroup.com/zh <br /> https://antd-mobile.gitee.io/ |
| Ant Design Mini | https://ant-design-mini.antgroup.com/zh <br /> https://antd-mobile.gitee.io/ |
| Ant Design Charts | https://ant-design-charts.antgroup.com<br /> https://antd-mobile.gitee.io/ |
| AntV | https://antv.antgroup.com |
| Ant Motion | https://ant-motion.gitee.io |
## `antd` 可以像 `React` 那样使用单文件引入吗?