Skip to content

Commit f958565

Browse files
meteorlxyyyx990803
authored andcommitted
chore: define the components using PascalCase (#1842)
1 parent fac60f6 commit f958565

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

src/components/link.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ const toTypes: Array<Function> = [String, Object]
88
const eventTypes: Array<Function> = [String, Array]
99

1010
export default {
11-
name: 'router-link',
11+
name: 'RouterLink',
1212
props: {
1313
to: {
1414
type: toTypes,

src/components/view.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { warn } from '../util/warn'
22

33
export default {
4-
name: 'router-view',
4+
name: 'RouterView',
55
functional: true,
66
props: {
77
name: {

src/install.js

+2-2
Original file line numberDiff line numberDiff line change
@@ -43,8 +43,8 @@ export function install (Vue) {
4343
get () { return this._routerRoot._route }
4444
})
4545

46-
Vue.component('router-view', View)
47-
Vue.component('router-link', Link)
46+
Vue.component('RouterView', View)
47+
Vue.component('RouterLink', Link)
4848

4949
const strats = Vue.config.optionMergeStrategies
5050
// use the same hook merging strategy for route hooks

0 commit comments

Comments
 (0)