@riil-frontend/component-topology 6.0.20 → 6.0.21

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 "6.0.20" === 'string' ? "6.0.20" : null;
26
+ var version = typeof "6.0.21" === 'string' ? "6.0.21" : null;
27
27
  console.info("\u62D3\u6251\u7248\u672C: " + version);
28
28
  /**
29
29
  * 拓扑显示和编辑
@@ -1,7 +1,6 @@
1
1
  import _Message from "@alifd/next/es/message";
2
2
  import _Table from "@alifd/next/es/table";
3
3
  import _extends from "@babel/runtime/helpers/extends";
4
- import _Button from "@alifd/next/es/button";
5
4
  import _Icon from "@alifd/next/es/icon";
6
5
  import _asyncToGenerator from "@babel/runtime/helpers/asyncToGenerator";
7
6
 
@@ -442,30 +441,33 @@ export default function ResourceOverview(props) {
442
441
  title: moment(value).format('YYYY-MM-DD HH:mm:ss')
443
442
  }, moment(value).format('YYYY-MM-DD HH:mm:ss'));
444
443
  }
445
- }, {
446
- title: '操作',
447
- dataIndex: 'status',
448
- key: 'status',
449
- width: 64,
450
- cell: function cell(status, index, record) {
451
- if (record.type === 'alarm') {
452
- return status === 'toDeal' ? /*#__PURE__*/React.createElement(_Button, {
453
- text: true,
454
- type: "primary",
455
- onClick: function onClick() {
456
- return alarmRiskOperation(record.type, record.params);
457
- }
458
- }, "\u53D7\u7406") : /*#__PURE__*/React.createElement(_Button, {
459
- disabled: true,
460
- text: true,
461
- type: "primary"
462
- }, "\u5DF2\u53D7\u7406");
463
- } else {
464
- // return <Button text type="primary" onClick={() => alarmRiskOperation(record.type, record)}>受理</Button>
465
- return '';
466
- }
467
- }
468
- }]; // 告警/风险 操作 (受理)
444
+ } // {
445
+ // title: '操作',
446
+ // dataIndex: 'status',
447
+ // key: 'status',
448
+ // width: 64,
449
+ // cell: (status, index, record) => {
450
+ // if (record.type === 'alarm') {
451
+ // return status === 'toDeal' ? (
452
+ // <Button
453
+ // text
454
+ // type="primary"
455
+ // onClick={() => alarmRiskOperation(record.type, record.params)}
456
+ // >
457
+ // 受理
458
+ // </Button>
459
+ // ) : (
460
+ // <Button disabled text type="primary">
461
+ // 已受理
462
+ // </Button>
463
+ // );
464
+ // } else {
465
+ // // return <Button text type="primary" onClick={() => alarmRiskOperation(record.type, record)}>受理</Button>
466
+ // return '';
467
+ // }
468
+ // },
469
+ // },
470
+ ]; // 告警/风险 操作 (受理)
469
471
 
470
472
  function alarmRiskOperation(_x3, _x4) {
471
473
  return _alarmRiskOperation.apply(this, arguments);
@@ -98,6 +98,7 @@
98
98
  }
99
99
  .alarm {
100
100
  margin-top: 12px;
101
+ margin-bottom: 16px;
101
102
  .alarm-title {
102
103
  overflow: hidden;
103
104
  text-overflow: ellipsis;
@@ -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 "6.0.20" === 'string' ? "6.0.20" : null;
57
+ var version = typeof "6.0.21" === 'string' ? "6.0.21" : null;
58
58
  console.info("\u62D3\u6251\u7248\u672C: " + version);
59
59
  /**
60
60
  * 拓扑显示和编辑
@@ -13,8 +13,6 @@ var _table = _interopRequireDefault(require("@alifd/next/lib/table"));
13
13
 
14
14
  var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
15
15
 
16
- var _button = _interopRequireDefault(require("@alifd/next/lib/button"));
17
-
18
16
  var _icon = _interopRequireDefault(require("@alifd/next/lib/icon"));
19
17
 
20
18
  var _asyncToGenerator2 = _interopRequireDefault(require("@babel/runtime/helpers/asyncToGenerator"));
@@ -474,30 +472,33 @@ function ResourceOverview(props) {
474
472
  title: (0, _moment["default"])(value).format('YYYY-MM-DD HH:mm:ss')
475
473
  }, (0, _moment["default"])(value).format('YYYY-MM-DD HH:mm:ss'));
476
474
  }
477
- }, {
478
- title: '操作',
479
- dataIndex: 'status',
480
- key: 'status',
481
- width: 64,
482
- cell: function cell(status, index, record) {
483
- if (record.type === 'alarm') {
484
- return status === 'toDeal' ? /*#__PURE__*/_react["default"].createElement(_button["default"], {
485
- text: true,
486
- type: "primary",
487
- onClick: function onClick() {
488
- return alarmRiskOperation(record.type, record.params);
489
- }
490
- }, "\u53D7\u7406") : /*#__PURE__*/_react["default"].createElement(_button["default"], {
491
- disabled: true,
492
- text: true,
493
- type: "primary"
494
- }, "\u5DF2\u53D7\u7406");
495
- } else {
496
- // return <Button text type="primary" onClick={() => alarmRiskOperation(record.type, record)}>受理</Button>
497
- return '';
498
- }
499
- }
500
- }]; // 告警/风险 操作 (受理)
475
+ } // {
476
+ // title: '操作',
477
+ // dataIndex: 'status',
478
+ // key: 'status',
479
+ // width: 64,
480
+ // cell: (status, index, record) => {
481
+ // if (record.type === 'alarm') {
482
+ // return status === 'toDeal' ? (
483
+ // <Button
484
+ // text
485
+ // type="primary"
486
+ // onClick={() => alarmRiskOperation(record.type, record.params)}
487
+ // >
488
+ // 受理
489
+ // </Button>
490
+ // ) : (
491
+ // <Button disabled text type="primary">
492
+ // 已受理
493
+ // </Button>
494
+ // );
495
+ // } else {
496
+ // // return <Button text type="primary" onClick={() => alarmRiskOperation(record.type, record)}>受理</Button>
497
+ // return '';
498
+ // }
499
+ // },
500
+ // },
501
+ ]; // 告警/风险 操作 (受理)
501
502
 
502
503
  function alarmRiskOperation(_x3, _x4) {
503
504
  return _alarmRiskOperation.apply(this, arguments);
@@ -98,6 +98,7 @@
98
98
  }
99
99
  .alarm {
100
100
  margin-top: 12px;
101
+ margin-bottom: 16px;
101
102
  .alarm-title {
102
103
  overflow: hidden;
103
104
  text-overflow: ellipsis;
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@riil-frontend/component-topology",
3
- "version": "6.0.20",
3
+ "version": "6.0.21",
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@6.0.20/build/index.html",
119
+ "homepage": "https://unpkg.com/@riil-frontend/component-topology@6.0.21/build/index.html",
120
120
  "gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
121
121
  }