naive-ui/demo/documentation/components/configConsumer/enUS/index.demo-entry.md
07akioni 487001d697 build: add changelog to site, refactor loader based on suffix
.demo.md for component demo
.demo-entry.md for demo entry
.md for common docs
2020-08-19 23:30:04 +08:00

611 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 theme-related mutable features.

Demos

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 })