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

[vue] vue中什么是递归组件?举个例子说明下? #452

Open
haizhilin2013 opened this issue Jun 22, 2019 · 3 comments
Open

[vue] vue中什么是递归组件?举个例子说明下? #452

haizhilin2013 opened this issue Jun 22, 2019 · 3 comments
Labels
vue vue

Comments

@haizhilin2013
Copy link
Collaborator

[vue] vue中什么是递归组件?举个例子说明下?

@haizhilin2013 haizhilin2013 added the vue vue label Jun 22, 2019
@zqczx00
Copy link

zqczx00 commented Jul 2, 2019

当前注册一个vue组件定义 name 为 'node-tree' ,在组件 template 内部调用 实现递归。

@Yanhua67
Copy link

Yanhua67 commented Aug 1, 2019

用过组件的name属性,调用自身。例如生成树型菜单。

@qq-radio
Copy link

组件自己调用自己,场景有用于生成树形结构菜单

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
vue vue
Projects
None yet
Development

No branches or pull requests

4 participants