1.1.5 • Published 2 years ago
@kkt/pro v1.1.5
包集成管理
- 为了方便把自动生成文件内的数据导出使用
- 根据使用的
plugin
,导出对应相关包内方法 - 导出一部分自定义类型
install
$ npm install @kkt/pro -D # yarn add @kkt/pro -D
类型
KktproRoutesProps
路由类型
export interface KktproRoutesProps extends Omit<RouteObject, 'children' | 'element'> {
/** 名称 */
name?: string;
/** 图标 */
icon?: string | React.ReactNode;
/** 重定向 当 index===true生效 */
redirect?: string;
/** 页面权限, 用于页面校验权限 */
roles?: string[];
/** 隐藏主菜单 */
hiddenMainMenu?: boolean;
/** 是否隐藏菜单 */
hideInMenu?: boolean;
/** 自定义 跳转 */
// navigate?: (navigate: NavigateFunction) => void;
navigate?: string;
/** 控制是否侧边只展示子路由 **/
side?: boolean;
/** 是否渲染当前路由 */
hideRoute?: boolean;
/** route component */
element?: string | React.LazyExoticComponent<() => JSX.Element> | JSX.Element;
/** 子集 路由 */
children?: KktproRoutesProps[];
}
KktproPageProps
页面props
类型
export interface KktproPageProps extends KktproIProps {
/** 页面权限 */
roles?: string;
navigate: NavigateFunction;
/** path="/" 路由下的子集路由集合 */
routes: KktproRoutesProps[];
}
Contributors
License
Licensed under the MIT License.
1.1.1
2 years ago
1.1.0
2 years ago
1.1.5
2 years ago
1.1.4
2 years ago
1.1.3
2 years ago
1.1.2
2 years ago
1.0.14
2 years ago
1.0.13
2 years ago
1.0.12
2 years ago
1.0.11
2 years ago
1.0.11-bate.2
2 years ago
1.0.11-bate.1
2 years ago
1.0.10
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.6-bate.2
2 years ago
1.0.6-bate.1
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.1-bate.1
2 years ago
1.0.0-bate.1
2 years ago
1.0.0-alpha.1
2 years ago