mirror of
https://github.com/ant-design/ant-design.git
synced 2024-11-27 12:39:49 +08:00
docs: fix more typo (#47807)
This commit is contained in:
parent
b6ad172a3d
commit
387c36aa30
@ -66,7 +66,7 @@ If there are special needs (only modifying single component language), Please us
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
:::warning
|
||||
When use with Nextjs App Router, make sure to add `'use client'` before import locale file of dayjs. It's because all components of Ant Design only works in client, importing locale in RSC will not work.
|
||||
When use with Next.js App Router, make sure to add `'use client'` before import locale file of dayjs. It's because all components of Ant Design only works in client, importing locale in RSC will not work.
|
||||
:::
|
||||
|
||||
```jsx
|
||||
|
@ -67,7 +67,7 @@ demo:
|
||||
|
||||
<!-- prettier-ignore -->
|
||||
:::warning
|
||||
在搭配 Nextjs 的 App Router 使用时,注意在引入 dayjs 的 locale 文件时加上 `'use client'`。这是由于 Ant Design 的组件都是客户端组件,在 RSC 中引入 dayjs 的 locale 文件将不会在客户端生效。
|
||||
在搭配 Next.js 的 App Router 使用时,注意在引入 dayjs 的 locale 文件时加上 `'use client'`。这是由于 Ant Design 的组件都是客户端组件,在 RSC 中引入 dayjs 的 locale 文件将不会在客户端生效。
|
||||
:::
|
||||
|
||||
```jsx
|
||||
|
@ -47,7 +47,7 @@ v5 使用 `rootClassName` 与 `rootStyle` 来配置最外层元素样式。原 v
|
||||
|
||||
| 参数 | 说明 | 类型 | 默认值 | 版本 |
|
||||
| --- | --- | --- | --- | --- |
|
||||
| autoFocus | 抽屉展开后是否将焦点切换至其 Dom 节点 | boolean | true | 4.17.0 |
|
||||
| autoFocus | 抽屉展开后是否将焦点切换至其 DOM 节点 | boolean | true | 4.17.0 |
|
||||
| afterOpenChange | 切换抽屉时动画结束后的回调 | function(open) | - | |
|
||||
| className | Drawer 容器外层 className 设置,如果需要设置最外层,请使用 rootClassName | string | - | |
|
||||
| classNames | 语义化结构 className | [Record<SemanticDOM, string>](#semantic-dom) | - | 5.10.0 |
|
||||
|
@ -97,7 +97,7 @@ For every pull request created, GitHub Actions will trigger the build process to
|
||||
### Other Reviews
|
||||
|
||||
- The [size-limit.yml](https://github.com/ant-design/ant-design/blob/5dfce5443744271f778313c23eb8ec3a5af481f8/.github/workflows/size-limit.ym) job checks the size of the product resulting from the PR.
|
||||
- Recently, the team has added chatGPT to GitHub Actions to perform AI-based code review. The specific job can be found in the [chatgpt-cr.yml](https://github.com/ant-design/ant-design/blob/f7fd474cf8792ea01d03461d407c0edc11828a1c/.github/workflows/chatgpt-cr.yml) file.
|
||||
- Recently, the team has added ChatGPT to GitHub Actions to perform AI-based code review. The specific job can be found in the [chatgpt-cr.yml](https://github.com/ant-design/ant-design/blob/f7fd474cf8792ea01d03461d407c0edc11828a1c/.github/workflows/chatgpt-cr.yml) file.
|
||||
|
||||
## Unit Testing
|
||||
|
||||
|
@ -80,4 +80,4 @@ We can continue to be compatible with previous usage in this way. It is still a
|
||||
|
||||
## Summary
|
||||
|
||||
API design is a difficult problem. As the iteration of technology stack and components themselves. Some designs will gradually decay, and API upgrades themselves are also painful for developers. We hope that through this article, you can understand our design ideas and some problems in the upgrade process. If you have any suggestions or ideas, welcome to discuss on Github.
|
||||
API design is a difficult problem. As the iteration of technology stack and components themselves. Some designs will gradually decay, and API upgrades themselves are also painful for developers. We hope that through this article, you can understand our design ideas and some problems in the upgrade process. If you have any suggestions or ideas, welcome to discuss on GitHub.
|
||||
|
@ -80,4 +80,4 @@ useImperativeHandle(
|
||||
|
||||
## 总结
|
||||
|
||||
API 设计是个难题,随着技术栈以及组件本身的迭代。一些设计会逐渐腐朽,而 API 升级本身对于开发者也是痛苦的。我们希望通过这篇文章,让开发者能够理解我们的设计思路以及在升级过程中的一些问题。如果你有任何的建议或者想法,欢迎在 Github 中讨论。
|
||||
API 设计是个难题,随着技术栈以及组件本身的迭代。一些设计会逐渐腐朽,而 API 升级本身对于开发者也是痛苦的。我们希望通过这篇文章,让开发者能够理解我们的设计思路以及在升级过程中的一些问题。如果你有任何的建议或者想法,欢迎在 GitHub 中讨论。
|
||||
|
@ -10,7 +10,7 @@ It's easier to find out the problem with the dependencies own by ourselves. But
|
||||
|
||||
### Confirm information
|
||||
|
||||
We have added a [template site](https://new-issue.ant.design/) for Github issue. Developers will see the following form when submitting issues, and developers will be asked to fill in the relevant information as completely as possible:
|
||||
We have added a [template site](https://new-issue.ant.design/) for GitHub issue. Developers will see the following form when submitting issues, and developers will be asked to fill in the relevant information as completely as possible:
|
||||
|
||||
![Issue Helper](https://user-images.githubusercontent.com/5378891/231633510-2e7c7819-12c2-4153-b3c8-4d5576116a08.png)
|
||||
|
||||
@ -26,7 +26,7 @@ Then through the issue description, you can determine the approximate package an
|
||||
|
||||
![Publish Time](https://user-images.githubusercontent.com/5378891/231636272-e423301a-f8df-407e-8d4e-a49e219631e4.png)
|
||||
|
||||
When we find relevant updates, we will install the previous version for comparison to see if the build was successful. After checking one by one, we can determine which version the problem is, and we will also raise an issue for the corresponding Github (of course, if there is already one, just +1). At the same time, we also need to send a patch version to temporarily lock the corresponding version and remove it after the next update.
|
||||
When we find relevant updates, we will install the previous version for comparison to see if the build was successful. After checking one by one, we can determine which version the problem is, and we will also raise an issue for the corresponding GitHub (of course, if there is already one, just +1). At the same time, we also need to send a patch version to temporarily lock the corresponding version and remove it after the next update.
|
||||
|
||||
### Schedule build
|
||||
|
||||
|
@ -10,7 +10,7 @@ Ant Design 作为大型组件库,内部依赖十分复杂。有时候 antd 代
|
||||
|
||||
### 确定信息
|
||||
|
||||
我们为 Github issue 添加了一个[模板站点](https://new-issue.ant.design/),开发者在提交问题时会看到如下表格,会让开发者尽量完整的填写相关信息:
|
||||
我们为 GitHub issue 添加了一个[模板站点](https://new-issue.ant.design/),开发者在提交问题时会看到如下表格,会让开发者尽量完整的填写相关信息:
|
||||
|
||||
![Issue Helper](https://user-images.githubusercontent.com/5378891/231633510-2e7c7819-12c2-4153-b3c8-4d5576116a08.png)
|
||||
|
||||
@ -26,7 +26,7 @@ Ant Design 作为大型组件库,内部依赖十分复杂。有时候 antd 代
|
||||
|
||||
![Publish Time](https://user-images.githubusercontent.com/5378891/231636272-e423301a-f8df-407e-8d4e-a49e219631e4.png)
|
||||
|
||||
在确定范围后,我们便可以通过安装先前版本进行构建的方式排查出有问题的版本。暂时在 package.json 中锁定并发布 patch 版本以解决依赖问题(在修复之后解除锁定)。同时也会向对应的 Github 提 issue(当然,如果已经有了去 +1 即可)。
|
||||
在确定范围后,我们便可以通过安装先前版本进行构建的方式排查出有问题的版本。暂时在 package.json 中锁定并发布 patch 版本以解决依赖问题(在修复之后解除锁定)。同时也会向对应的 GitHub 提 issue(当然,如果已经有了去 +1 即可)。
|
||||
|
||||
### 定时构建
|
||||
|
||||
|
@ -166,4 +166,4 @@ const App = () => {
|
||||
|
||||
### 最后
|
||||
|
||||
antd 的 Table 优化仍在进行中,我们也会持续关注 React 的新特性,以及社区的新思路。如果你有任何想法,欢迎在 Github 留言讨论。此外,对于自行研发组件的建议,我们推荐在每次完成优化后,都要创建对应的测试用例,并且备注来源 issue 以便于未来的回溯。以上。
|
||||
antd 的 Table 优化仍在进行中,我们也会持续关注 React 的新特性,以及社区的新思路。如果你有任何想法,欢迎在 GitHub 留言讨论。此外,对于自行研发组件的建议,我们推荐在每次完成优化后,都要创建对应的测试用例,并且备注来源 issue 以便于未来的回溯。以上。
|
||||
|
@ -79,4 +79,4 @@ type DomRefType = GetRef<typeof Div>; // HTMLDivElement
|
||||
|
||||
### The End
|
||||
|
||||
Here is the type util we provided, hope it can help you. If you have better ideas, please feel free to raise an issue or PR on Github.
|
||||
Here is the type util we provided, hope it can help you. If you have better ideas, please feel free to raise an issue or PR on GitHub.
|
||||
|
@ -79,4 +79,4 @@ type DomRefType = GetRef<typeof Div>; // HTMLDivElement
|
||||
|
||||
### 最后
|
||||
|
||||
以上就是我们推出的工具类型,希望能够帮助到大家。如果你有更好的想法,欢迎在 Github 上提出 issue 或者 PR。
|
||||
以上就是我们推出的工具类型,希望能够帮助到大家。如果你有更好的想法,欢迎在 GitHub 上提出 issue 或者 PR。
|
||||
|
@ -25,7 +25,7 @@ This document will help you upgrade from antd `4.x` version to antd `5.x` versio
|
||||
|
||||
- Remove less, adopt CSS-in-JS, for better support of dynamic themes. The bottom layer uses [@ant-design/cssinjs](https://github.com/ant-design/cssinjs) as a solution.
|
||||
- All less files are removed, and less variables are no longer exported.
|
||||
- Css files are no longer included in package. Since CSS-in-JS supports importing on demand, the original `antd/dist/antd.css` has also been abandoned. If you need to reset some basic styles, please import `antd/dist/reset.css`.
|
||||
- CSS files are no longer included in package. Since CSS-in-JS supports importing on demand, the original `antd/dist/antd.css` has also been abandoned. If you need to reset some basic styles, please import `antd/dist/reset.css`.
|
||||
- If you need to reset the style of the component, but you don't want to introduce `antd/dist/reset.css` to pollute the global style, You can try using the [App](/components/app) in the outermost layer to solve the problem that native elements do not have antd specification style.
|
||||
- Remove css variables and dynamic theme built on top of them.
|
||||
- LocaleProvider has been deprecated in 4.x (use `<ConfigProvider locale />` instead), we removed the related folder `antd/es/locale-provider` and `antd/lib/locale-provider` in 5.x.
|
||||
|
@ -12,7 +12,7 @@ title: 概览
|
||||
|
||||
设计模式遵循 Ant Design 设计价值观,并为企业产品中反复出现的设计问题提供通用解决方案。设计者可以直接使用设计模式来完成界面设计,也可以以设计模式为出发点,衍生出更加针对业务的解决方案,以满足个性化的设计需求。
|
||||
|
||||
同时,这是一份动态更新的设计文档,您的阅读和反馈是我们前进的动力,[Github 反馈地址](https://github.com/ant-design/ant-design/issues)。
|
||||
同时,这是一份动态更新的设计文档,您的阅读和反馈是我们前进的动力,[GitHub 反馈地址](https://github.com/ant-design/ant-design/issues)。
|
||||
|
||||
## 框架信息
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user