Config Provider

Config Provider is used for providing global configurations, which enables your entire application to access these configurations everywhere.

i18n Configurations

Configure i18n related properties via Config Provider, to get language switching feature.

Button Configurations

Message Configurations

Config Provider Attributes

AttributeDescriptionTypeAccepted ValuesDefault
localeLocale ObjectLanguagelanguagesEnglish
sizeglobal component sizestringlarge / default /smalldefault
zIndexglobal Initial zIndexnumber--
buttonbutton related configuration, see the following tableButtonGlobalConfig-see the following table
messagemessage related configuration, see the following tableMessageGlobalConfig-see the following table

Button Attributes

AttributeDescriptionTypeAccepted ValuesDefault
autoInsertSpaceautomatically insert a space between two chinese charactersboolean-false

Message Attributes

AttributeDescriptionTypeAccepted ValuesDefault
maxthe maximum number of messages that can be displayed at the same timenumber--

ConfigProvider Slots

NameDescriptionScope
-customize default contentconfig: provided global config (inherited from the top)