diff --git a/build/full-bundle.ts b/build/full-bundle.ts
index c7afcbb2c0..0827970b90 100644
--- a/build/full-bundle.ts
+++ b/build/full-bundle.ts
@@ -61,12 +61,6 @@ import { EP_PREFIX, excludes } from './constants'
plugins: [...config.plugins, RollupResolveEntryPlugin()],
})
- console.log(chalk.yellow('Generating index.js'))
-
- await bundle.write(umd as any)
-
- console.log(chalk.green('index.js generated'))
-
console.log(chalk.yellow('Generating index.full.js'))
await bundle.write(umdMinified as any)
diff --git a/packages/element-plus/index.ts b/packages/element-plus/index.ts
index dc0a4c0784..0887ab97c3 100644
--- a/packages/element-plus/index.ts
+++ b/packages/element-plus/index.ts
@@ -1,3 +1,4 @@
+import installer from './defaults'
export * from '@element-plus/components'
export * from '@element-plus/directives'
export * from '@element-plus/hooks'
@@ -5,3 +6,6 @@ export * from '@element-plus/tokens'
export { default as makeInstaller } from './make-installer'
export { default } from './defaults'
+
+export const install = installer.install
+export const version = installer.version
diff --git a/packages/hooks/use-locale/index.ts b/packages/hooks/use-locale/index.ts
index 4aeed71184..eaa6f423f6 100644
--- a/packages/hooks/use-locale/index.ts
+++ b/packages/hooks/use-locale/index.ts
@@ -88,13 +88,9 @@ function template(str: string, option) {
})
}
-export const localeProviderMaker = ({
- locale,
-}: {
- locale?: Language
-}) => {
- const lang = ref((locale || English).name)
- const localeRef = ref(locale || English)
+export const localeProviderMaker = (locale = English) => {
+ const lang = ref(locale.name)
+ const localeRef = ref(locale)
return {
lang,
locale: localeRef,
diff --git a/website/components/demo-block.vue b/website/components/demo-block.vue
index 5bb42540ca..caa8098514 100644
--- a/website/components/demo-block.vue
+++ b/website/components/demo-block.vue
@@ -262,9 +262,9 @@ ${this.codepen.style}
// since 2.6.2 use code rather than jsfiddle https://blog.codepen.io/documentation/api/prefill/
const { script, html, style } = this.codepen
const resourcesTpl = '