8000 upload vuejs first · lzhanforgit/python@d5cde59 · GitHub
[go: up one dir, main page]

Skip to content

Commit d5cde59

Browse files
committed
upload vuejs first
1 parent 2bc62f1 commit d5cde59

File tree

1 file changed

+7
-0
lines changed

1 file changed

+7
-0
lines changed

vuejs/unit4-vue-cli.md

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -74,6 +74,13 @@
7474

7575
5. 组件
7676

77+
注册公共组件:
78+
79+
//main.js
80+
81+
import Nav from './components/Nav'
82+
83+
Vue.component('nav-com',Nav);
7784

7885

7986
## vue-router

0 commit comments

Comments
 (0)
0