mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
602 B
602 B
Config Consumer
Config Consumer is built for getting config (usually as global config) of Config Provider. It will be helpful when you want to build a component which supports themes or other theme-related mutable features.
Demos
basic
theme-environment
color
Events
Name | Parameters | Description |
---|---|---|
theme-change | (theme: string) |
|
namespace-change | (namespace: string) |
|
language-change | (language: string) |
Slots
Name | Parameters | Description |
---|---|---|
default | ({ theme: string, namespace: string, language: string, themeEnvironment: any, styleScheme: object }) |