@riil-frontend/component-topology 11.0.32 → 11.0.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.
@@ -33,7 +33,7 @@
33
33
  font-size: 12px;
34
34
  font-family: PingFangSC-Medium, PingFang SC;
35
35
  font-weight: 500;
36
- color: #4D6277;
36
+ color:$color-text1-4;
37
37
  line-height: 17px;
38
38
  }
39
39
 
@@ -9,9 +9,6 @@ import React, { useEffect } from 'react';
9
9
  import variables from '@alifd/theme-19926/variables.js';
10
10
  import textStyles from "../../../../../../common/text.module.scss";
11
11
  import NodeRelateResourceButton from "./NodeRelateResourceButton";
12
- import PlatformDisplay from "./PlatformDisplay";
13
- import BindIpInput from "./BindIpInput";
14
- import { isUniqueIp } from "../../../../../../../networkTopo/utils/exitLinkUtil";
15
12
  var Option = _Select.Option;
16
13
  var CollapsePanel = _Collapse.Panel;
17
14
 
@@ -29,7 +26,7 @@ function getBindType(values) {
29
26
  return values.attrObject.bindType;
30
27
  }
31
28
 
32
- if (values.tag && !values.tag.startsWith('ip:')) {
29
+ if (values.tag) {
33
30
  return 'resource';
34
31
  }
35
32
 
@@ -43,7 +40,7 @@ export default function Data(props) {
43
40
  values = props.values,
44
41
  _onChange = props.onChange,
45
42
  editorProps = props.editorProps;
46
- var bindType = getBindType(values); // console.log("node, values", node, values);
43
+ var bindType = getBindType(values);
47
44
 
48
45
  var field = _Field.useField({
49
46
  autoUnmount: false,
@@ -116,7 +113,7 @@ export default function Data(props) {
116
113
  }, /*#__PURE__*/React.createElement(_Form, {
117
114
  field: field,
118
115
  labelAlign: "top"
119
- }, (!values.tag || bindType === 'ip') && /*#__PURE__*/React.createElement(_Form.Item, {
116
+ }, !values.tag && /*#__PURE__*/React.createElement(_Form.Item, {
120
117
  label: "\u5173\u8054\u7C7B\u578B"
121
118
  }, /*#__PURE__*/React.createElement(_Select, {
122
119
  name: "bindType",
@@ -130,9 +127,7 @@ export default function Data(props) {
130
127
  value: "none"
131
128
  }, "\u672A\u5173\u8054"), /*#__PURE__*/React.createElement(Option, {
132
129
  value: "resource"
133
- }, "\u5173\u8054\u8D44\u6E90"), /*#__PURE__*/React.createElement(Option, {
134
- value: "ip"
135
- }, "\u5173\u8054IP"), RelateTopoTree && /*#__PURE__*/React.createElement(Option, {
130
+ }, "\u5173\u8054\u8D44\u6E90"), RelateTopoTree && /*#__PURE__*/React.createElement(Option, {
136
131
  value: "topo"
137
132
  }, "\u5173\u8054\u62D3\u6251"))), bindType === 'resource' && /*#__PURE__*/React.createElement(_Form.Item, {
138
133
  label: "\u5173\u8054\u8D44\u6E90"
@@ -156,35 +151,11 @@ export default function Data(props) {
156
151
  topo: topo,
157
152
  topoEditApi: topoEditApi,
158
153
  nodeBindResourceDrawerComponent: editorProps.nodeBindResourceDrawerComponent
159
- }))), bindType === 'ip' &&
160
- /*#__PURE__*/
161
- // <Form.Item
162
- // label="关联IP"
163
- // // style={{ display: "flex" }}
164
- // pattern={
165
- // /^((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))$/
166
- // }
167
- // patternTrigger="onBlur"
168
- // patternMessage="IP地址格式不正确"
169
- // >
170
- React.createElement(BindIpInput, {
171
- nodeElement: node,
172
- values: values,
173
- topo: topo,
174
- fieldItem: field,
175
- topoEditApi: topoEditApi,
176
- placeholder: "\u8BF7\u8F93\u5165",
177
- name: "attrObject.bindIp",
178
- onChange: _onChange,
179
- maxLength: 128
180
- }) // </Form.Item>
181
- , bindType === 'topo' && RelateTopoTree && /*#__PURE__*/React.createElement(_Form.Item, {
154
+ }))), bindType === 'topo' && RelateTopoTree && /*#__PURE__*/React.createElement(_Form.Item, {
182
155
  label: "\u5173\u8054\u62D3\u6251"
183
156
  }, /*#__PURE__*/React.createElement(RelateTopoTree, {
184
157
  name: "attrObject.bindTopo",
185
158
  topo: topo,
186
159
  onChange: handleBindTopoChange
187
- })), (editorProps === null || editorProps === void 0 ? void 0 : editorProps.topoType) === 'cmpTopo' && node.getTag() && /*#__PURE__*/React.createElement(_Form.Item, {
188
- label: "\u6240\u5C5E\u5E73\u53F0"
189
- }, /*#__PURE__*/React.createElement(PlatformDisplay, props)))));
160
+ })))));
190
161
  }
@@ -24,7 +24,7 @@ import ElementTagTipConfig from "./tagstips/ElementTagTipConfig";
24
24
  import SelectionModel from "./SelectionModel";
25
25
  import CiCache from "./cache/CiCache"; // eslint-disable-next-line no-undef
26
26
 
27
- var version = typeof "11.0.32" === 'string' ? "11.0.32" : null;
27
+ var version = typeof "11.0.33" === 'string' ? "11.0.33" : null;
28
28
  console.info("\u62D3\u6251\u7248\u672C: " + version);
29
29
  /**
30
30
  * 拓扑显示和编辑
@@ -1,34 +1,170 @@
1
1
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
2
+ import _extends from "@babel/runtime/helpers/extends";
2
3
  import _regeneratorRuntime from "@babel/runtime/regenerator";
3
4
  import { request } from '@riil-frontend/component-topology-utils';
4
5
  import { TOPO_API_ROOT } from "./constants";
6
+ var API_ROOT = TOPO_API_ROOT;
7
+ /**
8
+ * 拓扑图(看做一个容器)的“父容器”ID
9
+ */
10
+
11
+ export var TOPO_PARENT_ID = -2;
12
+ /**
13
+ * 拓扑图(看做一个容器)的容器ID
14
+ */
15
+
16
+ export var TOPO_GROUP_ID = -1;
17
+ var DEFAULT_QUERY = {
18
+ current: 1,
19
+ pageSize: 200,
20
+ sortBy: 'name',
21
+ sortOrder: 'asc'
22
+ };
23
+
24
+ function prepareResourceParams(conditions, query) {
25
+ if (query === void 0) {
26
+ query = DEFAULT_QUERY;
27
+ }
28
+
29
+ var dynamicRes = conditions.dynamic,
30
+ staticRes = conditions["static"],
31
+ stateValue = conditions.stateValue;
32
+ var dynamicCondition = dynamicRes && {
33
+ stateValue: stateValue,
34
+ condition: dynamicRes
35
+ } || undefined;
36
+
37
+ if (dynamicCondition && query) {
38
+ dynamicCondition.currentPage = query.current;
39
+ dynamicCondition.pageSize = query.pageSize;
40
+ dynamicCondition.sort = query.sortBy + " " + query.sortOrder;
41
+ }
42
+
43
+ return {
44
+ dynamicCondition: dynamicCondition,
45
+ fixedConditionIdList: (staticRes || []).filter(function (ciId) {
46
+ return !ciId.startsWith('ip:');
47
+ }),
48
+ linkIps: (staticRes || []).filter(function (ciId) {
49
+ return ciId.startsWith('ip:');
50
+ }).map(function (ciId) {
51
+ return ciId.replace('ip:', '');
52
+ })
53
+ };
54
+ }
55
+
56
+ function prepareGroupParams(modifiedGroups) {
57
+ if (modifiedGroups === void 0) {
58
+ modifiedGroups = [];
59
+ }
60
+
61
+ var groups = modifiedGroups.map(function (group, index) {
62
+ var id = group.id,
63
+ layout = group.layout,
64
+ _group$parentId = group.parentId,
65
+ parentId = _group$parentId === void 0 ? TOPO_GROUP_ID : _group$parentId,
66
+ _group$name = group.name,
67
+ name = _group$name === void 0 ? '' : _group$name,
68
+ expanded = group.expanded,
69
+ _group$styles = group.styles,
70
+ styles = _group$styles === void 0 ? {} : _group$styles,
71
+ resources = group.resources,
72
+ tag = group.tag;
73
+
74
+ if (!resources) {
75
+ return null;
76
+ }
77
+
78
+ var topoGroup = {
79
+ id: id,
80
+ layout: layout,
81
+ parentId: parentId,
82
+ name: name,
83
+ styles: JSON.stringify(expanded !== undefined ? _extends({}, styles, {
84
+ showExpanded: expanded
85
+ }) : styles),
86
+ order: index,
87
+ tag: tag
88
+ };
89
+ return {
90
+ topoGroup: topoGroup,
91
+ condition: prepareResourceParams(resources)
92
+ };
93
+ }).filter(Boolean);
94
+ return {
95
+ groups: groups
96
+ };
97
+ }
98
+
5
99
  export default {
6
100
  /**
7
- * 保存拓扑绘制数据(第三方库内部结构,无需关心含义)
101
+ * 查询拓扑数据
8
102
  * @param {Number} id Topo ID
9
- * @param {String} data ht拓扑序列化数据
103
+ * @param {Object} resources
104
+ * @param {Array} groups
10
105
  * @returns
11
106
  */
12
- saveSerializeData: function saveSerializeData(id, data) {
107
+ getTopoDataByResource: function getTopoDataByResource(id, resources, groups, exportLinkIdList) {
13
108
  return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee() {
109
+ var data, obj;
14
110
  return _regeneratorRuntime.wrap(function _callee$(_context) {
15
111
  while (1) {
16
112
  switch (_context.prev = _context.next) {
17
113
  case 0:
18
- _context.next = 2;
114
+ data = Array.isArray(groups) ? groups : [];
115
+
116
+ if (resources) {
117
+ data.push({
118
+ parentId: TOPO_PARENT_ID,
119
+ order: 100,
120
+ resources: resources
121
+ });
122
+ }
123
+
124
+ obj = prepareGroupParams(data);
125
+ _context.next = 5;
126
+ return request.post(API_ROOT + "/structure/byCondition/" + id, _extends({}, obj, {
127
+ exportLinkIdList: exportLinkIdList
128
+ }));
129
+
130
+ case 5:
131
+ return _context.abrupt("return", _context.sent);
132
+
133
+ case 6:
134
+ case "end":
135
+ return _context.stop();
136
+ }
137
+ }
138
+ }, _callee);
139
+ }))();
140
+ },
141
+
142
+ /**
143
+ * 保存拓扑绘制数据(第三方库内部结构,无需关心含义)
144
+ * @param {Number} id Topo ID
145
+ * @param {String} data ht拓扑序列化数据
146
+ * @returns
147
+ */
148
+ saveSerializeData: function saveSerializeData(id, data) {
149
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
150
+ return _regeneratorRuntime.wrap(function _callee2$(_context2) {
151
+ while (1) {
152
+ switch (_context2.prev = _context2.next) {
153
+ case 0:
154
+ _context2.next = 2;
19
155
  return request.post(TOPO_API_ROOT + "/structure/" + id, {
20
156
  data: data
21
157
  });
22
158
 
23
159
  case 2:
24
- return _context.abrupt("return", _context.sent);
160
+ return _context2.abrupt("return", _context2.sent);
25
161
 
26
162
  case 3:
27
163
  case "end":
28
- return _context.stop();
164
+ return _context2.stop();
29
165
  }
30
166
  }
31
- }, _callee);
167
+ }, _callee2);
32
168
  }))();
