npm package discovery and stats viewer.

Discover Tips

  • General search

    [free text search, go nuts!]

  • Package details

    pkg:[package-name]

  • User packages

    @[username]

Sponsor

Optimize Toolset

I’ve always been into building performant and accessible sites, but lately I’ve been taking it extremely seriously. So much so that I’ve been building a tool to help me optimize and monitor the sites that I build to make sure that I’m making an attempt to offer the best experience to those who visit them. If you’re into performant, accessible and SEO friendly sites, you might like it too! You can check it out at Optimize Toolset.

About

Hi, 👋, I’m Ryan Hefner  and I built this site for me, and you! The goal of this site was to provide an easy way for me to check the stats on my npm packages, both for prioritizing issues and updates, and to give me a little kick in the pants to keep up on stuff.

As I was building it, I realized that I was actually using the tool to build the tool, and figured I might as well put this out there and hopefully others will find it to be a fast and useful way to search and browse npm packages as I have.

If you’re interested in other things I’m working on, follow me on Twitter or check out the open source projects I’ve been publishing on GitHub.

I am also working on a Twitter bot for this site to tweet the most popular, newest, random packages from npm. Please follow that account now and it will start sending out packages soon–ish.

Open Software & Tools

This site wouldn’t be possible without the immense generosity and tireless efforts from the people who make contributions to the world and share their work via open source initiatives. Thank you 🙏

© 2024 – Pkg Stats / Ryan Hefner

@yizhou-library/main-template-tree-icon-layout

v0.0.4

Published

权限一体化主导航(可伸缩 TreeIcon)组件

Downloads

1

Readme

图标树主导航

@ewell/mainTemplateTreeIconLayout 图标树主导航,可收缩展开

dependencies 为发布依赖包集合

:::dependencies { "dependencies": { "@types/react": "16.9.2", "@types/react-dom": "16.9.0", "react": "^16.9.0", "react-dom": "^16.9.0", "@yizhou-library/core": "latest", "@yizhou-library/icons": "latest", }, "devDependencies": { } } :::dependencies

版本匹配

[email protected] 时,则 @types/[email protected] 不生成 @types/react-slick/node_modules/@types/[email protected]

│ ├─┬ @types/[email protected]
│ │ └── @types/[email protected] deduped 没有找到

本地开发 - loginToken\ activeWardCode\ siderCode

http://galaxyw.ewell.com:8082/?loginToken=eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJleHAiOjE1OTA3OTUwOTgsInVzZXJuYW1lIjoiVDk1MjcifQ.ZA2WcUnuUvg_8NgxtmrMBsh5icytjoaxdU7bArZ3S50&activeWardCode=12000302&siderCode=HL_HLZD_WDZZGL

代码演示

Menu.Item 的 key 在 MENUS_DATA 的 menuType===‘3’的时候取 appList 下的 appCode,其他的取 menuId; 在路由中配置 siderCode 参数能指定左侧菜单选中项,如果是二级或三级菜单选中需要把父级的 key 带入,用逗号割开

// render

:::

API

| 参数 | 说明 | 类型 | 可选值 | 默认值 | | ------------- | ------------------------------------------------------------------------------------------------------- | ----------------------- | --------------------- | ----------------- | | env | 指定环境变量参数 | String | dev,sit,uat,prod,mock | prod | | bar | 是否展示顶部或左侧菜单 | Array | header,menu | ['header','menu'] | | menuData | 左侧菜单数据 | MenuData[] | - | - | | basename | 未设置,则路由全部使用 router 跳转(即,无<a 标签导航;RouterContainer 的 basename 属性也需要同步移除) | String | - | - | | userInfo | 用户信息 | UserInfo{} | - | - | | renderHeader | 渲染顶部其他信息 | ReactNode | - | - | | showCollapsed | 是否显示展开收起图标 | boolean | - | true | | websit | 站点信息 | Websit{} | - | - | | theme | 主题 | string | default,darkblue | default |

MenuData

interface MenuData {
  name: string;
  img: string;
  selectImg?: string;
  url?: string;
  children?: MenuData[];
}

UserInfo

actionList[可选]:右侧用户信息下拉,默认显示退出登录,退出登录功能(质控)已实现,自定义退出登录时 code 设置为”logout“可覆盖默认的退出登录;有[onSelect]函数是执行[onSelect],否则跳转[url]

interface UserInfo {
  id: string;
  name: string;
  actionList?: {
    name: string;
    code: string;
    url?: string;
    onSelect?: (item) => void;
  };
}

Websit

interface Websit {
  name?: string; // 顶部左上角系统名
  logo?: string;
}