Skip to content

是否有全局配置组件自定义样式的实现? #50

@hirohe

Description

@hirohe

Is your feature request related to a problem? Please describe.

组件有customize的属性来实现各个组件的样式自定义,不过没有从文档看到是否有全局配置组件自定义样式的方式

Describe the solution you'd like

依靠React Context组件来注入自定义的配置

const config = {
  Stepper: {
    // ... Stepper customize
  },
  Switch: {
    // ...
  },
  Button: {
    // ...
  }
}

<ComponentCustomizeProvider config={config}>
  {children}
</ComponentCustomizeProvider>

我觉得这样能统一管理所有组件的样式自定义

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or requestfeatureNew featureproposalnew feature proposal

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions