Skip to content

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

Open
@haizhilin2013

Description

@haizhilin2013
Collaborator

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

Activity

zqczx00

zqczx00 commented on Jul 2, 2019

@zqczx00

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

Yanhua67

Yanhua67 commented on Aug 1, 2019

@Yanhua67

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

radio-qq

radio-qq commented on Dec 31, 2020

@radio-qq

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

      Development

      No branches or pull requests

        Participants

        @haizhilin2013@zqczx00@Yanhua67@radio-qq

        Issue actions

          [vue] vue中什么是递归组件?举个例子说明下? · Issue #452 · haizlin/fe-interview