strategy-panel 1.0.5 → 1.0.6
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.
|
@@ -27,11 +27,17 @@ var BaseNode = /*#__PURE__*/function (_ReactShape) {
|
|
|
27
27
|
_this.initPorts();
|
|
28
28
|
var methodList = metadata === null || metadata === void 0 || (_metadata$nodeConfig = metadata.nodeConfig) === null || _metadata$nodeConfig === void 0 ? void 0 : _metadata$nodeConfig[metadata === null || metadata === void 0 ? void 0 : metadata.nodeType];
|
|
29
29
|
if (methodList !== null && methodList !== void 0 && methodList.length) {
|
|
30
|
+
var _this$port$ports;
|
|
30
31
|
_this.methodList = methodList;
|
|
32
|
+
(_this$port$ports = _this.port.ports) === null || _this$port$ports === void 0 || _this$port$ports.forEach(function (port) {
|
|
33
|
+
if (port.group === 'method') {
|
|
34
|
+
_this.removePort(port.id);
|
|
35
|
+
}
|
|
36
|
+
});
|
|
31
37
|
// 为每个方法在节点左侧添加端口
|
|
32
38
|
_this.addMethodPorts(methodList);
|
|
33
39
|
}
|
|
34
|
-
console.log("BaseNodexxxxx", metadata,
|
|
40
|
+
console.log("BaseNodexxxxx", metadata, _this.port.ports);
|
|
35
41
|
return _this;
|
|
36
42
|
}
|
|
37
43
|
_createClass(BaseNode, [{
|
|
@@ -74,9 +80,10 @@ BaseNode.config({
|
|
|
74
80
|
ports: {
|
|
75
81
|
groups: {
|
|
76
82
|
method: {
|
|
77
|
-
position:
|
|
78
|
-
|
|
79
|
-
|
|
83
|
+
position: {
|
|
84
|
+
name: 'left'
|
|
85
|
+
},
|
|
86
|
+
zIndex: 2
|
|
80
87
|
}
|
|
81
88
|
}
|
|
82
89
|
}
|
|
@@ -33,11 +33,17 @@ var BaseNode = exports.default = /*#__PURE__*/function (_ReactShape) {
|
|
|
33
33
|
_this.initPorts();
|
|
34
34
|
var methodList = metadata === null || metadata === void 0 || (_metadata$nodeConfig = metadata.nodeConfig) === null || _metadata$nodeConfig === void 0 ? void 0 : _metadata$nodeConfig[metadata === null || metadata === void 0 ? void 0 : metadata.nodeType];
|
|
35
35
|
if (methodList !== null && methodList !== void 0 && methodList.length) {
|
|
36
|
+
var _this$port$ports;
|
|
36
37
|
_this.methodList = methodList;
|
|
38
|
+
(_this$port$ports = _this.port.ports) === null || _this$port$ports === void 0 || _this$port$ports.forEach(function (port) {
|
|
39
|
+
if (port.group === 'method') {
|
|
40
|
+
_this.removePort(port.id);
|
|
41
|
+
}
|
|
42
|
+
});
|
|
37
43
|
// 为每个方法在节点左侧添加端口
|
|
38
44
|
_this.addMethodPorts(methodList);
|
|
39
45
|
}
|
|
40
|
-
console.log("BaseNodexxxxx", metadata,
|
|
46
|
+
console.log("BaseNodexxxxx", metadata, _this.port.ports);
|
|
41
47
|
return _this;
|
|
42
48
|
}
|
|
43
49
|
_createClass(BaseNode, [{
|
|
@@ -79,9 +85,10 @@ BaseNode.config({
|
|
|
79
85
|
ports: {
|
|
80
86
|
groups: {
|
|
81
87
|
method: {
|
|
82
|
-
position:
|
|
83
|
-
|
|
84
|
-
|
|
88
|
+
position: {
|
|
89
|
+
name: 'left'
|
|
90
|
+
},
|
|
91
|
+
zIndex: 2
|
|
85
92
|
}
|
|
86
93
|
}
|
|
87
94
|
}
|