mirror of
https://github.com/element-plus/element-plus.git
synced 2025-01-06 10:38:31 +08:00
chore: update
This commit is contained in:
parent
d0bee7e33e
commit
3d777e5e6c
@ -31,8 +31,10 @@ Then in the entry file of your project, import this style file instead of Elemen
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import ElementPlus from 'element-plus'
|
import ElementPlus from 'element-plus'
|
||||||
import './element-variables.scss'
|
import './element-variables.scss'
|
||||||
|
import App from './App.vue';
|
||||||
|
|
||||||
Vue.use(Element)
|
const app = createApp(App)
|
||||||
|
app.use(ElementPlus)
|
||||||
```
|
```
|
||||||
|
|
||||||
:::tip
|
:::tip
|
||||||
|
@ -47,9 +47,11 @@ import VueI18n from 'vue-i18n'
|
|||||||
import ElementPlus from 'element-plus'
|
import ElementPlus from 'element-plus'
|
||||||
import enLocale from 'element-plus/lib/locale/lang/en'
|
import enLocale from 'element-plus/lib/locale/lang/en'
|
||||||
import zhLocale from 'element-plus/lib/locale/lang/zh-CN'
|
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(VueI18n)
|
||||||
Vue.use(Element)
|
|
||||||
|
|
||||||
Vue.config.lang = 'zh-cn'
|
Vue.config.lang = 'zh-cn'
|
||||||
Vue.locale('zh-cn', zhLocale)
|
Vue.locale('zh-cn', zhLocale)
|
||||||
|
@ -31,8 +31,10 @@ Entonces, en el archivo principal del proyecto, importe este archivo de estilos
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import ElementPlus from 'element-plus'
|
import ElementPlus from 'element-plus'
|
||||||
import './element-variables.scss'
|
import './element-variables.scss'
|
||||||
|
import App from './App.vue';
|
||||||
|
|
||||||
Vue.use(Element)
|
const app = createApp(App)
|
||||||
|
app.use(ElementPlus)
|
||||||
```
|
```
|
||||||
|
|
||||||
:::tip
|
:::tip
|
||||||
|
@ -47,9 +47,11 @@ import VueI18n from 'vue-i18n'
|
|||||||
import ElementPlus from 'element-plus'
|
import ElementPlus from 'element-plus'
|
||||||
import enLocale from 'element-plus/lib/locale/lang/en'
|
import enLocale from 'element-plus/lib/locale/lang/en'
|
||||||
import zhLocale from 'element-plus/lib/locale/lang/zh-CN'
|
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(VueI18n)
|
||||||
Vue.use(Element)
|
|
||||||
|
|
||||||
Vue.config.lang = 'zh-cn'
|
Vue.config.lang = 'zh-cn'
|
||||||
Vue.locale('zh-cn', zhLocale)
|
Vue.locale('zh-cn', zhLocale)
|
||||||
|
@ -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 Vue from 'vue'
|
||||||
import ElementPlus from 'element-plus'
|
import ElementPlus from 'element-plus'
|
||||||
import './element-variables.scss'
|
import './element-variables.scss'
|
||||||
|
import App from './App.vue';
|
||||||
|
|
||||||
Vue.use(Element)
|
const app = createApp(App)
|
||||||
|
app.use(ElementPlus)
|
||||||
```
|
```
|
||||||
|
|
||||||
:::tip
|
:::tip
|
||||||
|
@ -47,9 +47,11 @@ import VueI18n from 'vue-i18n'
|
|||||||
import ElementPlus from 'element-plus'
|
import ElementPlus from 'element-plus'
|
||||||
import enLocale from 'element-plus/lib/locale/lang/en'
|
import enLocale from 'element-plus/lib/locale/lang/en'
|
||||||
import zhLocale from 'element-plus/lib/locale/lang/zh-CN'
|
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(VueI18n)
|
||||||
Vue.use(Element)
|
|
||||||
|
|
||||||
Vue.config.lang = 'zh-cn'
|
Vue.config.lang = 'zh-cn'
|
||||||
Vue.locale('zh-cn', zhLocale)
|
Vue.locale('zh-cn', zhLocale)
|
||||||
|
@ -30,8 +30,10 @@ $--font-path: '~element-plus/lib/theme-chalk/fonts';
|
|||||||
import Vue from 'vue'
|
import Vue from 'vue'
|
||||||
import ElementPlus from 'element-plus'
|
import ElementPlus from 'element-plus'
|
||||||
import './element-variables.scss'
|
import './element-variables.scss'
|
||||||
|
import App from './App.vue';
|
||||||
|
|
||||||
Vue.use(Element)
|
const app = createApp(App)
|
||||||
|
app.use(ElementPlus)
|
||||||
```
|
```
|
||||||
|
|
||||||
:::tip
|
:::tip
|
||||||
|
@ -49,9 +49,11 @@ import VueI18n from 'vue-i18n'
|
|||||||
import ElementPlus from 'element-plus'
|
import ElementPlus from 'element-plus'
|
||||||
import enLocale from 'element-plus/lib/locale/lang/en'
|
import enLocale from 'element-plus/lib/locale/lang/en'
|
||||||
import zhLocale from 'element-plus/lib/locale/lang/zh-CN'
|
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(VueI18n)
|
||||||
Vue.use(Element)
|
|
||||||
|
|
||||||
Vue.config.lang = 'zh-cn'
|
Vue.config.lang = 'zh-cn'
|
||||||
Vue.locale('zh-cn', zhLocale)
|
Vue.locale('zh-cn', zhLocale)
|
||||||
|
Loading…
Reference in New Issue
Block a user