@riil-frontend/component-topology 4.0.0-beta.21 → 4.0.0-beta.24
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/1.js +2 -2
- package/build/2.js +1 -1
- package/build/index.css +1 -1
- package/build/index.js +20 -20
- package/es/constants/ResourceInfoDisplay.js +1 -4
- package/es/core/components/AlarmListPanel/components/AlarmListItem.js +5 -4
- package/es/core/components/DisplaySettingDrawer/ResourceDisplay/BasicConfig.js +3 -1
- package/es/core/editor/components/settings/propertyViews/multipleElements/BatchSetNodeIcon.js +21 -0
- package/es/core/editor/components/settings/propertyViews/multipleElements/MultipleElementPropertyView.js +5 -0
- package/es/core/models/AttributeMetricDisplay.js +24 -10
- package/es/core/models/TopoApp.js +1 -1
- package/es/core/models/attributeFormatter/index.js +2 -26
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BaseInfoBlock.js +13 -3
- package/es/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +5 -3
- package/es/topoCenter/components/TopoView.js +2 -1
- package/es/topoCenter/components/viewer/displaySetting/LinkTagCommonRidioGroup.js +23 -0
- package/es/topoCenter/components/viewer/displaySetting/LinkTagCommonRidioGroup.module.scss +23 -0
- package/es/topoCenter/components/viewer/displaySetting/LinkTagV2.js +85 -0
- package/es/topoCenter/models/TopoCenter.js +2 -2
- package/lib/constants/ResourceInfoDisplay.js +1 -4
- package/lib/core/components/AlarmListPanel/components/AlarmListItem.js +5 -4
- package/lib/core/components/DisplaySettingDrawer/ResourceDisplay/BasicConfig.js +3 -1
- package/lib/core/editor/components/settings/propertyViews/multipleElements/BatchSetNodeIcon.js +31 -0
- package/lib/core/editor/components/settings/propertyViews/multipleElements/MultipleElementPropertyView.js +6 -0
- package/lib/core/models/AttributeMetricDisplay.js +24 -10
- package/lib/core/models/TopoApp.js +1 -1
- package/lib/core/models/attributeFormatter/index.js +2 -26
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/BaseInfoBlock.js +13 -3
- package/lib/core/viewer/components/plugins/ResourceDetail/components/ResourceOverview/ResourceOverview.js +5 -3
- package/lib/topoCenter/components/TopoView.js +3 -1
- package/lib/topoCenter/components/viewer/displaySetting/LinkTagCommonRidioGroup.js +34 -0
- package/lib/topoCenter/components/viewer/displaySetting/LinkTagCommonRidioGroup.module.scss +23 -0
- package/lib/topoCenter/components/viewer/displaySetting/LinkTagV2.js +100 -0
- package/lib/topoCenter/models/TopoCenter.js +2 -2
- package/package.json +3 -3
|
@@ -131,10 +131,6 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
|
131
131
|
return (0, _extends2["default"])({}, link, {
|
|
132
132
|
type: 'edge'
|
|
133
133
|
});
|
|
134
|
-
}), linkGroups.map(function (link) {
|
|
135
|
-
return (0, _extends2["default"])({}, link, {
|
|
136
|
-
type: 'edgeGroup'
|
|
137
|
-
});
|
|
138
134
|
}));
|
|
139
135
|
};
|
|
140
136
|
|
|
@@ -258,8 +254,14 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
|
258
254
|
var tagTipOptions = this.topo.options.tagTip;
|
|
259
255
|
var defaultLinkTagConfig = tagTipOptions !== null && tagTipOptions !== void 0 && tagTipOptions.getDefaultLinkTagConfig ? tagTipOptions === null || tagTipOptions === void 0 ? void 0 : tagTipOptions.getDefaultLinkTagConfig(link) : null;
|
|
260
256
|
var defaultLinkTipConfig = tagTipOptions !== null && tagTipOptions !== void 0 && tagTipOptions.getDefaultLinkTipConfig ? tagTipOptions === null || tagTipOptions === void 0 ? void 0 : tagTipOptions.getDefaultLinkTipConfig(link) : null;
|
|
257
|
+
var linkTagConfig = linkTag || defaultLinkTagConfig;
|
|
261
258
|
return {
|
|
262
|
-
tags: getItems(
|
|
259
|
+
tags: getItems(linkTagConfig),
|
|
260
|
+
tagLinkArrow: {
|
|
261
|
+
1: 'both',
|
|
262
|
+
2: 'from',
|
|
263
|
+
3: 'to'
|
|
264
|
+
}[linkTagConfig === null || linkTagConfig === void 0 ? void 0 : linkTagConfig.type] || undefined,
|
|
263
265
|
tips: getItems(linkTip || defaultLinkTipConfig)
|
|
264
266
|
};
|
|
265
267
|
};
|
|
@@ -272,13 +274,14 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
|
272
274
|
|
|
273
275
|
var tagTipConfig = _this2.getLinkTagTipConfig(link);
|
|
274
276
|
|
|
275
|
-
return {
|
|
277
|
+
return (0, _extends2["default"])({
|
|
276
278
|
type: link.type,
|
|
277
279
|
id: link.id,
|
|
278
|
-
ciType: ciType
|
|
280
|
+
ciType: ciType
|
|
281
|
+
}, tagTipConfig, {
|
|
279
282
|
tags: filterByPermission(link, tagTipConfig.tags),
|
|
280
283
|
tips: filterByPermission(link, tagTipConfig.tips)
|
|
281
|
-
};
|
|
284
|
+
});
|
|
282
285
|
});
|
|
283
286
|
}
|
|
284
287
|
/**
|
|
@@ -718,9 +721,10 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
|
718
721
|
;
|
|
719
722
|
|
|
720
723
|
_proto.buildTagsTips = function buildTagsTips() {
|
|
724
|
+
var _this6 = this;
|
|
725
|
+
|
|
721
726
|
var data = this.getData(); // 获取标注、悬浮框配置
|
|
722
727
|
|
|
723
|
-
var formatter = new _attributeFormatter["default"](this.topo);
|
|
724
728
|
var ciConfigs = this.getResourceTagTipConfig();
|
|
725
729
|
var ciTagsAndTips = ciConfigs.map(function (ciConfig) {
|
|
726
730
|
var ciDataItem = (0, _topoData.findItem)(data, 'id', ciConfig.id);
|
|
@@ -737,10 +741,20 @@ var AttributeMetricDisplay = /*#__PURE__*/function () {
|
|
|
737
741
|
var ciData = (0, _extends2["default"])({}, (0, _topoData.findItem)(data, 'id', ciConfig.id), {
|
|
738
742
|
ciType: ciConfig.ciType
|
|
739
743
|
});
|
|
744
|
+
var formatter = new _attributeFormatter["default"](_this6.topo);
|
|
745
|
+
var tags = formatter.formatAttrs(ciConfig.tags, ciData); // 链路标注箭头
|
|
746
|
+
|
|
747
|
+
if (ciConfig.type === 'edge') {
|
|
748
|
+
tags = {
|
|
749
|
+
data: tags,
|
|
750
|
+
linkArrow: ciConfig.tagLinkArrow
|
|
751
|
+
};
|
|
752
|
+
}
|
|
753
|
+
|
|
740
754
|
return {
|
|
741
755
|
type: ciConfig.type,
|
|
742
756
|
id: ciConfig.id,
|
|
743
|
-
tags:
|
|
757
|
+
tags: tags,
|
|
744
758
|
tips: formatter.formatAttrs(ciConfig.tips, ciData)
|
|
745
759
|
};
|
|
746
760
|
});
|
|
@@ -48,7 +48,7 @@ var _PluginManager = _interopRequireDefault(require("./PluginManager"));
|
|
|
48
48
|
var _topoFactory = _interopRequireDefault(require("./topoFactory"));
|
|
49
49
|
|
|
50
50
|
// eslint-disable-next-line no-undef
|
|
51
|
-
var version = typeof "4.0.0-beta.
|
|
51
|
+
var version = typeof "4.0.0-beta.24" === 'string' ? "4.0.0-beta.24" : null;
|
|
52
52
|
console.info("\u62D3\u6251\u7248\u672C: " + version);
|
|
53
53
|
/**
|
|
54
54
|
* 拓扑显示和编辑
|
|
@@ -6,8 +6,6 @@ exports.__esModule = true;
|
|
|
6
6
|
exports["default"] = void 0;
|
|
7
7
|
exports.formatMetric = formatMetric;
|
|
8
8
|
|
|
9
|
-
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
10
|
-
|
|
11
9
|
var _rlog = _interopRequireDefault(require("@riil-frontend/component-topology-utils/es/rlog"));
|
|
12
10
|
|
|
13
11
|
var _utils = require("@riil-frontend/utils");
|
|
@@ -37,28 +35,6 @@ function formatMetric(val, metricInfo) {
|
|
|
37
35
|
return "" + val;
|
|
38
36
|
}
|
|
39
37
|
}
|
|
40
|
-
|
|
41
|
-
function addLinkMetricUnderlineArrow(metricCode) {
|
|
42
|
-
var map = {
|
|
43
|
-
// 总流速和总带宽利用率:双向箭头
|
|
44
|
-
'interface_totalbps': 'both',
|
|
45
|
-
'bandwidth_utilization': 'both',
|
|
46
|
-
// 发送速率和发送带宽利用率:背向取值端口的箭头 指向目的
|
|
47
|
-
'out_rate': 'to',
|
|
48
|
-
'out_bandwidth_utilization': 'to',
|
|
49
|
-
// 接收速率和接收带宽利用率:指向取值端口的箭头 指向源
|
|
50
|
-
'in_rate': 'from',
|
|
51
|
-
'in_bandwidth_utilization': 'from'
|
|
52
|
-
};
|
|
53
|
-
|
|
54
|
-
if (map[metricCode]) {
|
|
55
|
-
return {
|
|
56
|
-
underlineArrow: map[metricCode]
|
|
57
|
-
};
|
|
58
|
-
}
|
|
59
|
-
|
|
60
|
-
return {};
|
|
61
|
-
}
|
|
62
38
|
/**
|
|
63
39
|
* 标注值格式化
|
|
64
40
|
*/
|
|
@@ -100,7 +76,7 @@ var AttributeFormatter = /*#__PURE__*/function () {
|
|
|
100
76
|
fieldValue = ciData[attrType + "Map"][fieldCode + "_object"].displayName;
|
|
101
77
|
}
|
|
102
78
|
|
|
103
|
-
return
|
|
79
|
+
return {
|
|
104
80
|
type: item.type,
|
|
105
81
|
code: item.code,
|
|
106
82
|
// 属性code
|
|
@@ -109,7 +85,7 @@ var AttributeFormatter = /*#__PURE__*/function () {
|
|
|
109
85
|
value: formatMetric(fieldValue, fieldMeta),
|
|
110
86
|
// 属性值
|
|
111
87
|
originValue: fieldValue
|
|
112
|
-
}
|
|
88
|
+
};
|
|
113
89
|
};
|
|
114
90
|
|
|
115
91
|
_proto.attributeTransform = function attributeTransform(item, ciData) {
|
|
@@ -22,18 +22,28 @@ function BaseInfoBlock(props) {
|
|
|
22
22
|
ciTypeMeta = props.ciTypeMeta,
|
|
23
23
|
headerExtra = props.headerExtra,
|
|
24
24
|
renderContent = props.renderContent,
|
|
25
|
-
baseInfo = props.baseInfo
|
|
25
|
+
baseInfo = props.baseInfo,
|
|
26
|
+
isAppTopo = props.isAppTopo;
|
|
26
27
|
var id = data.id,
|
|
27
28
|
ciType = data.ciType,
|
|
28
29
|
type = data.type,
|
|
29
30
|
name = data.name;
|
|
31
|
+
console.log('111 data', data);
|
|
30
32
|
return /*#__PURE__*/_react["default"].createElement(_BlockBox["default"], {
|
|
31
33
|
headerTitle: "\u57FA\u672C\u4FE1\u606F",
|
|
32
|
-
headerExtra:
|
|
34
|
+
headerExtra: /*#__PURE__*/_react["default"].createElement("div", {
|
|
35
|
+
style: {
|
|
36
|
+
display: 'flex'
|
|
37
|
+
}
|
|
38
|
+
}, !isAppTopo && ciType === 'network_link' ? /*#__PURE__*/_react["default"].createElement("div", {
|
|
39
|
+
style: {
|
|
40
|
+
lineHeight: '28px'
|
|
41
|
+
}
|
|
42
|
+
}, /*#__PURE__*/_react["default"].createElement(_SingleResourceStrategyLink["default"], {
|
|
33
43
|
id: id,
|
|
34
44
|
ciType: ciType,
|
|
35
45
|
name: name
|
|
36
|
-
})
|
|
46
|
+
})) : '', headerExtra ? headerExtra(props) : '')
|
|
37
47
|
}, loading ? /*#__PURE__*/_react["default"].createElement(_loading["default"], {
|
|
38
48
|
style: {
|
|
39
49
|
width: '100%',
|
|
@@ -79,7 +79,7 @@ function formatUrl(url) {
|
|
|
79
79
|
|
|
80
80
|
|
|
81
81
|
function ResourceOverview(props) {
|
|
82
|
-
var _viewerProps$resource, _data$attributes
|
|
82
|
+
var _viewerProps$resource, _data$attributes;
|
|
83
83
|
|
|
84
84
|
var topo = props.topo,
|
|
85
85
|
id = props.id,
|
|
@@ -425,7 +425,7 @@ function ResourceOverview(props) {
|
|
|
425
425
|
icon: 'Overall_risk_full',
|
|
426
426
|
className: 'risk-icon',
|
|
427
427
|
title: "" + item.ciName + item.itemName,
|
|
428
|
-
link: "/default/inspectionTaskList/inspectionReport?title=" + item.ciName + "&reportId=" + item.executeId + "&reportTime=" + item.executeTime + "&reportType=" + item.viewType + "&reportName=" + item.
|
|
428
|
+
link: "/default/inspectionTaskList/inspectionReport?title=" + item.ciName + "&reportId=" + item.executeId + "&reportTime=" + item.executeTime + "&reportType=" + item.viewType + "&reportName=" + item.reportName,
|
|
429
429
|
time: item.firstFoundTime
|
|
430
430
|
};
|
|
431
431
|
}); // console.log('告警和风险', alarmList, riskList);
|
|
@@ -540,7 +540,8 @@ function ResourceOverview(props) {
|
|
|
540
540
|
id: id,
|
|
541
541
|
ciType: ciType,
|
|
542
542
|
type: type,
|
|
543
|
-
name:
|
|
543
|
+
// name: '123'
|
|
544
|
+
name: props.name
|
|
544
545
|
}; // 基本信息设置改变
|
|
545
546
|
|
|
546
547
|
function baseInfoColChange(_x5) {
|
|
@@ -839,6 +840,7 @@ function ResourceOverview(props) {
|
|
|
839
840
|
data: elementData,
|
|
840
841
|
ciTypeMeta: ciTypeMeta,
|
|
841
842
|
baseInfo: baseInfo,
|
|
843
|
+
isAppTopo: isAppTopo,
|
|
842
844
|
headerExtra: function headerExtra(p) {
|
|
843
845
|
var _resourceOverviewProp3;
|
|
844
846
|
|
|
@@ -41,6 +41,8 @@ var _ViewerTools = _interopRequireDefault(require("./viewer/titlebar/ViewerTools
|
|
|
41
41
|
|
|
42
42
|
var _useEdgeFlow = _interopRequireDefault(require("../hooks/viewer/useEdgeFlow"));
|
|
43
43
|
|
|
44
|
+
var _LinkTagV = _interopRequireDefault(require("./viewer/displaySetting/LinkTagV2"));
|
|
45
|
+
|
|
44
46
|
var _excluded = ["topo", "titleBar", "onEnterEdit", "nodataPage", "notfoundPageProps", "noPermissionPageProps"];
|
|
45
47
|
|
|
46
48
|
function _getRequireWildcardCache(nodeInterop) { if (typeof WeakMap !== "function") return null; var cacheBabelInterop = new WeakMap(); var cacheNodeInterop = new WeakMap(); return (_getRequireWildcardCache = function _getRequireWildcardCache(nodeInterop) { return nodeInterop ? cacheNodeInterop : cacheBabelInterop; })(nodeInterop); }
|
|
@@ -139,7 +141,7 @@ function NetworkTopologyCore(props) {
|
|
|
139
141
|
showLinkConfig: true,
|
|
140
142
|
// 是否显示链路流动效果配置
|
|
141
143
|
linkTagConfig: function linkTagConfig(params) {
|
|
142
|
-
return /*#__PURE__*/_react["default"].createElement(
|
|
144
|
+
return /*#__PURE__*/_react["default"].createElement(_LinkTagV["default"], params);
|
|
143
145
|
},
|
|
144
146
|
linkTipConfig: function linkTipConfig(params) {
|
|
145
147
|
return /*#__PURE__*/_react["default"].createElement(_LinkTip["default"], params);
|
|
@@ -0,0 +1,34 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports["default"] = LinkTagCommonRidioGroup;
|
|
7
|
+
|
|
8
|
+
var _radio = _interopRequireDefault(require("@alifd/next/lib/radio"));
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _LinkTagCommonRidioGroupModule = _interopRequireDefault(require("./LinkTagCommonRidioGroup.module.scss"));
|
|
13
|
+
|
|
14
|
+
function LinkTagCommonRidioGroup(props) {
|
|
15
|
+
var value = props.value,
|
|
16
|
+
dataSource = props.dataSource,
|
|
17
|
+
limit = props.limit,
|
|
18
|
+
onChange = props.onChange;
|
|
19
|
+
return /*#__PURE__*/_react["default"].createElement("div", {
|
|
20
|
+
className: _LinkTagCommonRidioGroupModule["default"].contaienr
|
|
21
|
+
}, /*#__PURE__*/_react["default"].createElement("div", {
|
|
22
|
+
className: _LinkTagCommonRidioGroupModule["default"].checkboxGroupWrapper
|
|
23
|
+
}, /*#__PURE__*/_react["default"].createElement(_radio["default"].Group, {
|
|
24
|
+
value: typeof value === 'string' ? value : undefined,
|
|
25
|
+
itemDirection: "ver",
|
|
26
|
+
onChange: onChange
|
|
27
|
+
}, dataSource.map(function (item) {
|
|
28
|
+
return /*#__PURE__*/_react["default"].createElement(_radio["default"], {
|
|
29
|
+
value: item.value
|
|
30
|
+
}, item.label);
|
|
31
|
+
}))));
|
|
32
|
+
}
|
|
33
|
+
|
|
34
|
+
;
|
|
@@ -0,0 +1,23 @@
|
|
|
1
|
+
@import "@alifd/next/variables";
|
|
2
|
+
|
|
3
|
+
.contaienr {
|
|
4
|
+
padding: 16px 12px;
|
|
5
|
+
background: #F2F7FD;
|
|
6
|
+
border-radius: 4px;
|
|
7
|
+
|
|
8
|
+
.checkboxGroupWrapper {
|
|
9
|
+
margin: -8px -8px -8px 0;
|
|
10
|
+
|
|
11
|
+
:global {
|
|
12
|
+
.#{$css-prefix}checkbox-group.next-checkbox-group-hoz {
|
|
13
|
+
display: flex;
|
|
14
|
+
flex-flow: row wrap;
|
|
15
|
+
|
|
16
|
+
.#{$css-prefix}checkbox-wrapper {
|
|
17
|
+
margin-left: 8px;
|
|
18
|
+
margin-right: 8px;
|
|
19
|
+
}
|
|
20
|
+
}
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
}
|
|
@@ -0,0 +1,100 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
|
|
3
|
+
var _interopRequireDefault = require("@babel/runtime/helpers/interopRequireDefault");
|
|
4
|
+
|
|
5
|
+
exports.__esModule = true;
|
|
6
|
+
exports["default"] = void 0;
|
|
7
|
+
|
|
8
|
+
var _extends2 = _interopRequireDefault(require("@babel/runtime/helpers/extends"));
|
|
9
|
+
|
|
10
|
+
var _react = _interopRequireDefault(require("react"));
|
|
11
|
+
|
|
12
|
+
var _ResourceInfoDisplay = require("../../../../constants/ResourceInfoDisplay");
|
|
13
|
+
|
|
14
|
+
var _BasicConfig = _interopRequireDefault(require("../../../../core/components/DisplaySettingDrawer/ResourceDisplay/BasicConfig"));
|
|
15
|
+
|
|
16
|
+
var _Setting = _interopRequireDefault(require("../../../../core/components/ResourceViewAttributeSetting/Setting"));
|
|
17
|
+
|
|
18
|
+
var _LinkTagCommonRidioGroup = _interopRequireDefault(require("./LinkTagCommonRidioGroup"));
|
|
19
|
+
|
|
20
|
+
// 默认中可配置内容包括总速率、带宽利用率、发送速率、发送带宽利用率、接收速率、接收带宽利用率
|
|
21
|
+
var CommonOptions = [{
|
|
22
|
+
value: '1',
|
|
23
|
+
label: '总流速、带宽利用率',
|
|
24
|
+
options: {
|
|
25
|
+
data: ['metric:interface_totalbps', 'metric:bandwidth_utilization']
|
|
26
|
+
}
|
|
27
|
+
}, {
|
|
28
|
+
value: '2',
|
|
29
|
+
label: '发送速率、发送带宽利用率',
|
|
30
|
+
options: {
|
|
31
|
+
data: ['metric:out_rate', 'metric:out_bandwidth_utilization']
|
|
32
|
+
}
|
|
33
|
+
}, {
|
|
34
|
+
value: '3',
|
|
35
|
+
label: '接收速率、接收带宽利用率',
|
|
36
|
+
options: {
|
|
37
|
+
data: ['metric:in_rate', 'metric:in_bandwidth_utilization']
|
|
38
|
+
}
|
|
39
|
+
}];
|
|
40
|
+
|
|
41
|
+
var buildConfig = function buildConfig(item) {
|
|
42
|
+
return {
|
|
43
|
+
type: item.split(':')[0],
|
|
44
|
+
code: item.split(':')[1]
|
|
45
|
+
};
|
|
46
|
+
};
|
|
47
|
+
/**
|
|
48
|
+
* 资源标注配置
|
|
49
|
+
* @param {*} props
|
|
50
|
+
* @returns
|
|
51
|
+
*/
|
|
52
|
+
|
|
53
|
+
|
|
54
|
+
function LinkTagV2(props, ref) {
|
|
55
|
+
var value = props.value,
|
|
56
|
+
onChange = props.onChange;
|
|
57
|
+
|
|
58
|
+
var handleChange = function handleChange(newValue) {
|
|
59
|
+
console.error(111, newValue);
|
|
60
|
+
|
|
61
|
+
if (!newValue.isCustom) {
|
|
62
|
+
var _CommonOptions$find;
|
|
63
|
+
|
|
64
|
+
var type = newValue.data;
|
|
65
|
+
var config = ((_CommonOptions$find = CommonOptions.find(function (item) {
|
|
66
|
+
return item.value === type;
|
|
67
|
+
})) === null || _CommonOptions$find === void 0 ? void 0 : _CommonOptions$find.options) || {
|
|
68
|
+
data: []
|
|
69
|
+
};
|
|
70
|
+
onChange((0, _extends2["default"])({}, newValue, config, {
|
|
71
|
+
data: config.data.map(buildConfig),
|
|
72
|
+
type: type
|
|
73
|
+
}));
|
|
74
|
+
} else {
|
|
75
|
+
onChange(newValue);
|
|
76
|
+
}
|
|
77
|
+
};
|
|
78
|
+
|
|
79
|
+
return /*#__PURE__*/_react["default"].createElement(_BasicConfig["default"], (0, _extends2["default"])({
|
|
80
|
+
ref: ref
|
|
81
|
+
}, props, {
|
|
82
|
+
value: value ? (0, _extends2["default"])({}, value, {
|
|
83
|
+
data: value.type
|
|
84
|
+
}) : value,
|
|
85
|
+
limit: 1,
|
|
86
|
+
elementType: "link",
|
|
87
|
+
showType: "tag",
|
|
88
|
+
commonOptions: CommonOptions,
|
|
89
|
+
defaultCommonConfig: _ResourceInfoDisplay.DEFAULT_LINK_TAG_COMMON_CONFIG,
|
|
90
|
+
commonSelectWidget: _LinkTagCommonRidioGroup["default"],
|
|
91
|
+
customSettingDrawer: function customSettingDrawer(params) {
|
|
92
|
+
return /*#__PURE__*/_react["default"].createElement(_Setting["default"], params);
|
|
93
|
+
},
|
|
94
|
+
onChange: handleChange
|
|
95
|
+
}));
|
|
96
|
+
}
|
|
97
|
+
|
|
98
|
+
var _default = /*#__PURE__*/_react["default"].forwardRef(LinkTagV2);
|
|
99
|
+
|
|
100
|
+
exports["default"] = _default;
|
|
@@ -47,8 +47,8 @@ var TopoCenter = /*#__PURE__*/function (_TopoApp) {
|
|
|
47
47
|
},
|
|
48
48
|
getDefaultLinkTipConfig: function getDefaultLinkTipConfig() {
|
|
49
49
|
return _ResourceInfoDisplay.DEFAULT_TIP_COMMON_CONFIG;
|
|
50
|
-
},
|
|
51
|
-
|
|
50
|
+
} // ExtElementTagTipBuilder: LinkTagsTipsBuilder,
|
|
51
|
+
|
|
52
52
|
},
|
|
53
53
|
onSwitchToEditModeBegin: function () {
|
|
54
54
|
var _onSwitchToEditModeBegin = (0, _asyncToGenerator2["default"])( /*#__PURE__*/_regenerator["default"].mark(function _callee(topo) {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@riil-frontend/component-topology",
|
|
3
|
-
"version": "4.0.0-beta.
|
|
3
|
+
"version": "4.0.0-beta.24",
|
|
4
4
|
"description": "拓扑",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"start": "build-scripts start",
|
|
@@ -42,7 +42,7 @@
|
|
|
42
42
|
"@ahooksjs/use-tree-plugin": "^0.2.1",
|
|
43
43
|
"@alifd/biz-anchor": "^1.1.7",
|
|
44
44
|
"@ice/store": "^1.4.2",
|
|
45
|
-
"@riil-frontend/component-topo-icon-select": "^1.0.
|
|
45
|
+
"@riil-frontend/component-topo-icon-select": "^1.0.17",
|
|
46
46
|
"@riil-frontend/component-topology-utils": "^2.1.0",
|
|
47
47
|
"bizcharts": "^4.1.19",
|
|
48
48
|
"classnames": "^2.2.3",
|
|
@@ -114,6 +114,6 @@
|
|
|
114
114
|
"access": "public"
|
|
115
115
|
},
|
|
116
116
|
"license": "MIT",
|
|
117
|
-
"homepage": "https://unpkg.com/@riil-frontend/component-topology@4.0.0-beta.
|
|
117
|
+
"homepage": "https://unpkg.com/@riil-frontend/component-topology@4.0.0-beta.24/build/index.html",
|
|
118
118
|
"gitHead": "2da19ffccbb7ca60a8acf396e39f542c68bb33f5"
|
|
119
119
|
}
|