Skip to content

Commit 8d1e66a

Browse files
authored
docs: [config-provider] add slot scope (element-plus#5792)
1 parent ea90c4c commit 8d1e66a

File tree

2 files changed

+17
-19
lines changed

2 files changed

+17
-19
lines changed

.vscode/settings.json

+2-4
Original file line numberDiff line numberDiff line change
@@ -11,17 +11,15 @@
1111
"typescript",
1212
"typescriptreact",
1313
"html",
14-
"vue",
15-
"markdown"
14+
"vue"
1615
],
1716
"eslint.validate": [
1817
"javascript",
1918
"javascriptreact",
2019
"typescript",
2120
"typescriptreact",
2221
"html",
23-
"vue",
24-
"markdown"
22+
"vue"
2523
],
2624
"vite.devCommand": "pnpm run dev -- --",
2725
"i18n-ally.localesPaths": "packages/locale/lang",

docs/en-US/component/config-provider.md

+15-15
Original file line numberDiff line numberDiff line change
@@ -5,27 +5,27 @@ lang: en-US
55

66
# Config Provider
77

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.
99

10-
## i18n related configurations
10+
## i18n Configurations
1111

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.
1313

1414
:::demo Use two attributes to provide i18n related config
1515

1616
config-provider/usage
1717

1818
:::
1919

20-
## button configurations
20+
## Button Configurations
2121

2222
:::demo
2323

2424
config-provider/button
2525

2626
:::
2727

28-
## message configurations
28+
## Message Configurations
2929

3030
:::demo
3131

@@ -35,13 +35,13 @@ config-provider/message
3535

3636
## Config Provider Attributes
3737

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 |
4545

4646
## Button Attributes
4747

@@ -57,6 +57,6 @@ config-provider/message
5757

5858
## ConfigProvider Slots
5959

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

Comments
 (0)