@riil-frontend/component-topology 9.0.18 → 10.0.0

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.
@@ -5,7 +5,7 @@ import GroupPropertyView from "./group/GroupPropertyView";
5
5
  import BoxPropertyView from "./box/BoxPropertyView";
6
6
  import ViewPropertyView from "./view/ViewPropertyViewV2";
7
7
  var propertyPanelMap = {
8
- view: ViewPropertyView,
8
+ // view: ViewPropertyView,
9
9
  group: GroupPropertyView,
10
10
  node: NodePropertyView,
11
11
  // edge: EdgePropertyView,
@@ -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 "9.0.18" === 'string' ? "9.0.18" : null;
27
+ var version = typeof "10.0.0" === 'string' ? "10.0.0" : null;
28
28
  console.info("\u62D3\u6251\u7248\u672C: " + version);
29
29
  /**
30
30
  * 拓扑显示和编辑
@@ -144,7 +144,10 @@ export function processExitLink(topoData) {
144
144
 
145
145
  function getIpNodes(serialize, nodes) {
146
146
  // 从序列化获取关联的IP
147
- var ips = serialize.d.filter(function (item) {
147
+ var ips = serialize.d // 过滤背景图不存在属性,解决欧拉乐享v1.1 迁移数据到欧拉乐享v1.4
148
+ .filter(function (item) {
149
+ return !!item.a;
150
+ }).filter(function (item) {
148
151
  return item.a.bindType === 'ip';
149
152
  }).map(function (item) {
150
153
  return item.a.bindIp;
@@ -18,7 +18,7 @@ var _BoxPropertyView = _interopRequireDefault(require("./box/BoxPropertyView"));
18
18
  var _ViewPropertyViewV = _interopRequireDefault(require("./view/ViewPropertyViewV2"));
19
19
 
20
20
  var propertyPanelMap = {
21
- view: _ViewPropertyViewV["default"],
21
+ // view: ViewPropertyView,
22
22
  group: _GroupPropertyView["default"],
23
23
  node: _NodePropertyView["default"],
24
24
  // edge: EdgePropertyView,
@@ -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 "9.0.18" === 'string' ? "9.0.18" : null;
59
+ var version = typeof "10.0.0" === 'string' ? "10.0.0" : null;
60
60
  console.info("\u62D3\u6251\u7248\u672C: " + version);
61
61
  /**
62
62
  * 拓扑显示和编辑
@@ -155,7 +155,10 @@ function processExitLink(topoData) {
155
155
 
156
156
  function getIpNodes(serialize, nodes) {
157
157
  // 从序列化获取关联的IP
158
- var ips = serialize.d.filter(function (item) {
158
+ var ips = serialize.d // 过滤背景图不存在属性,解决欧拉乐享v1.1 迁移数据到欧拉乐享v1.4
159
+ .filter(function (item) {
160
+ return !!item.a;
161
+ }).filter(function (item) {
159
162
  return item.a.bindType === 'ip';
160
163
  }).map(function (item) {
161
164
  return item.a.bindIp;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riil-frontend/component-topology",
3
- "version": "9.0.18",
3
+ "version": "10.0.0",
4
4
  "description": "拓扑",
5
5
  "scripts": {
6
6
  "start": "build-scripts start",
@@ -116,6 +116,6 @@
116
116
  "access": "public"
117
117
  },
118
118
  "license": "MIT",
119
- "homepage": "https://unpkg.com/@riil-frontend/component-topology@9.0.18/build/index.html",
119
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@10.0.0/build/index.html",
120
120
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
121
121
  }