knight-web 2.0.11 → 2.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -1,6 +1,4 @@
1
1
  import React from "react";
2
- import { AbstractObject } from "../base";
3
- import { InterfaceUtility } from "../utility";
4
2
  /** 导航工具 */
5
3
  export declare class Navgation {
6
4
  /** 导航配置池 */
@@ -8,19 +6,16 @@ export declare class Navgation {
8
6
  /** 注册导航
9
7
  * @param option 导航配置
10
8
  */
11
- static OnRegist(option: NavgationOption): Function;
9
+ static OnRegist(path: string): Function;
12
10
  /** 构建路由 */
13
11
  static OnRender(): React.ReactElement;
14
12
  }
15
13
  /** 导航配置 */
16
14
  export interface NavgationOption {
17
- /** 路径
18
- * 格式:aaa/bbb/ccc
19
- */
15
+ /** 组件Key */
16
+ key: string;
17
+ /** 路径(格式:aaa/bbb/ccc) */
20
18
  path?: string;
21
- }
22
- /** 导航配置 */
23
- export interface NavgationConfig extends NavgationOption {
24
19
  /** 组件元素 */
25
- type: InterfaceUtility.IType<AbstractObject>;
20
+ element: React.ReactElement;
26
21
  }