33
169
  }
34
170
  };
@@ -53,40 +53,6 @@ export default function (engine) {
53
53
  }, _callee);
54
54
  }))();
55
55
  },
56
- // 根据ci的id获取属性的值
57
- getCiArrByIds: function getCiArrByIds(conditions, state) {
58
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee2() {
59
- var resIdsList, result;
60
- return _regeneratorRuntime.wrap(function _callee2$(_context2) {
61
- while (1) {
62
- switch (_context2.prev = _context2.next) {
63
- case 0:
64
- resIdsList = state.topoBizMod.resAndMetrics.resIdsList; // rlog.debug('根据ci的id获取属性的值-getCiArrByIds', resIdsList);
65
- // const ciIds = encodeURIComponent(resIdsList);
66
-
67
- _context2.prev = 1;
68
- _context2.next = 4;
69
- return topoServer.getBatchCiArr({
70
- ids: resIdsList
71
- });
72
-
73
- case 4:
74
- result = _context2.sent;
75
- return _context2.abrupt("return", result.content);
76
-
77
- case 8:
78
- _context2.prev = 8;
79
- _context2.t0 = _context2["catch"](1);
80
- return _context2.abrupt("return", null);
81
-
82
- case 11:
83
- case "end":
84
- return _context2.stop();
85
- }
86
- }
87
- }, _callee2, null, [[1, 8]]);
88
- }))();
89
- },
90
56
 
