New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cobona_tree

Package Overview
Dependencies
Maintainers
1
Versions
7
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cobona_tree

树组件

  • 1.0.5
  • npm
  • Socket score

Version published
Weekly downloads
1
decreased by-66.67%
Maintainers
1
Weekly downloads
 
Created
Source

基于element-ui 增加了部分功能(项目中要有element-ui) npm install cobona_tree --save

important CobonaTree from 'cobona_tree'

components下注册组件直接使用即可

传入值有 treeData:树对应的数据(json格式) defaultProps:label和children再data中对应的字段, width:树的宽度 height:树的高度 showBtn:是否显示操作按钮 notallowEdit:不允许操作的数据id 提供的传出方法 handleNodeClick:节点点击方法(返回节点data,和节点node) add:点击新增按钮方法(返回节点data和节点node) edit:点击编辑方法(返回节点data) delete:点击删除方法(返回节点data) handleDragStart、handleDragEnter、handleDragLeave、handleDragOver、handleDragEnd(同element-ui) handleDrop:拖拽完成方法(返回树结构拖拽后所有data,被拖拽节点,拖拽进入节点)

Keywords

FAQs

Package last updated on 08 Jun 2021

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

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc