Config Provider

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

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

button configurations

message configurations

Config Provider Attributes

AttributeDescriptionTypeAccepted ValuesDefault
localeLocale ObjectObject<Language>languagesEnglish
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

NameDescription
customize default content