@uiw-admin/router-control
TypeScript icon, indicating that this package has built-in type declarations

6.1.9 • Public • Published

路由

npm version

导出路由相关方法

安装

npm i @uiw-admin/router-control --save # yarn add  @uiw-admin/router-control

参数

当前配置参数配合@uiw-admin/basic-layouts使用

export interface RoutesBaseProps {
  key?: string;
  /** 默认跳转 */
  index?: boolean;
  /** 路径 */
  path?: string;
  /** 名称 */
  name?: string;
  /**  图标 */
  icon?: string | React.ReactNode;
  /** 重定向  当 index===true生效 */
  redirect?: string;
  /** 子集 路由 */
  children?: RoutesBaseProps[];
  /** 隐藏主菜单 */
  hiddenMainMenu?: boolean;
  /** 是否隐藏菜单 */
  hideInMenu?: boolean;
  /** 用于路由校验权限 */
  isAuth?: boolean;
  /** 自定义 跳转 */
  // navigate?: (navigate: NavigateFunction) => void;
  navigate?: string;
  /** 控制是否侧边只展示子路由 **/
  side?: boolean;
}

贡献者

感谢所有的贡献者,欢迎开发者为开源项目贡献力量。

License

Licensed under the MIT License.

Versions

Current Tags

Version History

Package Sidebar

Install

npm i @uiw-admin/router-control

Weekly Downloads

5

Version

6.1.9

License

MIT

Unpacked Size

8.2 kB

Total Files

7

Last publish

Collaborators

  • uiwjs
  • wcjiang