mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2024-12-27 05:00:48 +08:00
487001d697
.demo.md for component demo .demo-entry.md for demo entry .md for common docs
19 lines
611 B
Markdown
19 lines
611 B
Markdown
# 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
|
|
```demo
|
|
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|`(options: { theme: string, namespace: string, language: string, themeEnvironment: any, styleScheme: Object })`|| |