Skip to content

Commit

Permalink
docs: update doc (#39753)
Browse files Browse the repository at this point in the history
* feat: update doc

* feat: update doc

* feat: update doc

* feat: update doc
  • Loading branch information
heiyu4585 committed Dec 26, 2022
1 parent 2c39d28 commit 7426202
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions components/message/index.en-US.md
Expand Up @@ -131,6 +131,8 @@ return (

**Note:** You must insert `contextHolder` into your children with hooks. You can use origin method if you do not need context connection.

> [App Package Component](/components/app-cn) can be used to simplify the problem of `useMessage` and other methods that need to manually implant contextHolder.
### How to set static methods prefixCls ?

You can config with [`ConfigProvider.config`](/components/config-provider#configproviderconfig-4130)
2 changes: 2 additions & 0 deletions components/message/index.zh-CN.md
Expand Up @@ -132,6 +132,8 @@ return (

**异同**:通过 hooks 创建的 `contextHolder` 必须插入到子元素节点中才会生效,当你不需要上下文信息时请直接调用。

> 可通过 [App 包裹组件](/components/app-cn) 简化 `useMessage` 等方法需要手动植入 contextHolder 的问题。
### 静态方法如何设置 prefixCls ?

你可以通过 [`ConfigProvider.config`](/components/config-provider-cn#configproviderconfig-4130) 进行设置。
2 changes: 2 additions & 0 deletions components/modal/index.en-US.md
Expand Up @@ -194,6 +194,8 @@ return (

**Note:** You must insert `contextHolder` into your children with hooks. You can use origin method if you do not need context connection.

> [App Package Component](/components/app-cn) can be used to simplify the problem of `useModal` and other methods that need to manually implant contextHolder.
### How to disable motion?

You can config `transitionName=""` and `maskTransitionName=""` to remove motion class. But you should note that these prop is internal usage which we don't promise exist in next major version.
Expand Down
2 changes: 2 additions & 0 deletions components/modal/index.zh-CN.md
Expand Up @@ -195,6 +195,8 @@ return (

**异同**:通过 hooks 创建的 `contextHolder` 必须插入到子元素节点中才会生效,当你不需要上下文信息时请直接调用。

> 可通过 [App 包裹组件](/components/app-cn) 简化 `useModal` 等方法需要手动植入 contextHolder 的问题。
### 如何关闭 Modal 动画?

你可以通过 `transitionName=""``maskTransitionName=""` 去除动画 CSS,但是需要注意的是。该方法为内部方法,我们不保证下个大版本重构时该属性会被保留。
Expand Down
2 changes: 2 additions & 0 deletions components/notification/index.en-US.md
Expand Up @@ -115,6 +115,8 @@ return (

**Note:** You must insert `contextHolder` into your children with hooks. You can use origin method if you do not need context connection.

> [App Package Component](/components/app-cn) can be used to simplify the problem of `useNotification` and other methods that need to manually implant contextHolder.
### How to set static methods prefixCls ?

You can config with [`ConfigProvider.config`](/components/config-provider#configproviderconfig-4130)
2 changes: 2 additions & 0 deletions components/notification/index.zh-CN.md
Expand Up @@ -115,6 +115,8 @@ return (

**异同**:通过 hooks 创建的 `contextHolder` 必须插入到子元素节点中才会生效,当你不需要上下文信息时请直接调用。

> 可通过 [App 包裹组件](/components/app-cn) 简化 `useNotification` 等方法需要手动植入 contextHolder 的问题。
### 静态方法如何设置 prefixCls ?

你可以通过 [`ConfigProvider.config`](/components/config-provider-cn#configproviderconfig-4130) 进行设置。

0 comments on commit 7426202

Please sign in to comment.