@zyui/components 0.0.108 → 0.0.110

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.
@@ -6,6 +6,10 @@ type FlowPropsContext = {
6
6
  mode: string;
7
7
  /** 自定义label不触发双击事件,所以自己传一个事件调用emit */
8
8
  handleEdgeDblClick: (edge: Edge) => void;
9
+ /** 自定义节点默认数据 */
10
+ getNodeDefaultData?: (node: any) => Record<string, any>;
11
+ /** 自定义边默认数据 */
12
+ getEdgeDefaultData?: (edge: any) => Record<string, any>;
9
13
  };
10
14
  export declare function provideFlowProps(params: any): FlowPropsContext;
11
15
  export declare function useFlowProps(): FlowPropsContext;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyui/components",
3
- "version": "0.0.108",
3
+ "version": "0.0.110",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.mjs",
6
6
  "types": "./es/index.d.ts",