diff --git a/docs/components.d.ts b/docs/components.d.ts index 413f1a8144..2424c0dc1f 100644 --- a/docs/components.d.ts +++ b/docs/components.d.ts @@ -2,7 +2,7 @@ // We suggest you to commit this file into source control // Read more: https://github.com/vuejs/vue-next/pull/3399 -declare module 'vue' { +declare module '@vue/runtime-core' { export interface GlobalComponents { IRiCodeLine: typeof import('~icons/ri/code-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'] IRiGithubLine: typeof import('~icons/ri/github-line')['default'] IRiTranslate2: typeof import('~icons/ri/translate2')['default'] + RouterLink: typeof import('vue-router')['RouterLink'] + RouterView: typeof import('vue-router')['RouterView'] } } diff --git a/docs/en-US/component/config-provider.md b/docs/en-US/component/config-provider.md index 38d4e5cd88..f6b538c6d8 100644 --- a/docs/en-US/component/config-provider.md +++ b/docs/en-US/component/config-provider.md @@ -41,14 +41,15 @@ In this section, you can learn how to use Config Provider to provide experimenta ## Config Provider Attributes -| 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) | -| size | global component size | string | large / default /small | default | -| zIndex | global Initial zIndex | number | - | - | -| button | button related configuration, [see the following table](#button-attributes) | ButtonGlobalConfig | - | see the following table | -| 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 | - | - | +| 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) | +| size | global component size | string | large / default /small | default | +| zIndex | global Initial zIndex | number | - | - | +| 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 | +| button | button related configuration, [see the following table](#button-attributes) | ButtonGlobalConfig | - | see the following table | +| 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