mirror of
https://github.com/tusen-ai/naive-ui.git
synced 2025-01-12 12:25:16 +08:00
19 lines
572 B
Markdown
19 lines
572 B
Markdown
# 配置消费者 Config Consumer
|
|
配置消费者的作用是获取配置提供者的(通常是全局的)配置。当你想创建一个支持主题或随主题变更内容的组件时,它十分管用。
|
|
## 演示
|
|
```demo
|
|
basic
|
|
theme-environment
|
|
color
|
|
```
|
|
## Events
|
|
|名称|参数|说明|
|
|
|-|-|-|
|
|
|theme-change|`(theme: string)`||
|
|
|namespace-change|`(namespace: string)`||
|
|
|language-change|`(language: string)`||
|
|
|
|
## Slots
|
|
|名称|参数|说明|
|
|
|-|-|-|
|
|
|default|`({ theme: string, namespace: string, language: string, themeEnvironment: any, styleScheme: object })`|| |