@steedos-widgets/reactflow 1.2.32 → 1.2.33

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.
package/dist/assets.json CHANGED
@@ -3,8 +3,8 @@
3
3
  {
4
4
  "package": "@steedos-widgets/reactflow",
5
5
  "urls": [
6
- "https://unpkg.com/@steedos-widgets/reactflow@1.2.32/dist/reactflow.umd.js",
7
- "https://unpkg.com/@steedos-widgets/reactflow@1.2.32/dist/reactflow.umd.css"
6
+ "https://unpkg.com/@steedos-widgets/reactflow@1.2.33/dist/reactflow.umd.js",
7
+ "https://unpkg.com/@steedos-widgets/reactflow@1.2.33/dist/reactflow.umd.css"
8
8
  ],
9
9
  "library": "BuilderReactFlow"
10
10
  }
@@ -15,10 +15,10 @@
15
15
  "npm": {
16
16
  "package": "@steedos-widgets/reactflow"
17
17
  },
18
- "url": "https://unpkg.com/@steedos-widgets/reactflow@1.2.32/dist/meta.js",
18
+ "url": "https://unpkg.com/@steedos-widgets/reactflow@1.2.33/dist/meta.js",
19
19
  "urls": {
20
- "default": "https://unpkg.com/@steedos-widgets/reactflow@1.2.32/dist/meta.js",
21
- "design": "https://unpkg.com/@steedos-widgets/reactflow@1.2.32/dist/meta.js"
20
+ "default": "https://unpkg.com/@steedos-widgets/reactflow@1.2.33/dist/meta.js",
21
+ "design": "https://unpkg.com/@steedos-widgets/reactflow@1.2.33/dist/meta.js"
22
22
  }
23
23
  }
24
24
  ]
@@ -1,10 +1,10 @@
1
1
  /// <reference types="react" />
2
2
  import 'reactflow/dist/style.css';
3
3
  import './ReactFlow.css';
4
- export declare const AmisReactFlow: ({ dispatchEvent: amisDispatchEvent, wrapperClassName, data: amisData, env, store, topStore, rootStore, scope, id, render, getValue, setValue, value, config, ...props }: {
4
+ export declare const AmisReactFlow: ({ dispatchEvent: amisDispatchEvent, wrapperClassName, data: amisData, env, store, topStore, rootStore, scope, id, render, getValue, setValue, value, config, backgroundConfig, ...props }: {
5
5
  [x: string]: any;
6
6
  dispatchEvent: any;
7
- wrapperClassName: any;
7
+ wrapperClassName?: string;
8
8
  data: any;
9
9
  env: any;
10
10
  store: any;
@@ -17,4 +17,5 @@ export declare const AmisReactFlow: ({ dispatchEvent: amisDispatchEvent, wrapper
17
17
  setValue: any;
18
18
  value: any;
19
19
  config: any;
20
+ backgroundConfig: any;
20
21
  }) => JSX.Element;
package/dist/meta.js CHANGED
@@ -66,7 +66,7 @@
66
66
  ], amis: {
67
67
  render: {
68
68
  type: config.amis.name,
69
- usage: "renderer",
69
+ usage: "formitem",
70
70
  weight: 1,
71
71
  framework: "react"
72
72
  },
@@ -105,6 +105,11 @@
105
105
  "type": "step"
106
106
  }
107
107
  ]
108
+ }),
109
+ backgroundConfig: JSON.stringify({
110
+ variant: 'dots',
111
+ gap: 25,
112
+ size: 1
108
113
  })
109
114
  },
110
115
  previewSchema: {
@@ -135,6 +140,20 @@
135
140
  签名:(config, ReactFlow, data) => config \
136
141
  "
137
142
  },
143
+ {
144
+ type: "editor",
145
+ "language": "json",
146
+ name: "backgroundConfig",
147
+ label: "Background 配置",
148
+ pipeOut: function (value) {
149
+ try {
150
+ return value ? JSON.parse(value) : null;
151
+ }
152
+ catch (e) {
153
+ }
154
+ return value;
155
+ }
156
+ },
138
157
  {
139
158
  type: "text",
140
159
  name: "wrapperClassName",
@@ -301,3 +301,14 @@
301
301
  background-color: #fff;
302
302
  }
303
303
 
304
+ .antd-Form-item .steedos-react-flow.h-full{
305
+ /*
306
+ 组件作为formitem而不是renderer模式时,外面会包一层form-item div,造成react flow组件高度100%无效
307
+ 把h-full设置为以下值可以有满屏效果
308
+ */
309
+ height: calc(100vh - 115px);
310
+ }
311
+ #__next .ae-Editor .ae-Preview-body .ae-Preview-inner .steedos-react-flow.h-full{
312
+ /*设计器中height 100%无效,把h-full设置为以下值可以有满屏效果*/
313
+ height: calc(100vh - 165px);
314
+ }