-
-
Notifications
You must be signed in to change notification settings - Fork 625
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
6 changed files
with
82 additions
and
37 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,33 +1,34 @@ | ||
<template> | ||
<div class="varlet-button"> | ||
<div class="varlet-button__text"> | ||
<div class="varlet-button__span--active">{{ count }}</div> | ||
</div> | ||
</div> | ||
<div class="varlet-site"> | ||
<div class="varlet-site__header"> | ||
<input type="text" placeholder="" /> | ||
</div> | ||
<router-view /> | ||
</div> | ||
</template> | ||
|
||
<script lang="ts"> | ||
import { ref, Ref, defineComponent } from 'vue' | ||
export default defineComponent({ | ||
setup() { | ||
const count: Ref<number> = ref(0) | ||
return { | ||
count | ||
} | ||
} | ||
setup() { | ||
const count: Ref<number> = ref(0) | ||
return { | ||
count, | ||
} | ||
}, | ||
}) | ||
</script> | ||
|
||
<style lang="less"> | ||
.varlet { | ||
&-button { | ||
&__text { | ||
} | ||
&__span { | ||
} | ||
} | ||
&-button { | ||
&__text { | ||
color: aqua; | ||
} | ||
&__span { | ||
color: aqua; | ||
} | ||
} | ||
} | ||
</style> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,13 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title><%= htmlWebpackPlugin.options.title %></title> | ||
<meta content="<%= htmlWebpackPlugin.options.description %>" name="description" /> | ||
<link href="<%= htmlWebpackPlugin.options.logo %>" rel="icon" type="image/png" /> | ||
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" name="viewport" /> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
</body> | ||
</html> | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title><%= htmlWebpackPlugin.options.title %></title> | ||
<meta content="<%= htmlWebpackPlugin.options.description %>" name="description" /> | ||
<link href="<%= htmlWebpackPlugin.options.logo %>" rel="icon" type="image/png" /> | ||
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0, viewport-fit=cover" name="viewport" /> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,12 @@ | ||
import { createApp } from 'vue' | ||
import { createRouter, createWebHashHistory } from 'vue-router' | ||
import App from './App.vue' | ||
import routes from './routes' | ||
|
||
const router = createRouter({ | ||
history: createWebHashHistory(), | ||
routes, | ||
}) | ||
|
||
const app = createApp(App as any) | ||
app.mount('#app') | ||
app.use(router).mount('#app') |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
declare module '*.md' { | ||
const content: string | ||
export default content | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +1,12 @@ | ||
# 这是 button | ||
|
||
```javascript | ||
import Vue from 'vue' | ||
import { Button } from 'vant' | ||
|
||
Vue.use(Button) | ||
``` | ||
|
||
```javascript | ||
let a = 3 | ||
``` |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters