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
b80768db7b
commit
d0bee7e33e
@ -29,7 +29,7 @@ $--font-path: '~element-plus/lib/theme-chalk/fonts';
|
||||
Then in the entry file of your project, import this style file instead of Element's built CSS:
|
||||
```JS
|
||||
import Vue from 'vue'
|
||||
import Element Plus from 'element-plus'
|
||||
import ElementPlus from 'element-plus'
|
||||
import './element-variables.scss'
|
||||
|
||||
Vue.use(Element)
|
||||
|
@ -44,7 +44,7 @@ Element Plus is compatible with [vue-i18n@5.x](https://github.com/kazupon/vue-i1
|
||||
```javascript
|
||||
import Vue from 'vue'
|
||||
import VueI18n from 'vue-i18n'
|
||||
import Element Plus from 'element-plus'
|
||||
import ElementPlus from 'element-plus'
|
||||
import enLocale from 'element-plus/lib/locale/lang/en'
|
||||
import zhLocale from 'element-plus/lib/locale/lang/zh-CN'
|
||||
|
||||
@ -61,7 +61,7 @@ Element Plus may not be compatible with i18n plugins other than vue-i18n, but yo
|
||||
|
||||
```javascript
|
||||
import Vue from 'vue'
|
||||
import Element Plus from 'element-plus'
|
||||
import ElementPlus from 'element-plus'
|
||||
import enLocale from 'element-plus/lib/locale/lang/en'
|
||||
import zhLocale from 'element-plus/lib/locale/lang/zh-CN'
|
||||
|
||||
@ -78,7 +78,7 @@ You need to manually handle it for compatibility with `6.x`.
|
||||
|
||||
```javascript
|
||||
import Vue from 'vue'
|
||||
import Element Plus from 'element-plus'
|
||||
import ElementPlus from 'element-plus'
|
||||
import VueI18n from 'vue-i18n'
|
||||
import enLocale from 'element-plus/lib/locale/lang/en'
|
||||
import zhLocale from 'element-plus/lib/locale/lang/zh-CN'
|
||||
|
@ -14,7 +14,7 @@ If you prefer not to use them, please read the following.
|
||||
|
||||
### Import Element Plus
|
||||
|
||||
You can import Element Plus entirely, or just import what you need. Let's start with fully import.
|
||||
You can import ElementPlus entirely, or just import what you need. Let's start with fully import.
|
||||
|
||||
#### Fully import
|
||||
|
||||
@ -257,7 +257,7 @@ Fully import Element:
|
||||
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
import Element Plus from 'element-plus';
|
||||
import ElementPlus from 'element-plus';
|
||||
Vue.use(Element, { size: 'small', zIndex: 3000 });
|
||||
```
|
||||
|
||||
|
@ -29,7 +29,7 @@ $--font-path: '~element-plus/lib/theme-chalk/fonts';
|
||||
Entonces, en el archivo principal del proyecto, importe este archivo de estilos en lugar de los estilos de Element:
|
||||
```JS
|
||||
import Vue from 'vue'
|
||||
import Element Plus from 'element-plus'
|
||||
import ElementPlus from 'element-plus'
|
||||
import './element-variables.scss'
|
||||
|
||||
Vue.use(Element)
|
||||
|
@ -44,7 +44,7 @@ Element Plus es compatible con [vue-i18n@5.x](https://github.com/kazupon/vue-i18
|
||||
```javascript
|
||||
import Vue from 'vue'
|
||||
import VueI18n from 'vue-i18n'
|
||||
import Element Plus from 'element-plus'
|
||||
import ElementPlus from 'element-plus'
|
||||
import enLocale from 'element-plus/lib/locale/lang/en'
|
||||
import zhLocale from 'element-plus/lib/locale/lang/zh-CN'
|
||||
|
||||
@ -61,7 +61,7 @@ Es posible que Element Plus no sea compatible con otros plugins i18n que no sean
|
||||
|
||||
```javascript
|
||||
import Vue from 'vue'
|
||||
import Element Plus from 'element-plus'
|
||||
import ElementPlus from 'element-plus'
|
||||
import enLocale from 'element-plus/lib/locale/lang/en'
|
||||
import zhLocale from 'element-plus/lib/locale/lang/zh-CN'
|
||||
|
||||
@ -78,7 +78,7 @@ Necesita manejarlo manualmente para ser compatible con `6.x`.
|
||||
|
||||
```javascript
|
||||
import Vue from 'vue'
|
||||
import Element Plus from 'element-plus'
|
||||
import ElementPlus from 'element-plus'
|
||||
import VueI18n from 'vue-i18n'
|
||||
import enLocale from 'element-plus/lib/locale/lang/en'
|
||||
import zhLocale from 'element-plus/lib/locale/lang/zh-CN'
|
||||
|
@ -259,7 +259,7 @@ Importando Element Plus completamente:
|
||||
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
import Element Plus from 'element-plus';
|
||||
import ElementPlus from 'element-plus';
|
||||
Vue.use(Element, { size: 'small', zIndex: 3000 });
|
||||
```
|
||||
|
||||
|
@ -29,7 +29,7 @@ $--font-path: '~element-plus/lib/theme-chalk/fonts';
|
||||
Puis dans le fichier d'entrée, importez ce style au lieu de celui d'Element:
|
||||
```JS
|
||||
import Vue from 'vue'
|
||||
import Element Plus from 'element-plus'
|
||||
import ElementPlus from 'element-plus'
|
||||
import './element-variables.scss'
|
||||
|
||||
Vue.use(Element)
|
||||
|
@ -44,7 +44,7 @@ Element Plus est compatible avec [vue-i18n@5.x](https://github.com/kazupon/vue-i
|
||||
```javascript
|
||||
import Vue from 'vue'
|
||||
import VueI18n from 'vue-i18n'
|
||||
import Element Plus from 'element-plus'
|
||||
import ElementPlus from 'element-plus'
|
||||
import enLocale from 'element-plus/lib/locale/lang/en'
|
||||
import zhLocale from 'element-plus/lib/locale/lang/zh-CN'
|
||||
|
||||
@ -62,7 +62,7 @@ Element Plus n'est pas forcément compatible avec d'autres plugins i18n que vue-
|
||||
|
||||
```javascript
|
||||
import Vue from 'vue'
|
||||
import Element Plus from 'element-plus'
|
||||
import ElementPlus from 'element-plus'
|
||||
import enLocale from 'element-plus/lib/locale/lang/en'
|
||||
import zhLocale from 'element-plus/lib/locale/lang/zh-CN'
|
||||
|
||||
@ -79,7 +79,7 @@ Vous devrez le configurer manuellement pour la compatibilité avec `6.x`.
|
||||
|
||||
```javascript
|
||||
import Vue from 'vue'
|
||||
import Element Plus from 'element-plus'
|
||||
import ElementPlus from 'element-plus'
|
||||
import VueI18n from 'vue-i18n'
|
||||
import enLocale from 'element-plus/lib/locale/lang/en'
|
||||
import zhLocale from 'element-plus/lib/locale/lang/zh-CN'
|
||||
|
@ -257,7 +257,7 @@ Import total d'Element:
|
||||
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
import Element Plus from 'element-plus';
|
||||
import ElementPlus from 'element-plus';
|
||||
Vue.use(Element, { size: 'small', zIndex: 3000 });
|
||||
```
|
||||
|
||||
|
@ -28,7 +28,7 @@ $--font-path: '~element-plus/lib/theme-chalk/fonts';
|
||||
之后,在项目的入口文件中,直接引入以上样式文件即可(无需引入 Element Plus 编译好的 CSS 文件):
|
||||
```JS
|
||||
import Vue from 'vue'
|
||||
import Element Plus from 'element-plus'
|
||||
import ElementPlus from 'element-plus'
|
||||
import './element-variables.scss'
|
||||
|
||||
Vue.use(Element)
|
||||
|
@ -46,7 +46,7 @@ Element Plus 兼容 [vue-i18n@5.x](https://github.com/kazupon/vue-i18n),搭配
|
||||
```javascript
|
||||
import Vue from 'vue'
|
||||
import VueI18n from 'vue-i18n'
|
||||
import Element Plus from 'element-plus'
|
||||
import ElementPlus from 'element-plus'
|
||||
import enLocale from 'element-plus/lib/locale/lang/en'
|
||||
import zhLocale from 'element-plus/lib/locale/lang/zh-CN'
|
||||
|
||||
@ -63,7 +63,7 @@ Vue.locale('en', enLocale)
|
||||
|
||||
```javascript
|
||||
import Vue from 'vue'
|
||||
import Element Plus from 'element-plus'
|
||||
import ElementPlus from 'element-plus'
|
||||
import enLocale from 'element-plus/lib/locale/lang/en'
|
||||
import zhLocale from 'element-plus/lib/locale/lang/zh-CN'
|
||||
|
||||
@ -80,7 +80,7 @@ Vue.use(Element, {
|
||||
|
||||
```javascript
|
||||
import Vue from 'vue'
|
||||
import Element Plus from 'element-plus'
|
||||
import ElementPlus from 'element-plus'
|
||||
import VueI18n from 'vue-i18n'
|
||||
import enLocale from 'element-plus/lib/locale/lang/en'
|
||||
import zhLocale from 'element-plus/lib/locale/lang/zh-CN'
|
||||
|
@ -257,7 +257,7 @@ Vue.prototype.$message = Message;
|
||||
|
||||
```js
|
||||
import Vue from 'vue';
|
||||
import Element Plus from 'element-plus';
|
||||
import ElementPlus from 'element-plus';
|
||||
Vue.use(Element, { size: 'small', zIndex: 3000 });
|
||||
```
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user