@riil-frontend/component-topology 8.0.0-a.2 → 8.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.
@@ -23,7 +23,7 @@ import topoFactory from "./topoFactory";
|
|
23
23
|
import ElementTagTipConfig from "./tagstips/ElementTagTipConfig";
|
24
24
|
import SelectionModel from "./SelectionModel"; // eslint-disable-next-line no-undef
|
25
25
|
|
26
|
-
var version = typeof "8.0.0-a.
|
26
|
+
var version = typeof "8.0.0-a.3" === 'string' ? "8.0.0-a.3" : null;
|
27
27
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
28
28
|
/**
|
29
29
|
* 拓扑显示和编辑
|
@@ -4,8 +4,16 @@ import _regeneratorRuntime from "@babel/runtime/regenerator";
|
|
4
4
|
import { TOPO_PARENT_ID } from "@riil-frontend/component-topology-common/es/services/topo";
|
5
5
|
import rlog from "@riil-frontend/component-topology-utils/es/rlog";
|
6
6
|
export function getLayoutId(layout) {
|
7
|
-
if (!layout
|
7
|
+
if (!layout) {
|
8
8
|
return layout;
|
9
|
+
} // 拖拽添加分层后点击保存ht传参不正确,临时适配
|
10
|
+
|
11
|
+
|
12
|
+
if (typeof layout === "string") {
|
13
|
+
return {
|
14
|
+
v: 'towardeast',
|
15
|
+
h: 'towardsouth'
|
16
|
+
}[layout] || layout;
|
9
17
|
}
|
10
18
|
|
11
19
|
var id = layout.id,
|
@@ -54,7 +54,7 @@ var _ElementTagTipConfig = _interopRequireDefault(require("./tagstips/ElementTag
|
|
54
54
|
var _SelectionModel = _interopRequireDefault(require("./SelectionModel"));
|
55
55
|
|
56
56
|
// eslint-disable-next-line no-undef
|
57
|
-
var version = typeof "8.0.0-a.
|
57
|
+
var version = typeof "8.0.0-a.3" === 'string' ? "8.0.0-a.3" : null;
|
58
58
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
59
59
|
/**
|
60
60
|
* 拓扑显示和编辑
|
@@ -18,8 +18,16 @@ var _topo = require("@riil-frontend/component-topology-common/es/services/topo")
|
|
18
18
|
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
19
19
|
|
20
20
|
function getLayoutId(layout) {
|
21
|
-
if (!layout
|
21
|
+
if (!layout) {
|
22
22
|
return layout;
|
23
|
+
} // 拖拽添加分层后点击保存ht传参不正确,临时适配
|
24
|
+
|
25
|
+
|
26
|
+
if (typeof layout === "string") {
|
27
|
+
return {
|
28
|
+
v: 'towardeast',
|
29
|
+
h: 'towardsouth'
|
30
|
+
}[layout] || layout;
|
23
31
|
}
|
24
32
|
|
25
33
|
var id = layout.id,
|
package/package.json
CHANGED
@@ -1,6 +1,6 @@
|
|
1
1
|
{
|
2
2
|
"name": "@riil-frontend/component-topology",
|
3
|
-
"version": "8.0.0-a.
|
3
|
+
"version": "8.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@8.0.0-a.
|
119
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@8.0.0-a.3/build/index.html",
|
120
120
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
121
121
|
}
|