Skip to content

Commit 15fed88

Browse files
committed
init
1 parent c8a4e0f commit 15fed88

24 files changed

Lines changed: 1856 additions & 89 deletions

babel.config.js

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,14 @@
11
module.exports = {
2-
presets: [
3-
'@vue/app'
2+
"presets": [
3+
"@vue/app"
4+
],
5+
"plugins": [
6+
[
7+
"component",
8+
{
9+
"libraryName": "element-ui",
10+
"styleLibraryName": "theme-chalk"
11+
}
12+
]
413
]
5-
}
14+
}

package-lock.json

Lines changed: 98 additions & 6 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,15 +8,20 @@
88
"lint": "vue-cli-service lint"
99
},
1010
"dependencies": {
11-
"vue": "^2.5.17"
11+
"crypto-js": "^3.1.9-1",
12+
"element-ui": "^2.4.5",
13+
"vue": "^2.5.17",
14+
"vue-router": "^3.0.1"
1215
},
1316
"devDependencies": {
1417
"@vue/cli-plugin-babel": "^3.2.0",
1518
"@vue/cli-plugin-eslint": "^3.2.0",
1619
"@vue/cli-service": "^3.2.0",
1720
"babel-eslint": "^10.0.1",
21+
"babel-plugin-component": "^1.1.1",
1822
"eslint": "^5.8.0",
1923
"eslint-plugin-vue": "^5.0.0-0",
24+
"vue-cli-plugin-element": "^1.0.0",
2025
"vue-template-compiler": "^2.5.17"
2126
},
2227
"eslintConfig": {

src/App.vue

Lines changed: 5 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,28 +1,13 @@
11
<template>
22
<div id="app">
3-
<img alt="Vue logo" src="./assets/logo.png">
4-
<HelloWorld msg="Welcome to Your Vue.js App"/>
3+
<transition name="move" mode="out-in">
4+
<router-view></router-view>
5+
</transition>
56
</div>
67
</template>
78

89
<script>
9-
import HelloWorld from './components/HelloWorld.vue'
10-
1110
export default {
12-
name: 'app',
13-
components: {
14-
HelloWorld
15-
}
16-
}
11+
name: "app"
12+
};
1713
</script>
18-
19-
<style>
20-
#app {
21-
font-family: 'Avenir', Helvetica, Arial, sans-serif;
22-
-webkit-font-smoothing: antialiased;
23-
-moz-osx-font-smoothing: grayscale;
24-
text-align: center;
25-
color: #2c3e50;
26-
margin-top: 60px;
27-
}
28-
</style>

0 commit comments

Comments
 (0)