添加ElementUI

This commit is contained in:
MengYX
2019-07-03 22:54:29 +08:00
parent fd6c246769
commit 295925a823
5 changed files with 66 additions and 6 deletions

View File

@@ -1,6 +1,14 @@
<template>
<div id="app">
<img alt="Vue logo" src="./assets/logo.png">
<img src="./assets/logo.png">
<div>
<p>
If Element is successfully added to this project, you'll see an
<code v-text="'<el-button>'"></code>
below
</p>
<el-button>el-button</el-button>
</div>
<HelloWorld msg="Welcome to Your Vue.js App"/>
</div>
</template>

View File

@@ -1,6 +1,7 @@
import Vue from 'vue'
import App from './App.vue'
import './registerServiceWorker'
import './plugins/element.js'
Vue.config.productionTip = false

5
src/plugins/element.js Normal file
View File

@@ -0,0 +1,5 @@
import Vue from 'vue'
import Element from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
Vue.use(Element)