@riil-frontend/component-topology 5.0.11 → 5.0.12

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.
@@ -18,10 +18,12 @@ var LineExpandAllRadioGroup = /*#__PURE__*/React.forwardRef(function LineExpandA
18
18
  showType = _useState[0],
19
19
  setShowType = _useState[1];
20
20
 
21
- var _useState2 = useState((_plurals = plurals[value !== null && value !== void 0 ? value : 2]) !== null && _plurals !== void 0 ? _plurals : []),
21
+ var _useState2 = useState((_plurals = plurals[value === false ? 2 : value]) !== null && _plurals !== void 0 ? _plurals : []),
22
22
  pluralType = _useState2[0],
23
23
  setPluralType = _useState2[1];
24
24
 
25
+ console.log("LineExpandAllRadioGroup-value", value, pluralType);
26
+
25
27
  var handleTypeChange = function handleTypeChange(newValue) {
26
28
  setShowType(newValue);
27
29
 
@@ -21,7 +21,7 @@ import PluginManager from "./PluginManager";
21
21
  import topoFactory from "./topoFactory";
22
22
  import ElementTagTipConfig from "./tagstips/ElementTagTipConfig"; // eslint-disable-next-line no-undef
23
23
 
24
- var version = typeof "5.0.11" === 'string' ? "5.0.11" : null;
24
+ var version = typeof "5.0.12" === 'string' ? "5.0.12" : null;
25
25
  console.info("\u62D3\u6251\u7248\u672C: " + version);
26
26
  /**
27
27
  * 拓扑显示和编辑
@@ -187,14 +187,14 @@ export var plurals = {
187
187
  4: ["phy", "agg"]
188
188
  };
189
189
  export var showLinkByConfig = function showLinkByConfig(props) {
190
- var _plurals$showType;
190
+ var _plurals;
191
191
 
192
192
  var topo = props.topo,
193
193
  _props$showType = props.showType,
194
194
  showType = _props$showType === void 0 ? 2 : _props$showType;
195
195
  console.log("showLinkByConfig-----------------------------", props, showType); //const displayConfig = topo.store.getModelState("displayConfig");
196
196
 
197
- var types = (_plurals$showType = plurals[showType]) !== null && _plurals$showType !== void 0 ? _plurals$showType : []; // 查询所有连线
197
+ var types = (_plurals = plurals[showType === false ? 2 : showType]) !== null && _plurals !== void 0 ? _plurals : []; // 查询所有连线
198
198
 
199
199
  var gv = topo.getGraphView();
200
200
  var dm = gv.getDataModel();
@@ -37,10 +37,12 @@ var LineExpandAllRadioGroup = /*#__PURE__*/_react["default"].forwardRef(function
37
37
  showType = _useState[0],
38
38
  setShowType = _useState[1];
39
39
 
40
- var _useState2 = (0, _react.useState)((_plurals = _linkUtils.plurals[value !== null && value !== void 0 ? value : 2]) !== null && _plurals !== void 0 ? _plurals : []),
40
+ var _useState2 = (0, _react.useState)((_plurals = _linkUtils.plurals[value === false ? 2 : value]) !== null && _plurals !== void 0 ? _plurals : []),
41
41
  pluralType = _useState2[0],
42
42
  setPluralType = _useState2[1];
43
43
 
44
+ console.log("LineExpandAllRadioGroup-value", value, pluralType);
45
+
44
46
  var handleTypeChange = function handleTypeChange(newValue) {
45
47
  setShowType(newValue);
46
48
 
@@ -50,7 +50,7 @@ var _topoFactory = _interopRequireDefault(require("./topoFactory"));
50
50
  var _ElementTagTipConfig = _interopRequireDefault(require("./tagstips/ElementTagTipConfig"));
51
51
 
52
52
  // eslint-disable-next-line no-undef
53
- var version = typeof "5.0.11" === 'string' ? "5.0.11" : null;
53
+ var version = typeof "5.0.12" === 'string' ? "5.0.12" : null;
54
54
  console.info("\u62D3\u6251\u7248\u672C: " + version);
55
55
  /**
56
56
  * 拓扑显示和编辑
@@ -217,14 +217,14 @@ var plurals = {
217
217
  exports.plurals = plurals;
218
218
 
219
219
  var showLinkByConfig = function showLinkByConfig(props) {
220
- var _plurals$showType;
220
+ var _plurals;
221
221
 
222
222
  var topo = props.topo,
223
223
  _props$showType = props.showType,
224
224
  showType = _props$showType === void 0 ? 2 : _props$showType;
225
225
  console.log("showLinkByConfig-----------------------------", props, showType); //const displayConfig = topo.store.getModelState("displayConfig");
226
226
 
227
- var types = (_plurals$showType = plurals[showType]) !== null && _plurals$showType !== void 0 ? _plurals$showType : []; // 查询所有连线
227
+ var types = (_plurals = plurals[showType === false ? 2 : showType]) !== null && _plurals !== void 0 ? _plurals : []; // 查询所有连线
228
228
 
229
229
  var gv = topo.getGraphView();
230
230
  var dm = gv.getDataModel();
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riil-frontend/component-topology",
3
- "version": "5.0.11",
3
+ "version": "5.0.12",
4
4
  "description": "拓扑",
5
5
  "scripts": {
6
6
  "start": "build-scripts start",
@@ -115,6 +115,6 @@
115
115
  "access": "public"
116
116
  },
117
117
  "license": "MIT",
118
- "homepage": "https://unpkg.com/@riil-frontend/component-topology@5.0.11/build/index.html",
118
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@5.0.12/build/index.html",
119
119
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
120
120
  }