Package Exports
- @uiw-admin/router-control
- @uiw-admin/router-control/esm/index.js
- @uiw-admin/router-control/lib/index.js
This package does not declare an exports field, so the exports above have been automatically detected and optimized by JSPM instead. If any package subpath is missing, it is recommended to post an issue to the original package (@uiw-admin/router-control) to support the "exports" field. If that is not possible, create a JSPM override to customize the exports field for this package.
Readme
路由
导出路由相关方法
安装
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.