@riil-frontend/component-topology 9.0.0-a.2 → 9.0.0-a.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.
- package/build/index.js +1 -1
- package/es/core/models/TopoApp.js +1 -1
- package/es/core/store/models/viewer/resourceDetail.js +7 -0
- package/es/core/viewer/components/plugins/ResourceDetail/ResourceDetailDrawer.js +10 -9
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/core/store/models/viewer/resourceDetail.js +7 -0
- package/lib/core/viewer/components/plugins/ResourceDetail/ResourceDetailDrawer.js +10 -9
- package/package.json +2 -2
@@ -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.0-a.
|
27
|
+
var version = typeof "9.0.0-a.3" === 'string' ? "9.0.0-a.3" : null;
|
28
28
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
29
29
|
/**
|
30
30
|
* 拓扑显示和编辑
|
@@ -76,9 +76,7 @@ function ResourceDetailDrawer(props) {
|
|
76
76
|
}, []); // 解决切换拓扑图隐藏概览
|
77
77
|
|
78
78
|
useEffect(function () {
|
79
|
-
|
80
|
-
visible: false
|
81
|
-
}); // TODO 其他数据重置
|
79
|
+
close(); // TODO 其他数据重置
|
82
80
|
}, [topoId]);
|
83
81
|
|
84
82
|
function getUser() {
|
@@ -154,6 +152,12 @@ function ResourceDetailDrawer(props) {
|
|
154
152
|
}
|
155
153
|
}
|
156
154
|
|
155
|
+
function close() {
|
156
|
+
resourceDetailDispatchers.update({
|
157
|
+
visible: false
|
158
|
+
});
|
159
|
+
}
|
160
|
+
|
157
161
|
function init(data, targetType) {
|
158
162
|
// console.log('初始化基本信息', data, targetType);
|
159
163
|
var id = data.id,
|
@@ -214,7 +218,8 @@ function ResourceDetailDrawer(props) {
|
|
214
218
|
topo: topo,
|
215
219
|
userId: userId,
|
216
220
|
activeData: activeData,
|
217
|
-
resourceData: resourceData
|
221
|
+
resourceData: resourceData,
|
222
|
+
onClose: close
|
218
223
|
}));
|
219
224
|
};
|
220
225
|
|
@@ -228,11 +233,7 @@ function ResourceDetailDrawer(props) {
|
|
228
233
|
})),
|
229
234
|
width: 580,
|
230
235
|
hasMask: false,
|
231
|
-
onClose:
|
232
|
-
return resourceDetailDispatchers.update({
|
233
|
-
visible: false
|
234
|
-
});
|
235
|
-
}
|
236
|
+
onClose: close
|
236
237
|
}, visible && resourceData && renderContent()));
|
237
238
|
}
|
238
239
|
|
@@ -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.0-a.
|
59
|
+
var version = typeof "9.0.0-a.3" === 'string' ? "9.0.0-a.3" : null;
|
60
60
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
61
61
|
/**
|
62
62
|
* 拓扑显示和编辑
|
@@ -98,9 +98,7 @@ function ResourceDetailDrawer(props) {
|
|
98
98
|
}, []); // 解决切换拓扑图隐藏概览
|
99
99
|
|
100
100
|
(0, _react.useEffect)(function () {
|
101
|
-
|
102
|
-
visible: false
|
103
|
-
}); // TODO 其他数据重置
|
101
|
+
close(); // TODO 其他数据重置
|
104
102
|
}, [topoId]);
|
105
103
|
|
106
104
|
function getUser() {
|
@@ -176,6 +174,12 @@ function ResourceDetailDrawer(props) {
|
|
176
174
|
}
|
177
175
|
}
|
178
176
|
|
177
|
+
function close() {
|
178
|
+
resourceDetailDispatchers.update({
|
179
|
+
visible: false
|
180
|
+
});
|
181
|
+
}
|
182
|
+
|
179
183
|
function init(data, targetType) {
|
180
184
|
// console.log('初始化基本信息', data, targetType);
|
181
185
|
var id = data.id,
|
@@ -236,7 +240,8 @@ function ResourceDetailDrawer(props) {
|
|
236
240
|
topo: topo,
|
237
241
|
userId: userId,
|
238
242
|
activeData: activeData,
|
239
|
-
resourceData: resourceData
|
243
|
+
resourceData: resourceData,
|
244
|
+
onClose: close
|
240
245
|
}));
|
241
246
|
};
|
242
247
|
|
@@ -250,11 +255,7 @@ function ResourceDetailDrawer(props) {
|
|
250
255
|
})),
|
251
256
|
width: 580,
|
252
257
|
hasMask: false,
|
253
|
-
onClose:
|
254
|
-
return resourceDetailDispatchers.update({
|
255
|
-
visible: false
|
256
|
-
});
|
257
|
-
}
|
258
|
+
onClose: close
|
258
259
|
}, visible && resourceData && renderContent()));
|
259
260
|
}
|
260
261
|
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@riil-frontend/component-topology",
|
3
|
-
"version": "9.0.0-a.
|
3
|
+
"version": "9.0.0-a.3",
|
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.0-a.
|
119
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@9.0.0-a.3/build/index.html",
|
120
120
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
121
121
|
}
|