@riil-frontend/component-topology 8.0.0-a.6 → 8.0.0-a.7

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.6" === 'string' ? "8.0.0-a.6" : null;
26
+ var version = typeof "8.0.0-a.7" === 'string' ? "8.0.0-a.7" : null;
27
27
  console.info("\u62D3\u6251\u7248\u672C: " + version);
28
28
  /**
29
29
  * 拓扑显示和编辑
@@ -532,7 +532,7 @@ export default _extends({
532
532
  /**
533
533
  * 保存拓扑绘制数据(第三方库内部结构,无需关心含义)
534
534
  * @param {Number} id Topo ID
535
- * @param {String} data
535
+ * @param {String} data ht拓扑序列化数据
536
536
  * @returns
537
537
  */
538
538
  saveSerializeData: function saveSerializeData(id, data) {
@@ -542,7 +542,9 @@ export default _extends({
542
542
  switch (_context15.prev = _context15.next) {
543
543
  case 0:
544
544
  _context15.next = 2;
545
- return request.post(API_ROOT + "/structure/" + id, data);
545
+ return request.post(API_ROOT + "/structure/" + id, {
546
+ data: data
547
+ });
546
548
 
547
549
  case 2:
548
550
  return _context15.abrupt("return", _context15.sent);
@@ -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.6" === 'string' ? "8.0.0-a.6" : null;
57
+ var version = typeof "8.0.0-a.7" === 'string' ? "8.0.0-a.7" : null;
58
58
  console.info("\u62D3\u6251\u7248\u672C: " + version);
59
59
  /**
60
60
  * 拓扑显示和编辑
@@ -553,7 +553,7 @@ var _default = (0, _extends2["default"])({
553
553
  /**
554
554
  * 保存拓扑绘制数据(第三方库内部结构,无需关心含义)
555
555
  * @param {Number} id Topo ID
556
- * @param {String} data
556
+ * @param {String} data ht拓扑序列化数据
557
557
  * @returns
558
558
  */
559
559
  saveSerializeData: function saveSerializeData(id, data) {
@@ -563,7 +563,9 @@ var _default = (0, _extends2["default"])({
563
563
  switch (_context15.prev = _context15.next) {
564
564
  case 0:
565
565
  _context15.next = 2;
566
- return _componentTopologyUtils.request.post(API_ROOT + "/structure/" + id, data);
566
+ return _componentTopologyUtils.request.post(API_ROOT + "/structure/" + id, {
567
+ data: data
568
+ });
567
569
 
568
570
  case 2:
569
571
  return _context15.abrupt("return", _context15.sent);
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riil-frontend/component-topology",
3
- "version": "8.0.0-a.6",
3
+ "version": "8.0.0-a.7",
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.6/build/index.html",
119
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@8.0.0-a.7/build/index.html",
120
120
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
121
121
  }