Skip to content

config-provider组件在嵌套使用时,内层组件影响外层组件,内部影响外部 #7708

@core-admin

Description

@core-admin
  • I have searched the issues of this repository and believe that this is not a duplicate.

image

Version

4.2.3

Environment

在线环境

Reproduction link

Edit on CodeSandbox

Steps to reproduce

基于官方提供的主题章节中的代码codesandbox进行修改测试的。

What is expected?

内部使用config-provider组件修改token,应该仅响应子组件,不应该对其父组件及其父组件的其他组件造成影响

What is actually happening?

当把 button 组件 嵌套进 config-provider组件修改主题色后,config-provider外层的组件也同样被修改了主题色,受到了此组件的影响

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions