Skip to content

Commit

Permalink
style: unified components' naming style (vuejs#4991)
Browse files Browse the repository at this point in the history
  • Loading branch information
twchn authored and mactanxin committed Feb 11, 2020
1 parent aea43f5 commit 003e919
Show file tree
Hide file tree
Showing 5 changed files with 8 additions and 8 deletions.
Expand Up @@ -7,12 +7,12 @@ Vue.use(VueRouter)
const routes = [
{
path: '/',
name: 'home',
name: 'Home',
component: Home
},
{
path: '/about',
name: 'about',
name: 'About',
// route level code-splitting
// this generates a separate chunk (about.[hash].js) for this route
// which is lazy-loaded when the route is visited.
Expand Down
Expand Up @@ -15,7 +15,7 @@
import HelloWorld from '@/components/HelloWorld.vue'
export default {
name: 'home',
name: 'Home',
components: {
HelloWorld
}
Expand Down
Expand Up @@ -16,7 +16,7 @@ import Vue from 'vue';
import HelloWorld from './components/HelloWorld.vue';
export default Vue.extend({
name: 'app',
name: 'App',
components: {
HelloWorld
}
Expand Down
Expand Up @@ -17,7 +17,7 @@ import Vue from 'vue';
import HelloWorld from '@/components/HelloWorld.vue'; // @ is an alias to /src
export default Vue.extend({
name: 'home',
name: 'Home',
components: {
HelloWorld,
},
Expand Down
6 changes: 3 additions & 3 deletions packages/@vue/cli-service/generator/template/src/App.vue
Expand Up @@ -14,7 +14,7 @@
import HelloWorld from './components/HelloWorld.vue'
export default {
name: 'app',
name: 'App',
components: {
HelloWorld
}
Expand All @@ -32,7 +32,7 @@ export default {
: ``
%>>
#app {
font-family: 'Avenir', Helvetica, Arial, sans-serif;
font-family: Avenir, Helvetica, Arial, sans-serif;
-webkit-font-smoothing: antialiased;
-moz-osx-font-smoothing: grayscale;
text-align: center;
Expand All @@ -43,7 +43,7 @@ export default {
<%_ } else { _%>
<style lang="stylus">
#app
font-family 'Avenir', Helvetica, Arial, sans-serif
font-family Avenir, Helvetica, Arial, sans-serif
-webkit-font-smoothing antialiased
-moz-osx-font-smoothing grayscale
text-align center
Expand Down

0 comments on commit 003e919

Please sign in to comment.