naive-ui/demo/documentation/components/configConsumer/enUS/index.md
2020-01-27 16:18:48 +08:00

534 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 mutable features.

Demos

basic
theme-environment
color

Props

Events

Name Parameters
theme-change (theme, oldTheme)
namespace-change (namespace, oldNamespace)
language-change (language, oldLanguage)

Slots

Name Parameters
default ({ theme, namespace, language, themeEnvironment, styleScheme })