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
7 changed files
with
31 additions
and
23 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,5 +1,5 @@ | ||
module.exports = { | ||
presets: [ | ||
'@vue/cli-plugin-babel/preset' | ||
] | ||
'@vue/cli-plugin-babel/preset', | ||
], | ||
} |
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,19 +1,21 @@ | ||
<template> | ||
<div flex id="app" class="w-77px"> | ||
<About /> | ||
<Home /> | ||
</div> | ||
</template> | ||
<script> | ||
import About from './About.vue' | ||
import Home from './Home.vue' | ||
export default { | ||
components: { | ||
About, | ||
Home | ||
} | ||
Home, | ||
}, | ||
} | ||
</script> | ||
|
||
<template> | ||
<div id="app" flex class="w-77px"> | ||
<About /> | ||
<Home /> | ||
</div> | ||
</template> | ||
|
||
<style> | ||
</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,14 +1,16 @@ | ||
<template> | ||
<div class="home"> | ||
<div class="w-200px bg-red h-100px">HOME</div> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
// @ is an alias to /src | ||
export default { | ||
name: 'Home', | ||
} | ||
</script> | ||
|
||
<template> | ||
<div class="home"> | ||
<div class="w-200px bg-red h-100px"> | ||
HOME | ||
</div> | ||
</div> | ||
</template> |
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 |
---|---|---|
|
@@ -4,5 +4,5 @@ import App from './App.vue' | |
import 'uno.css' | ||
|
||
new Vue({ | ||
render: h => h(App) | ||
render: h => h(App), | ||
}).$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 |
---|---|---|
@@ -1,9 +1,10 @@ | ||
import presetAttributify from '@unocss/preset-attributify' | ||
import presetUno from '@unocss/preset-uno' | ||
import { defineConfig } from '@unocss/config' | ||
|
||
module.exports = { | ||
export default defineConfig({ | ||
presets: [ | ||
presetAttributify(), | ||
presetUno(), | ||
] | ||
} | ||
], | ||
}) |
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 |
---|---|---|
|
@@ -13,4 +13,4 @@ module.exports = { | |
cache: false, | ||
}) | ||
}, | ||
} | ||
} |
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