From 3d777e5e6c961d6cb38b45f0a66dac93833f4440 Mon Sep 17 00:00:00 2001 From: zazzaz Date: Fri, 16 Oct 2020 11:22:08 +0800 Subject: [PATCH] chore: update --- website/docs/en-US/custom-theme.md | 4 +++- website/docs/en-US/i18n.md | 4 +++- website/docs/es/custom-theme.md | 4 +++- website/docs/es/i18n.md | 4 +++- website/docs/fr-FR/custom-theme.md | 4 +++- website/docs/fr-FR/i18n.md | 4 +++- website/docs/zh-CN/custom-theme.md | 4 +++- website/docs/zh-CN/i18n.md | 4 +++- 8 files changed, 24 insertions(+), 8 deletions(-) diff --git a/website/docs/en-US/custom-theme.md b/website/docs/en-US/custom-theme.md index 8b2cd048db..76c59462a5 100644 --- a/website/docs/en-US/custom-theme.md +++ b/website/docs/en-US/custom-theme.md @@ -31,8 +31,10 @@ Then in the entry file of your project, import this style file instead of Elemen import Vue from 'vue' import ElementPlus from 'element-plus' import './element-variables.scss' +import App from './App.vue'; -Vue.use(Element) +const app = createApp(App) +app.use(ElementPlus) ``` :::tip diff --git a/website/docs/en-US/i18n.md b/website/docs/en-US/i18n.md index 112f44aa49..ab04a9d4a7 100644 --- a/website/docs/en-US/i18n.md +++ b/website/docs/en-US/i18n.md @@ -47,9 +47,11 @@ import VueI18n from 'vue-i18n' import ElementPlus from 'element-plus' import enLocale from 'element-plus/lib/locale/lang/en' import zhLocale from 'element-plus/lib/locale/lang/zh-CN' +import App from './App.vue'; +const app = createApp(App) +app.use(ElementPlus) Vue.use(VueI18n) -Vue.use(Element) Vue.config.lang = 'zh-cn' Vue.locale('zh-cn', zhLocale) diff --git a/website/docs/es/custom-theme.md b/website/docs/es/custom-theme.md index 869570e005..2dac32042a 100644 --- a/website/docs/es/custom-theme.md +++ b/website/docs/es/custom-theme.md @@ -31,8 +31,10 @@ Entonces, en el archivo principal del proyecto, importe este archivo de estilos import Vue from 'vue' import ElementPlus from 'element-plus' import './element-variables.scss' +import App from './App.vue'; -Vue.use(Element) +const app = createApp(App) +app.use(ElementPlus) ``` :::tip diff --git a/website/docs/es/i18n.md b/website/docs/es/i18n.md index 973249da8d..51a8d96737 100644 --- a/website/docs/es/i18n.md +++ b/website/docs/es/i18n.md @@ -47,9 +47,11 @@ import VueI18n from 'vue-i18n' import ElementPlus from 'element-plus' import enLocale from 'element-plus/lib/locale/lang/en' import zhLocale from 'element-plus/lib/locale/lang/zh-CN' +import App from './App.vue'; +const app = createApp(App) +app.use(ElementPlus) Vue.use(VueI18n) -Vue.use(Element) Vue.config.lang = 'zh-cn' Vue.locale('zh-cn', zhLocale) diff --git a/website/docs/fr-FR/custom-theme.md b/website/docs/fr-FR/custom-theme.md index 76d6378a2a..1092d37ee6 100644 --- a/website/docs/fr-FR/custom-theme.md +++ b/website/docs/fr-FR/custom-theme.md @@ -31,8 +31,10 @@ Puis dans le fichier d'entrée, importez ce style au lieu de celui d'Element: import Vue from 'vue' import ElementPlus from 'element-plus' import './element-variables.scss' +import App from './App.vue'; -Vue.use(Element) +const app = createApp(App) +app.use(ElementPlus) ``` :::tip diff --git a/website/docs/fr-FR/i18n.md b/website/docs/fr-FR/i18n.md index c70903a679..3fa8a1b935 100644 --- a/website/docs/fr-FR/i18n.md +++ b/website/docs/fr-FR/i18n.md @@ -47,9 +47,11 @@ import VueI18n from 'vue-i18n' import ElementPlus from 'element-plus' import enLocale from 'element-plus/lib/locale/lang/en' import zhLocale from 'element-plus/lib/locale/lang/zh-CN' +import App from './App.vue'; +const app = createApp(App) +app.use(ElementPlus) Vue.use(VueI18n) -Vue.use(Element) Vue.config.lang = 'zh-cn' Vue.locale('zh-cn', zhLocale) diff --git a/website/docs/zh-CN/custom-theme.md b/website/docs/zh-CN/custom-theme.md index 26c9e2dd1d..0da80b4911 100644 --- a/website/docs/zh-CN/custom-theme.md +++ b/website/docs/zh-CN/custom-theme.md @@ -30,8 +30,10 @@ $--font-path: '~element-plus/lib/theme-chalk/fonts'; import Vue from 'vue' import ElementPlus from 'element-plus' import './element-variables.scss' +import App from './App.vue'; -Vue.use(Element) +const app = createApp(App) +app.use(ElementPlus) ``` :::tip diff --git a/website/docs/zh-CN/i18n.md b/website/docs/zh-CN/i18n.md index 826b180a18..ec662aa9a0 100644 --- a/website/docs/zh-CN/i18n.md +++ b/website/docs/zh-CN/i18n.md @@ -49,9 +49,11 @@ import VueI18n from 'vue-i18n' import ElementPlus from 'element-plus' import enLocale from 'element-plus/lib/locale/lang/en' import zhLocale from 'element-plus/lib/locale/lang/zh-CN' +import App from './App.vue'; +const app = createApp(App) +app.use(ElementPlus) Vue.use(VueI18n) -Vue.use(Element) Vue.config.lang = 'zh-cn' Vue.locale('zh-cn', zhLocale)