Skip to content

Commit f95d053

Browse files
committedAug 14, 2020
初始化项目
0 parents  commit f95d053

File tree

10 files changed

+2102
-0
lines changed

10 files changed

+2102
-0
lines changed
 

‎.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
.DS_Store
3+
dist
4+
*.local

‎index.html

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="UTF-8">
5+
<link rel="icon" href="/favicon.ico" />
6+
<meta name="viewport" content="width=device-width, initial-scale=1.0">
7+
<title>Vite App</title>
8+
</head>
9+
<body>
10+
<div id="app"></div>
11+
<script type="module" src="/src/main.js"></script>
12+
</body>
13+
</html>

‎package.json

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "simple-ui",
3+
"version": "0.0.0",
4+
"scripts": {
5+
"dev": "vite",
6+
"build": "vite build"
7+
},
8+
"dependencies": {
9+
"vue": "^3.0.0-rc.1"
10+
},
11+
"devDependencies": {
12+
"vite": "^1.0.0-rc.1",
13+
"@vue/compiler-sfc": "^3.0.0-rc.1"
14+
}
15+
}

‎public/favicon.ico

4.19 KB
Binary file not shown.

‎src/App.vue

+15
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<template>
2+
<div>HI</div>
3+
<Garen />
4+
</template>
5+
6+
<script>
7+
import Garen from "./components/Garen.vue";
8+
9+
export default {
10+
name: "App",
11+
components: {
12+
Garen
13+
}
14+
};
15+
</script>

‎src/assets/logo.png

6.69 KB
Loading

‎src/components/Garen.vue

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
<template>
2+
<div>我的第一个组件</div>
3+
</template>

‎src/index.css

+8
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
#app {
2+
font-family: Avenir, Helvetica, Arial, sans-serif;
3+
-webkit-font-smoothing: antialiased;
4+
-moz-osx-font-smoothing: grayscale;
5+
text-align: center;
6+
color: #2c3e50;
7+
margin-top: 60px;
8+
}

‎src/main.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
import { createApp } from 'vue'
2+
import App from './App.vue'
3+
import './index.css'
4+
5+
createApp(App).mount('#app')

‎yarn.lock

+2,039
Large diffs are not rendered by default.

0 commit comments

Comments
 (0)
Please sign in to comment.