@riil-frontend/component-topology 2.7.2 → 2.7.3

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.
@@ -19,14 +19,13 @@ export default function (topoApp) {
19
19
  urlParams: {},
20
20
  topoLoading: true,
21
21
  topoLoadError: false,
22
- topoId: '',
23
- topoName: '',
24
- topoPermission: undefined,
25
22
  viewState: 'view',
26
23
  // view, create, 2种模式
27
- // lastRefresh: undefined,
24
+ topoId: '',
25
+ topoName: '',
28
26
  topoData: null,
29
27
  currentTopo: undefined,
28
+ topoPermission: undefined,
30
29
  currentNode: {
31
30
  id: '',
32
31
  name: '无数据'
@@ -175,7 +174,10 @@ export default function (topoApp) {
175
174
  },
176
175
  clearData: function clearData() {
177
176
  this.update({
178
- topoData: null
177
+ topoId: '',
178
+ topoName: '',
179
+ topoData: null,
180
+ currentTopo: undefined
179
181
  });
180
182
  },
181
183
  switchToViewMode: function switchToViewMode(playload, rootState) {
@@ -369,7 +369,7 @@ export default function (topoApp) {
369
369
  var parentIds = findSelectedParentIds(treeState.treeData, id);
370
370
  expandedKeys.push.apply(expandedKeys, parentIds);
371
371
  this.update({
372
- selectedNode: [id],
372
+ selectedNode: ["" + id],
373
373
  expandedKeys: expandedKeys
374
374
  });
375
375
  }
@@ -38,14 +38,13 @@ function _default(topoApp) {
38
38
  urlParams: {},
39
39
  topoLoading: true,
40
40
  topoLoadError: false,
41
- topoId: '',
42
- topoName: '',
43
- topoPermission: undefined,
44
41
  viewState: 'view',
45
42
  // view, create, 2种模式
46
- // lastRefresh: undefined,
43
+ topoId: '',
44
+ topoName: '',
47
45
  topoData: null,
48
46
  currentTopo: undefined,
47
+ topoPermission: undefined,
49
48
  currentNode: {
50
49
  id: '',
51
50
  name: '无数据'
@@ -196,7 +195,10 @@ function _default(topoApp) {
196
195
  },
197
196
  clearData: function clearData() {
198
197
  this.update({
199
- topoData: null
198
+ topoId: '',
199
+ topoName: '',
200
+ topoData: null,
201
+ currentTopo: undefined
200
202
  });
201
203
  },
202
204
  switchToViewMode: function switchToViewMode(playload, rootState) {
@@ -386,7 +386,7 @@ function _default(topoApp) {
386
386
  var parentIds = findSelectedParentIds(treeState.treeData, id);
387
387
  expandedKeys.push.apply(expandedKeys, parentIds);
388
388
  this.update({
389
- selectedNode: [id],
389
+ selectedNode: ["" + id],
390
390
  expandedKeys: expandedKeys
391
391
  });
392
392
  }
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riil-frontend/component-topology",
3
- "version": "2.7.2",
3
+ "version": "2.7.3",
4
4
  "description": "拓扑",
5
5
  "scripts": {
6
6
  "start": "build-scripts start",
@@ -44,7 +44,6 @@
44
44
  "@ice/store": "^1.4.2",
45
45
  "@riil-frontend/component-topo-icon-select": "^1.0.2",
46
46
  "@riil-frontend/component-topology-common": "^1.0.0",
47
- "@riil-frontend/component-topology-graph": "^2.2.1",
48
47
  "@riil-frontend/component-topology-utils": "^2.0.18",
49
48
  "classnames": "^2.2.3",
50
49
  "prop-types": "^15.5.8",
@@ -68,6 +67,7 @@
68
67
  "@riil-frontend/component-row-delete-ballon": "^1.0.2",
69
68
  "@riil-frontend/component-table-filter-tags": "latest",
70
69
  "@riil-frontend/component-table-layout": "^2.0.2",
70
+ "@riil-frontend/component-topology-graph": "^2.2.2",
71
71
  "@riil-frontend/css": "^2.0.2",
72
72
  "@riil-frontend/hooks": "latest",
73
73
  "@riil-frontend/next-collapse": "^1.0.1-a.0",
@@ -90,7 +90,8 @@
90
90
  },
91
91
  "peerDependencies": {
92
92
  "@alifd/next": "1.x",
93
- "react": "^16 || ^17"
93
+ "react": "^16 || ^17",
94
+ "@riil-frontend/component-topology-graph": "^2.x"
94
95
  },
95
96
  "componentConfig": {
96
97
  "name": "Topology",
@@ -101,6 +102,6 @@
101
102
  "access": "public"
102
103
  },
103
104
  "license": "MIT",
104
- "homepage": "https://unpkg.com/@riil-frontend/component-topology@2.7.2/build/index.html",
105
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@2.7.3/build/index.html",
105
106
  "gitHead": "62eadeca07c85ed047f2e933676f62015eff98cc"
106
107
  }