91
57
  /**
92
58
  * 设置属性和指标
@@ -7,7 +7,6 @@ import { request } from '@riil-frontend/component-topology-utils';
7
7
  import rlog from '@riil-frontend/component-topology-utils/es/rlog';
8
8
  import blackList from "./blacklist";
9
9
  import { TOPO_API_ROOT } from "./constants";
10
- import { commonQuery } from "../cmdb";
11
10
  import { getBatchCi as _getBatchCi, getBatchCiMetric as _getBatchCiMetric } from "../model";
12
11
  import { processByConditionResult, processExitLink } from "../../utils/exitLinkUtil";
13
12
  var API_ROOT = TOPO_API_ROOT;
@@ -28,10 +27,6 @@ var DEFAULT_QUERY = {
28
27
  sortOrder: 'asc'
29
28
  };
30
29
 
31
- function isAvailableArray(arr) {
32
- return arr && Array.isArray(arr) && arr.length > 0;
33
- }
34
-
35
30
  function prepareResourceParams(conditions, query) {
36
31
  if (query === void 0) {
37
32
  query = DEFAULT_QUERY;
@@ -39,10 +34,7 @@ function prepareResourceParams(conditions, query) {
39
34
 
40
35
  var dynamicRes = conditions.dynamic,
41
36
  staticRes = conditions["static"],
42
- stateValue = conditions.stateValue; // if (isNull(dynamicRes) && isNull(staticRes)) {
43
- // return null;
44
- // }
45
-
37
+ stateValue = conditions.stateValue;
46
38
  var dynamicCondition = dynamicRes && {
47
39
  stateValue: stateValue,
48
40
  condition: dynamicRes
@@ -454,7 +446,7 @@ export default _extends({
454
446
  while (1) {
455
447
  switch (_context13.prev = _context13.next) {
456
448
  case 0:
457
- data = isAvailableArray(groups) ? groups : [];
449
+ data = Array.isArray(groups) ? groups : [];
458
450
 
459
451
  if (resources) {
460
452
  data.push({
@@ -503,7 +495,7 @@ export default _extends({
503
495
  switch (_context14.prev = _context14.next) {
504
496
  case 0:
505
497
  groups = config.groups, resources = config.resources, exportLinkIdList = config.exportLinkIdList, otherConfig = _objectWithoutPropertiesLoose(config, _excluded);
506
- newGroups = isAvailableArray(groups) ? groups : [];
498
+ newGroups = Array.isArray(groups) ? groups : [];
507
499
 
508
500
  if (resources) {
509
501
  // 新建拓扑时
@@ -638,46 +630,6 @@ export default _extends({
638
630
  }))();
639
631
  },
640
632
 
641
- /**
642
- * 根据资源id获取属性及属性值
643
- * @param {*} params Topo ID
644
- */
645
- getAttributesByIds: function getAttributesByIds(params) {
646
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19() {
647
- var _params$ids;
648
-
649
- var param;
650
- return _regeneratorRuntime.wrap(function _callee19$(_context19) {
651
- while (1) {
652
- switch (_context19.prev = _context19.next) {
653
- case 0:
654
- if (!(((_params$ids = params.ids) === null || _params$ids === void 0 ? void 0 : _params$ids.length) > 0)) {
655
- _context19.next = 6;
656
- break;
657
- }
658
-
659
- param = {
660
- condition: "id('" + params.ids.join("','") + "')",
661
- sort: 'index DESC',
662
- currentPage: 1,
663
- pageSize: params.ids.length > 10 ? params.ids.length : 10
664
- };
665
- rlog.debug('getAttributesByIds', param);
666
- _context19.next = 5;
667
- return commonQuery(param);
668
-
669
- case 5:
670
- return _context19.abrupt("return", _context19.sent);
671
-
672
- case 6:
673
- case "end":
674
- return _context19.stop();
675
- }
676
- }
677
- }, _callee19);
678
- }))();
679
- },
680
-
681
633
  /**
682
634
  * 批量查询ci信息接口
683
635
  * @param {*} params Topo ID
@@ -702,47 +654,28 @@ export default _extends({
702
654
  }
703
655
  },
704
656
 
705
- /**
706
- * 批量查询ci属性
707
- * @param {*} params Topo ID
708
- */
709
- getBatchCiArr: function getBatchCiArr(params) {
710
- var _params$ids2;
711
-
712
- if (((_params$ids2 = params.ids) === null || _params$ids2 === void 0 ? void 0 : _params$ids2.length) > 0) {
713
- var param = {
714
- condition: "id('" + params.ids.join("','") + "')",
715
- sort: 'name asc',
716
- currentPage: 1,
717
- pageSize: 999
718
- }; // rlog.debug('getBatchCi', param);
719
-
720
- return commonQuery(param);
721
- }
722
- },
723
-
724
657
  /**
725
658
  * 批量查询ci指标属性
726
659
  * @param {*} params Topo ID
727
660
  */
