华云管理台二级路由组件
npm install -g hy-router-tree
###参数
参数 | 说明 | 类型 | 默认值 |
---|---|---|---|
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) |