naive-ui/demo/documentation/components/configConsumer/enUS/index.demo-entry.md

19 lines
611 B
Markdown
Raw Normal View History

# 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.
## Demos
```demo
basic
theme-environment
color
2020-01-27 16:18:48 +08:00
```
## Events
|Name|Parameters|Description|
|-|-|-|
|theme-change|`(theme: string)`||
|namespace-change|`(namespace: string)`||
|language-change|`(language: string)`||
2020-01-27 16:18:48 +08:00
## Slots
|Name|Parameters|Description|
|-|-|-|
2020-05-31 14:30:05 +08:00
|default|`(options: { theme: string, namespace: string, language: string, themeEnvironment: any, styleScheme: Object })`||