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
Attribute | Description | Type | Accepted Values | Default |
---|---|---|---|---|
locale | Locale Object | Language | languages | English |
size | global component size | string | large / default /small | default |
zIndex | global Initial zIndex | number | - | - |
button | button related configuration, see the following table | ButtonGlobalConfig | - | see the following table |
message | message related configuration, see the following table | MessageGlobalConfig | - | see the following table |
Button Attributes
Attribute | Description | Type | Accepted Values | Default |
---|---|---|---|---|
autoInsertSpace | automatically insert a space between two chinese characters | boolean | - | false |
Message Attributes
Attribute | Description | Type | Accepted Values | Default |
---|---|---|---|---|
max | the maximum number of messages that can be displayed at the same time | number | - | - |
ConfigProvider Slots
Name | Description | Scope |
---|---|---|
- | customize default content | config: provided global config (inherited from the top) |