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

Should use Vue.use to install the library #3

Closed
lokyoung opened this issue Apr 18, 2018 · 3 comments
Closed

Should use Vue.use to install the library #3

lokyoung opened this issue Apr 18, 2018 · 3 comments

Comments

@lokyoung
Copy link
Contributor

lokyoung commented Apr 18, 2018

首先感谢提供这么棒的ant design的Vue实现。
我已经进行了一些基本的尝试,体验还不错,但是有一个比较头疼的问题,就是每一个组件都需要import之后再使用Vue.component进行注册。而且官网上没有直接告诉我们应当导入哪一个组件,怎么去注册。只是给出了一个componen list的链接,在里面你们给出了所有组件的注册示例。所以现在我在开发的时候必须打开这个文件,添加组件的时候去参考里面的内容。使用起来不太方便。
通常情况下在Vue组件库中应当提供install方法注册所有组件,使用者在使用的时候可以直接使用Vue.use()去导入整个组件库,不需要每次导入并且指定组件名。

@nabaonan
Copy link
Contributor

对的,今天我找菜单组件找了半天,原来是menu里面有item,而且命名不是叫menuitem就叫item,必须把对象打印出来才知道有啥,官网没有说到

@tangjinzhou
Copy link
Member

下个版本发布时提供

@lock
Copy link

lock bot commented Apr 19, 2019

This thread has been automatically locked because it has not had recent activity. Please open a new issue for related bugs and link to relevant comments in this thread.

@lock lock bot locked as resolved and limited conversation to collaborators Apr 19, 2019
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants