Skip to content
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

header-bar组件是如何组合的? #17

Closed
jfliapp opened this issue Aug 1, 2017 · 3 comments
Closed

header-bar组件是如何组合的? #17

jfliapp opened this issue Aug 1, 2017 · 3 comments

Comments

@jfliapp
Copy link

jfliapp commented Aug 1, 2017

你好!! 我最近在学vue 看了你的写的项目。写的很好! 但是有点看不懂的地方就是那个 头部的
header-bar 你是怎么插进去的 我看不懂?希望 能教一下我

@jeneser jeneser changed the title 啊啊 header-bar组件是如何组合的? Aug 1, 2017
@jeneser
Copy link
Owner

jeneser commented Aug 1, 2017

你好!感谢您提交issue给我。
header-bar本身是作为一个一次性组件在这里出现的,在src/views/PagesView.vue中对其进行了组合。这里涉及了路由,具名的路由出口以及子路由等,通过这种组合,我们可以创建多个平行的视图,使得固定的头部导航与应用的其他视图共存,以满足我们的设计需求。
在这篇文章中我进行了简单的分析,你可以参考一下: 杂篇 - Vue豆瓣系列文章

Thanks.

@jfliapp
Copy link
Author

jfliapp commented Aug 2, 2017

谢谢 指点 我懂了

@jeneser
Copy link
Owner

jeneser commented Aug 2, 2017

Right!
我将关闭本issue。感谢你的关注!

@jeneser jeneser closed this as completed Aug 2, 2017
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

No branches or pull requests

2 participants