2019-11-09 22:45:07 +08:00
# Config Consumer
2020-02-03 19:37:56 +08:00
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.
2019-11-09 22:45:07 +08:00
## Demos
```demo
basic
2019-11-28 16:58:18 +08:00
theme-environment
2019-12-16 19:00:14 +08:00
color
2020-01-27 16:18:48 +08:00
```
## Events
2020-01-30 23:54:06 +08:00
|Name|Parameters|Description|
|-|-|-|
|theme-change|`(theme: string)`||
|namespace-change|`(namespace: string)`||
|language-change|`(language: string)`||
2020-01-27 16:18:48 +08:00
## Slots
2020-01-30 23:54:06 +08:00
|Name|Parameters|Description|
|-|-|-|
2020-05-31 14:30:05 +08:00
|default|`(options: { theme: string, namespace: string, language: string, themeEnvironment: any, styleScheme: Object })`||