New Research: Supply Chain Attack on Axios Pulls Malicious Dependency from npm.Details →
Socket
Book a DemoSign in
Socket

cat-tree

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cat-tree

你想要什么样的Tree? * 展示特定数据结构的数据,可以设置默认值、选定值,选定的可以张开 * 动态数据结构,可以设置默认值、选定值 * 以上两种,可以绑定特定事件 * 实现手风琴功能

latest
npmnpm
Version
1.0.0
Version published
Maintainers
1
Created
Source

Tree 组件

你想要什么样的Tree?

  • 展示特定数据结构的数据,可以设置默认值、选定值,选定的可以张开
  • 动态数据结构,可以设置默认值、选定值
  • 以上两种,可以绑定特定事件
  • 实现手风琴功能

组件

数据上理解为单个条目和列表条目。

列表条目

列表条目在数据层面是数组,每一项是单个条目。

单个条目

数据格式:

  • name: 显示名
  • href: 点击跳转的目标
  • icon: 当前条目可以自带显示
  • children: 当前条目的子目录,子目录格式和列表条目一样
  • content: 表现为手风琴
[{
    name: '美团网'
    href: 'www.meituan.com',
    icon: 'glyphicon-film'
    children: []
}]

FAQs

Package last updated on 28 Feb 2016

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts