Skip to content

🎨 style: unified components' naming style #4991

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Jan 9, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
import HelloWorld from '@/components/HelloWorld.vue'

export default {
name: 'home',
name: 'Home',
components: {
HelloWorld
}
Expand Down
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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
Original file line number Diff line number Diff line change
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