@zyui/components 0.0.40 → 0.0.42

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 {};
@@ -1,4 +1,3 @@
1
- export declare const restCss = "\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n body {\n font-family: Arial, sans-serif;\n line-height: 1.5;\n }\n img {\n max-width: 100%;\n height: auto;\n }\n a {\n text-decoration: none;\n color: inherit;\n }\n ul, ol {\n list-style: none;\n }\n * {\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n }\n td:hover > .td-node {\n display: block;\n }\n .td-node {\n display: none;\n }\n\n .node-item{\n display: inline-block;\n padding: 0 2px;\n background-color: rgba(0, 120, 212, 0.1);\n border-radius: 2px;\n margin: 0 1px;\n cursor: pointer;\n }\n .node-item-td{\n position: relative;\n }\n [contenteditable='true'] {\n outline: 1px dashed #ccc;\n border: none;\n cursor: text;\n background-color: rgba(0, 0, 0, 0.02);\n }\n [contenteditable='true']:focus {\n // outline: 1px solid rgba(0, 120, 212, 0.3);\n // outline: none;\n border: none;\n }\n \n table {\n td {\n &.node-selected {\n background-color: rgba(0, 120, 212, 0.2);\n border: 1px solid #0078d4;\n }\n }\n }\n .node-selected:not(td){\n background-color: rgba(0, 120, 212, 0.2);\n outline: 1px solid #0078d4;\n }\n ";
2
1
  export declare const init: {
3
2
  license_key: string;
4
3
  skin: boolean;
@@ -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 {};
@@ -1,4 +1,3 @@
1
- export declare const restCss = "\n * {\n margin: 0;\n padding: 0;\n box-sizing: border-box;\n }\n body {\n font-family: Arial, sans-serif;\n line-height: 1.5;\n }\n img {\n max-width: 100%;\n height: auto;\n }\n a {\n text-decoration: none;\n color: inherit;\n }\n ul, ol {\n list-style: none;\n }\n * {\n user-select: none;\n -webkit-user-select: none;\n -moz-user-select: none;\n -ms-user-select: none;\n }\n td:hover > .td-node {\n display: block;\n }\n .td-node {\n display: none;\n }\n\n .node-item{\n display: inline-block;\n padding: 0 2px;\n background-color: rgba(0, 120, 212, 0.1);\n border-radius: 2px;\n margin: 0 1px;\n cursor: pointer;\n }\n .node-item-td{\n position: relative;\n }\n [contenteditable='true'] {\n outline: 1px dashed #ccc;\n border: none;\n cursor: text;\n background-color: rgba(0, 0, 0, 0.02);\n }\n [contenteditable='true']:focus {\n // outline: 1px solid rgba(0, 120, 212, 0.3);\n // outline: none;\n border: none;\n }\n \n table {\n td {\n &.node-selected {\n background-color: rgba(0, 120, 212, 0.2);\n border: 1px solid #0078d4;\n }\n }\n }\n .node-selected:not(td){\n background-color: rgba(0, 120, 212, 0.2);\n outline: 1px solid #0078d4;\n }\n ";
2
1
  export declare const init: {
3
2
  license_key: string;
4
3
  skin: boolean;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zyui/components",
3
- "version": "0.0.40",
3
+ "version": "0.0.42",
4
4
  "main": "./lib/index.js",
5
5
  "module": "./es/index.mjs",
6
6
  "types": "./es/index.d.ts",