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

@aligov/block-tree

Package Overview
Dependencies
Maintainers
16
Versions
4
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@aligov/block-tree

tree区块

  • 0.1.3
  • latest
  • npm
  • Socket score

Version published
Maintainers
16
Created
Source

Tree区块

@aligov/block-tree

何时使用

block-tree区块,可用于左侧节点可选择树,右侧根据节点变化进行联动的table/其他的场景。

功能:

  • 左侧树,可进行增删改差
  • 右侧组件,可根据所选择节点进行联动
  • 外部不需要关注区块布局、节点状态

Install

tnpm install @aligov/block-tree --save

API

成员说明类型默认值
hasSearch是否有搜索框booleanfalse
hasAdd是否有添加按钮booleanfalse
addBtnProps添加按钮propsIButtonProps{ type:'primery' }
addBtnText添加按钮文案string添加
defaultNode默认选中节点node第一个节点
treeStyle树样式CSSProperties{ margin-right: 10}
loadData数据源异步加载函数(node,pos)=>Promisefunc.noop
disabled禁用Booleanfalse
dataSource数据源[{ label: '节点名', children:[], hasAdd:true,hasDelete:true,key:'1' }][]
onChange节点改变时回调函数(node: any) => anyfunc.noop
onAdd添加节点回调函数(node?:any)=>anyfunc.noop
onDelete删除节点回调函数(node:any)=>anyfunc.noop
onEdit边界节点回调函数(node:any)=>anyfunc.noop

Keywords

FAQs

Package last updated on 04 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