Skip to content

Commit c51f9b6

Browse files
committed
初始化项目
1 parent 884f1a4 commit c51f9b6

File tree

11 files changed

+1979
-0
lines changed

11 files changed

+1979
-0
lines changed

zhiwei-ui-vue3/.gitignore

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
node_modules
2+
.DS_Store
3+
dist
4+
*.local

zhiwei-ui-vue3/index.html

Lines changed: 13 additions & 0 deletions
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>

zhiwei-ui-vue3/package.json

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
{
2+
"name": "zhiwei-ui-vue3",
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+
}

zhiwei-ui-vue3/public/favicon.ico

4.19 KB
Binary file not shown.

zhiwei-ui-vue3/src/App.vue

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
<template>
2+
<img alt="Vue logo" src="./assets/logo.png" />
3+
<HelloWorld msg="Hello Vue 3.0 + Vite" />
4+
</template>
5+
6+
<script>
7+
import HelloWorld from './components/HelloWorld.vue'
8+
9+
export default {
10+
name: 'App',
11+
components: {
12+
HelloWorld
13+
}
14+
}
15+
</script>

zhiwei-ui-vue3/src/assets/logo.png

6.69 KB
Loading
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
<template>
2+
<h1 class="jam">{{ msg }}</h1>
3+
<button @click="count++">count is: {{ count }}</button>
4+
<p>Edit <code>components/HelloWorld.vue</code> to test hot module replacement.</p>
5+
</template>
6+
7+
<script>
8+
export default {
9+
name: 'HelloWorld',
10+
props: {
11+
msg: String
12+
},
13+
data() {
14+
return {
15+
count: 0
16+
}
17+
}
18+
}
19+
</script>
20+
<style>
21+
.jam{
22+
border: 1px solid red;
23+
}
24+
</style>

zhiwei-ui-vue3/src/components/Jam.vue

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
<template>
2+
<div>
3+
jam!
4+
</div>
5+
</template>

zhiwei-ui-vue3/src/index.css

Lines changed: 8 additions & 0 deletions
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+
}

zhiwei-ui-vue3/src/main.js

Lines changed: 5 additions & 0 deletions
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')

0 commit comments

Comments
 (0)