1.0.5 • Published 3 years ago

@wxshylion/bc-nav-page v1.0.5

Weekly downloads
-
License
ISC
Repository
-
Last release
3 years ago

导航类型 bc-nav-page

四种类型导航页, 不同类型对应主题

  • science_1-(否)
  • science_2-(否)
  • square_1-(science / light / dark)
  • square_2-(bg_1 / bg_2 / bg_3)

软件依赖说明

  • react | antd | loadsh | react-router/react-router-dom | react-lottie | less | prop-types

下载

$ yarn add @wxshylion/bc-nav-page
or
$ npm i @wxshylion/bc-nav-page

代码演示

基础用法

参数一览表

参数说明类型默认值是否必填版本备注
navTpye导航页类型stringscience_11.0.1字段为 science_1 / science_2 / square_1 / square_2 中
theme导航页主题/导航页背景string-1.0.1当 navTpye 为 science_1 以及 science_2 时,否; 当 square_1 时,为 science / light / dark ;当 square_2 时,为 bg_1 / bg_2 / bg_3
projectTitle项目名称string叙简科技统一模块监控平台1.0.1
navList导航具体数据Option[][]1.0.1见 navList.Option
projectIconShow是否显示项目图标booleantrue1.0.1
projectIcon自定义项目图标路径isRequire1.0.1当 navTpye 为 science_2 时,需要注意图标大小的调整
navTitle当 navTpye 为 square_1 时的左模块标题string功能模块1.0.1当 navTpye 为 square_1 时起作用
extraTitle当 navTpye 为 square_1 时的右模块标题string配置管理1.0.1当 navTpye 为 square_1 时起作用
extraList额外的导航Option[][]-1.0.1square_1 时必填,science_2 时非必填,见 extraList.Option
userMenu人员图标下拉列表Option[][]-1.0.1当数组为[]时不显示人员图标, 见 uerMenu.Option
settingMenu设置图标下拉列表Option[][]-1.0.1当数组为[]时不显示人员图标, 见 settingMenu.Option

navList.Option/extraList.Option

特别注意:

  1. 当 navType 为 science_1 以及 square_2 时,navList.length 限制在 6-8;
  2. 当 navType 为 science_2 以及 square_1 时,navList.length 限制在 4-6;
  3. extraList.length 限制在 4-6,只在 science_2 以及 square_1 生效
  4. 不足的会自动补齐,多余的会截取;
参数说明类型是否必填版本备注
icon模块图标名称,具体配置看参数说明stringnavType 为 science_2 时,非必填1.0.1图标对应的 icon 参见 在线 api 当 iconCustom 为 true 时失效
name模块名称string1.0.1建议在 4 字之内
url模块点击跳转 urlstring1.0.1前端路由,在设置 clickCustom 时失效
iconCustom是否自定义模块图标boolean1.0.1设置自定义 icon 时为 true
iconCustomUrl自定义模块图标isRequire1.0.1
iconCustomSelUrl自定义鼠标悬浮模块图标isRequire1.0.1navType 为 science_1 时生效
bgShow是否采用导航背景图boolean1.0.1navType 为 square_1 时生效
bgShowUrl导航背景图isRequire1.0.1avType 为 square_1 时生效
clickCustom自定义点击导航事件Function(menu: obj)1.0.1阻止页面的前端路由,自定义点击事件

uerMenu.Option/settingMenu.Option

参数说明类型是否必填版本备注
menuName下拉选项名称string1.0.1
menuKey下拉选项 keystring1.0.1唯一 id 不可重复
menuClick下拉点击函数Function(key: string)1.0.1点击下拉选项事件

内置 icon 对应 name

  1. 通讯录 -- address-list
  2. 呼叫中心 1 -- call-centre
  3. 应急预案 -- contingency-plan
  4. 隐患排查 -- danger-check
  5. 值班管理 -- duty-management
  6. 动态感知 -- dynamic-perception
  7. 预警预测 -- early-warning
  8. 教育培训 -- education-training
  9. 电子沙盘 -- electronic-sand
  10. 应急保障 -- emergency-ensure
  11. 呼叫中心 2 -- exchange-centre
  12. 传真 -- fax
  13. GIS -- gis
  14. 信息发布 -- info-diffusion
  15. 知识库 -- knowledge-base
  16. 消息 -- message-info
  17. 短信 -- message-note
  18. 资产 -- property
  19. 风险防控 -- risk-prevention
  20. 录音 -- sound-record
  21. 系统配置 -- system-configuration
  22. 网络拓扑 -- topological-graph
  23. 视频监控 -- video-monitor
  24. 视频调度 -- video-schedule
  25. 语音调度 -- voice-dispatch
1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago