mirror of
https://gitee.com/element-plus/element-plus.git
synced 2024-12-04 20:27:44 +08:00
docs: add config-provider namespace (#7128)
This commit is contained in:
parent
317d2d2a45
commit
5bb64819c7
4
docs/components.d.ts
vendored
4
docs/components.d.ts
vendored
@ -2,7 +2,7 @@
|
|||||||
// We suggest you to commit this file into source control
|
// We suggest you to commit this file into source control
|
||||||
// Read more: https://github.com/vuejs/vue-next/pull/3399
|
// Read more: https://github.com/vuejs/vue-next/pull/3399
|
||||||
|
|
||||||
declare module 'vue' {
|
declare module '@vue/runtime-core' {
|
||||||
export interface GlobalComponents {
|
export interface GlobalComponents {
|
||||||
IRiCodeLine: typeof import('~icons/ri/code-line')['default']
|
IRiCodeLine: typeof import('~icons/ri/code-line')['default']
|
||||||
IRiExternalLinkLine: typeof import('~icons/ri/external-link-line')['default']
|
IRiExternalLinkLine: typeof import('~icons/ri/external-link-line')['default']
|
||||||
@ -10,6 +10,8 @@ declare module 'vue' {
|
|||||||
IRiFlaskLine: typeof import('~icons/ri/flask-line')['default']
|
IRiFlaskLine: typeof import('~icons/ri/flask-line')['default']
|
||||||
IRiGithubLine: typeof import('~icons/ri/github-line')['default']
|
IRiGithubLine: typeof import('~icons/ri/github-line')['default']
|
||||||
IRiTranslate2: typeof import('~icons/ri/translate2')['default']
|
IRiTranslate2: typeof import('~icons/ri/translate2')['default']
|
||||||
|
RouterLink: typeof import('vue-router')['RouterLink']
|
||||||
|
RouterView: typeof import('vue-router')['RouterView']
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -41,14 +41,15 @@ In this section, you can learn how to use Config Provider to provide experimenta
|
|||||||
|
|
||||||
## Config Provider Attributes
|
## Config Provider Attributes
|
||||||
|
|
||||||
| Attribute | Description | Type | Accepted Values | Default |
|
| Attribute | Description | Type | Accepted Values | Default |
|
||||||
| --------------------- | --------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
|
| --------------------- | ---------------------------------------------------------------------------------------------------------------------------------------------------------------------- | ---------------------------------------------------------------------------------------------------------------------------------- | --------------------------------------------------------------------------------------- | ------------------------------------------------------------------------------------------- |
|
||||||
| 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) |
|
| 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) |
|
||||||
| size | global component size | string | large / default /small | default |
|
| size | global component size | string | large / default /small | default |
|
||||||
| zIndex | global Initial zIndex | number | - | - |
|
| zIndex | global Initial zIndex | number | - | - |
|
||||||
| button | button related configuration, [see the following table](#button-attributes) | ButtonGlobalConfig | - | see the following table |
|
| namespace | global component className prefix (cooperated with [$namespace](https://github.com/element-plus/element-plus/blob/dev/packages/theme-chalk/src/mixins/config.scss#L1)) | string | - | el |
|
||||||
| message | message related configuration, [see the following table](#message-attributes) | MessageGlobalConfig | - | see the following table |
|
| button | button related configuration, [see the following table](#button-attributes) | ButtonGlobalConfig | - | see the following table |
|
||||||
| experimental-features | features at experimental stage to be added, all features are default to be set to false | Object | - | - |
|
| message | message related configuration, [see the following table](#message-attributes) | MessageGlobalConfig | - | see the following table |
|
||||||
|
| experimental-features | features at experimental stage to be added, all features are default to be set to false | Object | - | - |
|
||||||
|
|
||||||
## Button Attributes
|
## Button Attributes
|
||||||
|
|
||||||
|
Loading…
Reference in New Issue
Block a user