Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

docs: update doc #39753

Merged
merged 4 commits into from Dec 26, 2022
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
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) 进行设置。