728
661
  getBatchCiPolling: function getBatchCiPolling(params) {
729
- return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee20() {
730
- return _regeneratorRuntime.wrap(function _callee20$(_context20) {
662
+ return _asyncToGenerator( /*#__PURE__*/_regeneratorRuntime.mark(function _callee19() {
663
+ return _regeneratorRuntime.wrap(function _callee19$(_context19) {
731
664
  while (1) {
732
- switch (_context20.prev = _context20.next) {
665
+ switch (_context19.prev = _context19.next) {
733
666
  case 0:
734
- _context20.next = 2;
667
+ _context19.next = 2;
735
668
  return request.post(TOPO_API_ROOT + "/attributes/polling", params);
736
669
 
737
670
  case 2:
738
- return _context20.abrupt("return", _context20.sent);
671
+ return _context19.abrupt("return", _context19.sent);
739
672
 
740
673
  case 3:
741
674
  case "end":
742
- return _context20.stop();
675
+ return _context19.stop();
743
676
  }
744
677
  }
745
- }, _callee20);
678
+ }, _callee19);
746
679
  }))();
747
680
  }
748
681
  });
@@ -33,7 +33,7 @@
33
33
  font-size: 12px;
34
34
  font-family: PingFangSC-Medium, PingFang SC;
35
35
  font-weight: 500;
36
- color: #4D6277;
36
+ color:$color-text1-4;
37
37
  line-height: 17px;
38
38
  }
39
39
 
