hy-router-tree

2.0.0 • Public • Published

hy-router-tree

华云管理台二级路由组件

install

npm install -g hy-router-tree

api

###参数

参数 说明 类型 默认值
routers 数据数组 any[] -
styles 菜单样式。backgroundColor:背景颜色;color:字体颜色; select.backgroundColor:选中时背景颜色;select.color:选中时字体颜色; hover.color: 鼠标覆盖时字体颜色;expand.backgroundColor:展开时子节点背景颜色;expand.color:展开时父节点字体颜色; object {backgroundColor: "#001529", color: "rgba(255, 255, 255, 0.65)",select: {backgroundColor: "#1890ff", color: "white"}, hover: {color: "white"},expand: {backgroundColor: "#000c17", color: "white"}}
animate animate.css的动画类名 string fadeInDown

事件

事件名称 说明 回调函数
expand 展开/收起节点时触发 function(node,event)
select 点击树节点触发 function(node,event)

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i hy-router-tree

      Weekly Downloads

      1

      Version

      2.0.0

      License

      ISC

      Unpacked Size

      92.3 kB

      Total Files

      15

      Last publish

      Collaborators

      • lvjiacong