@nocobase/client 2.0.0-alpha.12 → 2.0.0-alpha.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.
@@ -19,6 +19,7 @@ export declare class MockFlowModelRepository implements IFlowModelRepository<Flo
19
19
  destroy(uid: string): Promise<boolean>;
20
20
  clear(): Promise<boolean>;
21
21
  move(sourceId: string, targetId: string, position?: 'before' | 'after'): Promise<void>;
22
+ duplicate(uid: string): Promise<any>;
22
23
  }
23
24
  export declare class FlowModelRepository implements IFlowModelRepository<FlowModel> {
24
25
  private app;
@@ -29,4 +30,5 @@ export declare class FlowModelRepository implements IFlowModelRepository<FlowMod
29
30
  }): Promise<any>;
30
31
  destroy(uid: string): Promise<boolean>;
31
32
  move(sourceId: string, targetId: string, position?: 'before' | 'after'): Promise<any>;
33
+ duplicate(uid: string): Promise<any>;
32
34
  }
@@ -17,6 +17,7 @@ export interface ResourceSettingsInitParams {
17
17
  }
18
18
  export declare class CollectionBlockModel<T = DefaultStructure> extends DataBlockModel<T> {
19
19
  isManualRefresh: boolean;
20
+ onActive(): void;
20
21
  /**
21
22
  * 子菜单过滤函数
22
23
  */
@@ -20,6 +20,9 @@ export declare class PageModel extends FlowModel<PageModelStructure> {
20
20
  left?: ReactNode;
21
21
  right?: ReactNode;
22
22
  };
23
+ tabActiveKey: string;
24
+ onMount(): void;
25
+ invokeTabModelLifecycleMethod(tabActiveKey: string, method: 'onActive' | 'onInactive'): void;
23
26
  createPageTabModelOptions: () => CreateModelOptions;
24
27
  mapTabs(): {
25
28
  key: string;
@@ -9,6 +9,8 @@
9
9
  import { DragEndEvent } from '@dnd-kit/core';
10
10
  import { PageModel } from './PageModel';
11
11
  export declare class RootPageModel extends PageModel {
12
+ mounted: boolean;
13
+ onMount(): void;
12
14
  saveStepParams(): Promise<void>;
13
15
  handleDragEnd(event: DragEndEvent): Promise<void>;
14
16
  }