@@ -5,27 +5,27 @@ lang: en-US
5
5
6
6
# Config Provider
7
7
8
- Config Provider is used for providing global configurations, which enables your entire application to access these configurations everywhere
8
+ Config Provider is used for providing global configurations, which enables your entire application to access these configurations everywhere.
9
9
10
- ## i18n related configurations
10
+ ## i18n Configurations
11
11
12
- Configure i18n related properties via Config Provider, to get language switching feature
12
+ Configure i18n related properties via Config Provider, to get language switching feature.
13
13
14
14
:::demo Use two attributes to provide i18n related config
15
15
16
16
config-provider/usage
17
17
18
18
:::
19
19
20
- ## button configurations
20
+ ## Button Configurations
21
21
22
22
::: demo
23
23
24
24
config-provider/button
25
25
26
26
:::
27
27
28
- ## message configurations
28
+ ## Message Configurations
29
29
30
30
::: demo
31
31
@@ -35,13 +35,13 @@ config-provider/message
35
35
36
36
## Config Provider Attributes
37
37
38
- | Attribute | Description | Type | Accepted Values | Default |
39
- | --------- | ----------------------------------------------------------------------------- | ------------------- | --------------------------------------------------------------------------------------- | ----------------------- |
40
- | locale | Locale Object | Object \< Language\> | [ languages] ( https://github.com/element-plus/element-plus/tree/dev/packages/locale/lang ) | English |
41
- | size | global component size | string | large / default /small | default |
42
- | zIndex | global Initial zIndex | number | - | - |
43
- | button | button related configuration, [ see the following table] ( #button-attributes ) | ButtonGlobalConfig | - | see the following table |
44
- | message | message related configuration, [ see the following table] ( #message-attributes ) | MessageGlobalConfig | - | see the following table |
38
+ | Attribute | Description | Type | Accepted Values | Default |
39
+ | --------- | ----------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | -------------------------------------------------------------------- ----------------------- |
40
+ | locale | Locale Object | [ Language] ( https://github.com/element-plus/element-plus/blob/a98ff9b40c0c3d2b9959f99919bd8363e3e3c25a/packages/locale/index.ts#L5 ) | [ languages] ( https://github.com/element-plus/element-plus/tree/dev/packages/locale/lang ) | [ English] ( https://github.com/element-plus/element-plus/blob/dev/packages/locale/lang/en.ts ) |
41
+ | size | global component size | string | large / default /small | default |
42
+ | zIndex | global Initial zIndex | number | - | - |
43
+ | button | button related configuration, [ see the following table] ( #button-attributes ) | ButtonGlobalConfig | - | see the following table |
44
+ | message | message related configuration, [ see the following table] ( #message-attributes ) | MessageGlobalConfig | - | see the following table |
45
45
46
46
## Button Attributes
47
47
@@ -57,6 +57,6 @@ config-provider/message
57
57
58
58
## ConfigProvider Slots
59
59
60
- | Name | Description |
61
- | ---- | ------------------------- |
62
- | — | customize default content |
60
+ | Name | Description | Scope |
61
+ | ---- | ------------------------- | ------------------------------------------------------- |
62
+ | - | customize default content | config: provided global config (inherited from the top) |
0 commit comments