@@ -27,12 +27,6 @@ var _textModule = _interopRequireDefault(require("../../../../../../common/text.
27
27
 
28
28
  var _NodeRelateResourceButton = _interopRequireDefault(require("./NodeRelateResourceButton"));
29
29
 
30
- var _PlatformDisplay = _interopRequireDefault(require("./PlatformDisplay"));
31
-
32
- var _BindIpInput = _interopRequireDefault(require("./BindIpInput"));
33
-
34
- var _exitLinkUtil = require("../../../../../../../networkTopo/utils/exitLinkUtil");
35
-
36
30
  function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
37
31
 
38
32
  function _interopRequireWildcard(obj, nodeInterop) { if (!nodeInterop && obj && obj.__esModule) { return obj; } if (obj === null || typeof obj !== "object" && typeof obj !== "function") { return { "default": obj }; } var cache = _getRequireWildcardCache(nodeInterop); if (cache && cache.has(obj)) { return cache.get(obj); } var newObj = {}; var hasPropertyDescriptor = Object.defineProperty && Object.getOwnPropertyDescriptor; for (var key in obj) { if (key !== "default" && Object.prototype.hasOwnProperty.call(obj, key)) { var desc = hasPropertyDescriptor ? Object.getOwnPropertyDescriptor(obj, key) : null; if (desc && (desc.get || desc.set)) { Object.defineProperty(newObj, key, desc); } else { newObj[key] = obj[key]; } } } newObj["default"] = obj; if (cache) { cache.set(obj, newObj); } return newObj; }
@@ -54,7 +48,7 @@ function getBindType(values) {
54
48
  return values.attrObject.bindType;
55
49
  }
56
50
 
57
- if (values.tag && !values.tag.startsWith('ip:')) {
51
+ if (values.tag) {
58
52
  return 'resource';
59
53
  }
60
54
 
@@ -68,7 +62,7 @@ function Data(props) {
68
62
  values = props.values,
69
63
  _onChange = props.onChange,
70
64
  editorProps = props.editorProps;
71
- var bindType = getBindType(values); // console.log("node, values", node, values);
65
+ var bindType = getBindType(values);
72
66
 
73
67
  var field = _field["default"].useField({
74
68
  autoUnmount: false,
@@ -141,7 +135,7 @@ function Data(props) {
141
135
  }, /*#__PURE__*/_react["default"].createElement(_form["default"], {
142
136
  field: field,
143
137
  labelAlign: "top"
144
- }, (!values.tag || bindType === 'ip') && /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
138
+ }, !values.tag && /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
145
139
  label: "\u5173\u8054\u7C7B\u578B"
146
140
  }, /*#__PURE__*/_react["default"].createElement(_select["default"], {
147
141
  name: "bindType",
@@ -155,9 +149,7 @@ function Data(props) {
155
149
  value: "none"
156
150
  }, "\u672A\u5173\u8054"), /*#__PURE__*/_react["default"].createElement(Option, {
157
151
  value: "resource"
158
- }, "\u5173\u8054\u8D44\u6E90"), /*#__PURE__*/_react["default"].createElement(Option, {
159
- value: "ip"
160
- }, "\u5173\u8054IP"), RelateTopoTree && /*#__PURE__*/_react["default"].createElement(Option, {
152
+ }, "\u5173\u8054\u8D44\u6E90"), RelateTopoTree && /*#__PURE__*/_react["default"].createElement(Option, {
161
153
  value: "topo"
162
154
  }, "\u5173\u8054\u62D3\u6251"))), bindType === 'resource' && /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
163
155
  label: "\u5173\u8054\u8D44\u6E90"
@@ -181,35 +173,11 @@ function Data(props) {
181
173
  topo: topo,
182
174
  topoEditApi: topoEditApi,
183
175
  nodeBindResourceDrawerComponent: editorProps.nodeBindResourceDrawerComponent
184
- }))), bindType === 'ip' &&
185
- /*#__PURE__*/
186
- // <Form.Item
187
- // label="关联IP"
188
- // // style={{ display: "flex" }}
189
- // pattern={
190
- // /^((25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))\.){3}(25[0-5]|2[0-4]\d|((1\d{2})|([1-9]?\d)))$/
191
- // }
192
- // patternTrigger="onBlur"
193
- // patternMessage="IP地址格式不正确"
194
- // >
195
- _react["default"].createElement(_BindIpInput["default"], {
196
- nodeElement: node,
197
- values: values,
198
- topo: topo,
199
- fieldItem: field,
200
- topoEditApi: topoEditApi,
201
- placeholder: "\u8BF7\u8F93\u5165",
202
- name: "attrObject.bindIp",
203
- onChange: _onChange,
204
- maxLength: 128
205
- }) // </Form.Item>
206
- , bindType === 'topo' && RelateTopoTree && /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
176
+ }))), bindType === 'topo' && RelateTopoTree && /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
207
177
  label: "\u5173\u8054\u62D3\u6251"
208
178
  }, /*#__PURE__*/_react["default"].createElement(RelateTopoTree, {
209
179
  name: "attrObject.bindTopo",
210
180
  topo: topo,
211
181
  onChange: handleBindTopoChange
212
- })), (editorProps === null || editorProps === void 0 ? void 0 : editorProps.topoType) === 'cmpTopo' && node.getTag() && /*#__PURE__*/_react["default"].createElement(_form["default"].Item, {
213
- label: "\u6240\u5C5E\u5E73\u53F0"
214
- }, /*#__PURE__*/_react["default"].createElement(_PlatformDisplay["default"], props)))));
182
+ })))));
215
183
  }
@@ -56,7 +56,7 @@ var _SelectionModel = _interopRequireDefault(require("./SelectionModel"));
56
56
  var _CiCache = _interopRequireDefault(require("./cache/CiCache"));
57
57
 
58
58
  // eslint-disable-next-line no-undef
59
- var version = typeof "11.0.32" === 'string' ? "11.0.32" : null;
59
+ var version = typeof "11.0.33" === 'string' ? "11.0.33" : null;
60
60
  console.info("\u62D3\u6251\u7248\u672C: " + version);
61
61
  /**
62
62
  * 拓扑显示和编辑