@zyui/components 0.0.40 → 0.0.41

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.
@@ -4,5 +4,8 @@ interface UseFlowEventsReturn {
4
4
  onConnect: ReturnType<typeof useVueFlow>['onConnect'];
5
5
  addEdges: ReturnType<typeof useVueFlow>['addEdges'];
6
6
  }
7
- export declare function useFlowEvents(): UseFlowEventsReturn;
7
+ export declare function useFlowEvents(params?: {
8
+ getNodeDefaultData?: (node: any) => any;
9
+ getEdgeDefaultData?: (edge: any) => any;
10
+ }): UseFlowEventsReturn;
8
11
  export {};
@@ -7,10 +7,6 @@ type FlowPropsContext = {
7
7
  /** 自定义label不触发双击事件,所以自己传一个事件调用emit */
8
8
  handleEdgeDblClick: (edge: Edge) => void;
9
9
  };
10
- export declare function provideFlowProps({ nodeTypes, mode, handleEdgeDblClick }: {
11
- nodeTypes: any;
12
- mode: any;
13
- handleEdgeDblClick: any;
14
- }): FlowPropsContext;
10
+ export declare function provideFlowProps(params: any): FlowPropsContext;
15
11
  export declare function useFlowProps(): FlowPropsContext;
16
12
  export {};
@@ -4,5 +4,8 @@ interface UseFlowEventsReturn {
4
4
  onConnect: ReturnType<typeof useVueFlow>['onConnect'];
5
5
  addEdges: ReturnType<typeof useVueFlow>['addEdges'];
6
6
  }
7
- export declare function useFlowEvents(): UseFlowEventsReturn;
7
+ export declare function useFlowEvents(params?: {
8
+ getNodeDefaultData?: (node: any) => any;
9
+ getEdgeDefaultData?: (edge: any) => any;
10
+ }): UseFlowEventsReturn;
8
11
  export {};
@@ -7,10 +7,6 @@ type FlowPropsContext = {
7
7
  /** 自定义label不触发双击事件,所以自己传一个事件调用emit */
8
8
  handleEdgeDblClick: (edge: Edge) => void;
9
9
  };
10
- export declare function provideFlowProps({ nodeTypes, mode, handleEdgeDblClick }: {
11
- nodeTypes: any;
12
- mode: any;
13
- handleEdgeDblClick: any;
14
- }): FlowPropsContext;
10
+ export declare function provideFlowProps(params: any): FlowPropsContext;
15
11
  export declare function useFlowProps(): FlowPropsContext;
16
12
  export {};
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyui/components",
3
- "version": "0.0.40",
3
+ "version": "0.0.41",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.mjs",
6
6
  "types": "./es/index.d.ts",
@@ -42,8 +42,8 @@
42
42
  "vue-hooks-plus": "^2.2.1",
43
43
  "xmldom": "^0.6.0",
44
44
  "xpath": "^0.0.34",
45
- "@zyui/hooks": "0.0.5",
46
- "@zyui/utils": "0.0.8"
45
+ "@zyui/utils": "0.0.8",
46
+ "@zyui/hooks": "0.0.5"
47
47
  },
48
48
  "devDependencies": {
49
49
  "@types/lodash-es": "^4.17.12"