This commit is contained in:
udf_admin@163.com
2020-04-22 22:20:14 +08:00
parent a2878bb6f4
commit 7bb7d9f7d8
3 changed files with 33 additions and 20 deletions
+3
View File
@@ -13,7 +13,10 @@
"build": "node build/build.js"
},
"dependencies": {
"axios": "^0.19.2",
"element-ui": "^2.13.1",
"vue": "^2.5.2",
"vue-axios": "^2.1.5",
"vue-router": "^3.0.1"
},
"devDependencies": {
+24 -20
View File
@@ -1,5 +1,6 @@
<template>
<div class="hello">
<el-button type="primary">主要按钮</el-button>
<h1>{{ msg }}</h1>
<h2>Essential Links</h2>
<ul>
@@ -84,30 +85,33 @@
</template>
<script>
export default {
name: 'HelloWorld',
data () {
return {
msg: 'Welcome to Your Vue.js App'
export default {
name: 'HelloWorld',
data() {
return {
msg: 'Welcome to Your Vue.js App'
}
}
}
}
</script>
<!-- Add "scoped" attribute to limit CSS to this component only -->
<style scoped>
h1, h2 {
font-weight: normal;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
h1, h2 {
font-weight: normal;
}
ul {
list-style-type: none;
padding: 0;
}
li {
display: inline-block;
margin: 0 10px;
}
a {
color: #42b983;
}
</style>
+6
View File
@@ -3,8 +3,14 @@
import Vue from 'vue'
import App from './App'
import router from './router'
import ElementUI from 'element-ui';
import 'element-ui/lib/theme-chalk/index.css';
import axios from 'axios'
import VueAxios from 'vue-axios'
Vue.config.productionTip = false
Vue.use(ElementUI);
Vue.use(VueAxios, axios)
/* eslint-disable no-new */
new Vue({