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

怎么设置特定页面的自定义布局 #16

Closed
Mintnoii opened this issue Mar 4, 2019 · 6 comments
Closed

怎么设置特定页面的自定义布局 #16

Mintnoii opened this issue Mar 4, 2019 · 6 comments
Labels
bug Something isn't working

Comments

@Mintnoii
Copy link
Contributor

Mintnoii commented Mar 4, 2019

在自定义的页面内添加了layout: SpecialLayout,
新建了.vuepress/components/SpecialLayout.vue组件,并提供了name属性,但还是会报错。

@meteorlxy
Copy link
Owner

提供一下报错内容?

@Mintnoii
Copy link
Contributor Author

Mintnoii commented Mar 4, 2019

Unknown custom element: - did you register the component correctly? For recursive components, make sure to provide the "name" option.

found in

---> at node_modules/_vuepress-theme-meteorlxy@1.0.0-alpha.22@vuepress-theme-meteorlxy/lib/components/TheMain.vue
at node_modules/_vuepress-theme-meteorlxy@1.0.0-alpha.22@vuepress-theme-meteorlxy/lib/layouts/GlobalLayout.vue

@meteorlxy
Copy link
Owner

这里的话一般会显示 Unknown custom element: <SpecialLayout>,但是你这个也没有显示出来。最好提供一个 reproduction repo

@meteorlxy
Copy link
Owner

emmm我大概知道了,这个估计 vuepress 1.x 的默认主题也挂了你可以试一试。

我在我的主题可以修一下

@meteorlxy meteorlxy added the bug Something isn't working label Mar 4, 2019
@meteorlxy
Copy link
Owner

@W-qing 升级到 1.0.0-alpha.23 试一下

@Mintnoii
Copy link
Contributor Author

Mintnoii commented Mar 5, 2019

@meteorlxy thx,已解决。

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants