chore: update

This commit is contained in:
zazzaz 2020-10-16 11:22:08 +08:00 committed by hangzou
parent d0bee7e33e
commit 3d777e5e6c
8 changed files with 24 additions and 8 deletions

View File

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

View File

@ -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)

View File

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

View File

@ -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)

View File

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

View File

@ -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)

View File

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

View File

@ -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)