coolcare-lite-scada-component 4.1.1 → 4.1.2
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/es/components/BoxShadowPicker/index.less.d.ts +9 -9
- package/es/components/ColorPicker/util.js +4 -4
- package/es/components/DialogHistory/index.js +26 -7
- package/es/components/Icon/index.js +1 -1
- package/es/components/IconFont/index.js +1 -1
- package/es/components/ImageUploader/index.js +7 -15
- package/es/constant.js +2 -2
- package/es/element/BorderBox/util/typings.d.ts +9 -9
- package/es/element/Decoration/util/typings.d.ts +9 -9
- package/es/element/EleFan/Component.js +1 -1
- package/es/element/EleState/index.js +1 -1
- package/es/element/PipeNodes/NodeBL/index.js +1 -1
- package/es/element/PipeNodes/NodeBR/index.js +1 -1
- package/es/element/PipeNodes/NodeBottom/index.js +1 -1
- package/es/element/PipeNodes/NodeCenter/index.js +1 -1
- package/es/element/PipeNodes/NodeHorizontal/index.js +1 -1
- package/es/element/PipeNodes/NodeLeft/index.js +1 -1
- package/es/element/PipeNodes/NodeRight/index.js +1 -1
- package/es/element/PipeNodes/NodeTL/index.js +1 -1
- package/es/element/PipeNodes/NodeTR/index.js +1 -1
- package/es/element/PipeNodes/NodeTop/index.js +1 -1
- package/es/element/PipeNodes/NodeVertical/index.js +1 -1
- package/es/pages/document.ejs +1 -1
- package/es/pages/editor/PanelLeft/BasicShapeList/listData.js +8 -8
- package/es/pages/editor/PanelLeft/BorderBoxEleList/index.less.d.ts +7 -7
- package/es/pages/editor/PanelLeft/DecorationEleList/index.less.d.ts +7 -7
- package/es/pages/editor/PanelLeft/GroupManageDialog/index.js +4 -4
- package/es/pages/editor/PanelLeft/MetaEleList/listData.js +11 -11
- package/es/pages/editor/PanelLeft/PipeEleList/listData.js +11 -11
- package/es/pages/editor/PanelLeft/PointCardEleList/listData.js +6 -6
- package/es/pages/editor/PanelLeft/RecommendEleList/listData.js +3 -3
- package/es/pages/editor/PanelLeft/index.js +3 -3
- package/es/pages/editor/PanelRight/index.less.d.ts +7 -7
- package/es/services/common/Uploader.js +3 -2
- package/es/services/common/typings.d.ts +15 -15
- package/es/services/master/typings.d.ts +362 -362
- package/es/services/product/typings.d.ts +1045 -1045
- package/es/services/project/typings.d.ts +1609 -1609
- package/es/services/request.js +8 -9
- package/es/shims.x6.d.ts +15 -15
- package/es/utils/cssStyle.js +4 -4
- package/es/utils/decomposeMatrix.js +5 -5
- package/es/utils/events.js +3 -3
- package/es/utils/index.js +34 -34
- package/package.json +1 -1
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
// This file is automatically generated.
|
|
2
|
-
// Please do not change this file!
|
|
3
|
-
interface CssExports {
|
|
4
|
-
'box-shadow-picker-wrap': string;
|
|
5
|
-
'color-picker': string;
|
|
6
|
-
'input-label': string;
|
|
7
|
-
}
|
|
8
|
-
export const cssExports: CssExports;
|
|
9
|
-
export default cssExports;
|
|
1
|
+
// This file is automatically generated.
|
|
2
|
+
// Please do not change this file!
|
|
3
|
+
interface CssExports {
|
|
4
|
+
'box-shadow-picker-wrap': string;
|
|
5
|
+
'color-picker': string;
|
|
6
|
+
'input-label': string;
|
|
7
|
+
}
|
|
8
|
+
export const cssExports: CssExports;
|
|
9
|
+
export default cssExports;
|
|
@@ -245,7 +245,7 @@ var DialogPointHistory = function DialogPointHistory(_ref) {
|
|
|
245
245
|
/** 获取点位历史数据 */
|
|
246
246
|
var fetchPointHistory = useCallback(/*#__PURE__*/function () {
|
|
247
247
|
var _ref3 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee2(idList, indicatorNo, ranges, interval) {
|
|
248
|
-
var diff, fun, res, data, series, yAxisData, _t2;
|
|
248
|
+
var diff, fun, res, data, _chart$current2, _chart$current2$getEc, _chart$current2$getEc2, series, yAxisData, _t2;
|
|
249
249
|
return _regenerator().w(function (_context2) {
|
|
250
250
|
while (1) switch (_context2.p = _context2.n) {
|
|
251
251
|
case 0:
|
|
@@ -409,7 +409,7 @@ var DialogPointHistory = function DialogPointHistory(_ref) {
|
|
|
409
409
|
}
|
|
410
410
|
});
|
|
411
411
|
});
|
|
412
|
-
chart.current.getEchartsInstance().resize();
|
|
412
|
+
(_chart$current2 = chart.current) === null || _chart$current2 === void 0 ? void 0 : (_chart$current2$getEc = _chart$current2.getEchartsInstance) === null || _chart$current2$getEc === void 0 ? void 0 : (_chart$current2$getEc2 = _chart$current2$getEc.call(_chart$current2)) === null || _chart$current2$getEc2 === void 0 ? void 0 : _chart$current2$getEc2.resize();
|
|
413
413
|
// 应用图形配置
|
|
414
414
|
setChartOptions({
|
|
415
415
|
color: ['#2297E8', '#48CE38', '#F8D156', '#FD9827', '#9764DC', '#1FCA6A'],
|
|
@@ -430,6 +430,23 @@ var DialogPointHistory = function DialogPointHistory(_ref) {
|
|
|
430
430
|
type: 'inside',
|
|
431
431
|
xAxisIndex: 0,
|
|
432
432
|
filterMode: 'empty'
|
|
433
|
+
}, {
|
|
434
|
+
id: 'history-y-axis-zoom',
|
|
435
|
+
type: 'slider',
|
|
436
|
+
orient: 'vertical',
|
|
437
|
+
yAxisIndex: yAxisData.map(function (_, index) {
|
|
438
|
+
return index;
|
|
439
|
+
}),
|
|
440
|
+
filterMode: 'none',
|
|
441
|
+
right: 8,
|
|
442
|
+
top: 50,
|
|
443
|
+
bottom: 80,
|
|
444
|
+
width: 18,
|
|
445
|
+
start: 0,
|
|
446
|
+
end: 100,
|
|
447
|
+
showDataShadow: false,
|
|
448
|
+
showDetail: false,
|
|
449
|
+
brushSelect: false
|
|
433
450
|
}],
|
|
434
451
|
legend: {
|
|
435
452
|
show: true,
|
|
@@ -650,17 +667,19 @@ var DialogPointHistory = function DialogPointHistory(_ref) {
|
|
|
650
667
|
height: '500px'
|
|
651
668
|
},
|
|
652
669
|
onEvents: {
|
|
653
|
-
datazoom: function datazoom(
|
|
654
|
-
var _chart$
|
|
670
|
+
datazoom: function datazoom() {
|
|
671
|
+
var _chart$current3, _chart$current3$getEc, _option$dataZoom, _xZoom$start, _xZoom$end;
|
|
655
672
|
// 获取当前 echarts 实例
|
|
656
|
-
var myChart = chart === null || chart === void 0 ? void 0 : (_chart$
|
|
673
|
+
var myChart = chart === null || chart === void 0 ? void 0 : (_chart$current3 = chart.current) === null || _chart$current3 === void 0 ? void 0 : (_chart$current3$getEc = _chart$current3.getEchartsInstance) === null || _chart$current3$getEc === void 0 ? void 0 : _chart$current3$getEc.call(_chart$current3);
|
|
657
674
|
if (!myChart) return;
|
|
658
675
|
|
|
659
676
|
// 获取当前配置
|
|
660
677
|
var option = myChart.getOption();
|
|
661
678
|
// 获取缩放范围
|
|
662
|
-
|
|
663
|
-
var
|
|
679
|
+
// Y zoom also emits this event; statistics use the first X zoom control.
|
|
680
|
+
var xZoom = (_option$dataZoom = option.dataZoom) === null || _option$dataZoom === void 0 ? void 0 : _option$dataZoom[0];
|
|
681
|
+
var startValue = (_xZoom$start = xZoom === null || xZoom === void 0 ? void 0 : xZoom.start) !== null && _xZoom$start !== void 0 ? _xZoom$start : 0;
|
|
682
|
+
var endValue = (_xZoom$end = xZoom === null || xZoom === void 0 ? void 0 : xZoom.end) !== null && _xZoom$end !== void 0 ? _xZoom$end : 100;
|
|
664
683
|
if (startValue === 0 && endValue === 100) {
|
|
665
684
|
setDataZoom(false);
|
|
666
685
|
return;
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { createFromIconfontCN } from '@ant-design/icons';
|
|
2
2
|
var MyIcon = createFromIconfontCN({
|
|
3
|
-
scriptUrl: '
|
|
3
|
+
scriptUrl: 'https://cdn-asset.oss-cn-shanghai.aliyuncs.com/iconfont/scada.js' // 在 iconfont.cn 上生成
|
|
4
4
|
});
|
|
5
5
|
export default MyIcon;
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import { createFromIconfontCN } from '@ant-design/icons';
|
|
2
2
|
var IconFont = createFromIconfontCN({
|
|
3
3
|
// scriptUrl: '//at.alicdn.com/t/c/font_3235821_qypojfizzen.js',
|
|
4
|
-
scriptUrl: '
|
|
4
|
+
scriptUrl: 'https://coolcare-lite-assets.oss-cn-shanghai.aliyuncs.com/pc-common/iconfont/iconfont.js'
|
|
5
5
|
});
|
|
6
6
|
export default IconFont;
|
|
@@ -19,12 +19,6 @@ import { useState } from 'react';
|
|
|
19
19
|
import { Button, Upload, message, notification } from 'antd';
|
|
20
20
|
import { UploadOutlined, LoadingOutlined } from '@ant-design/icons';
|
|
21
21
|
import { Upload as uploadFile } from "../../services/common/Uploader";
|
|
22
|
-
var MINIO_INTERNAL_URL = 'http://minio:9000';
|
|
23
|
-
|
|
24
|
-
/** 只保存 OSS 路径,避免将容器内部地址写入图片配置。 */
|
|
25
|
-
var normalizeUploadUrl = function normalizeUploadUrl(url) {
|
|
26
|
-
return url.startsWith(MINIO_INTERNAL_URL) ? url.slice(MINIO_INTERNAL_URL.length) : url;
|
|
27
|
-
};
|
|
28
22
|
/** 计算图片大小 */
|
|
29
23
|
var calculateSize = function calculateSize(file) {
|
|
30
24
|
return new Promise(function (resolve) {
|
|
@@ -87,8 +81,7 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
87
81
|
duration: 10,
|
|
88
82
|
description: /*#__PURE__*/React.createElement("div", null, "\u6587\u4EF6\u5927\u5C0F\u4E0D\u80FD\u8D85\u8FC7 ", size, "M, \u5EFA\u8BAE\u538B\u7F29\u540E\u518D\u4E0A\u4F20\u3002", ' ', /*#__PURE__*/React.createElement("a", {
|
|
89
83
|
target: "_blank",
|
|
90
|
-
href: "https://squoosh.app/"
|
|
91
|
-
rel: "noreferrer"
|
|
84
|
+
href: "https://squoosh.app/"
|
|
92
85
|
}, "\u56FE\u7247\u5728\u7EBF\u538B\u7F29"))
|
|
93
86
|
});
|
|
94
87
|
}
|
|
@@ -96,7 +89,7 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
96
89
|
};
|
|
97
90
|
var customUploadRequest = /*#__PURE__*/function () {
|
|
98
91
|
var _ref2 = _asyncToGenerator(/*#__PURE__*/_regenerator().m(function _callee(options) {
|
|
99
|
-
var onSuccess, onError, file, size, _yield$uploadFile,
|
|
92
|
+
var onSuccess, onError, file, size, _yield$uploadFile, success, data, _t;
|
|
100
93
|
return _regenerator().w(function (_context) {
|
|
101
94
|
while (1) switch (_context.p = _context.n) {
|
|
102
95
|
case 0:
|
|
@@ -115,20 +108,19 @@ var ImageUploader = function ImageUploader(_ref) {
|
|
|
115
108
|
});
|
|
116
109
|
case 3:
|
|
117
110
|
_yield$uploadFile = _context.v;
|
|
118
|
-
|
|
111
|
+
success = _yield$uploadFile.success;
|
|
119
112
|
data = _yield$uploadFile.data;
|
|
120
|
-
if (
|
|
121
|
-
url = normalizeUploadUrl(data);
|
|
113
|
+
if (success && (data === null || data === void 0 ? void 0 : data.length)) {
|
|
122
114
|
onChange === null || onChange === void 0 ? void 0 : onChange({
|
|
123
|
-
url:
|
|
115
|
+
url: data[0],
|
|
124
116
|
size: size,
|
|
125
117
|
name: file.name
|
|
126
118
|
});
|
|
127
119
|
// @ts-ignore
|
|
128
120
|
onSuccess({}, // @ts-ignore
|
|
129
121
|
_objectSpread(_objectSpread({}, options.file), {}, {
|
|
130
|
-
uid:
|
|
131
|
-
url:
|
|
122
|
+
uid: data[0],
|
|
123
|
+
url: data[0]
|
|
132
124
|
}));
|
|
133
125
|
} else {
|
|
134
126
|
onError === null || onError === void 0 ? void 0 : onError(new Error('文件上传失败'));
|
package/es/constant.js
CHANGED
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type BorderColors = [string, string];
|
|
2
|
-
|
|
3
|
-
export type ExtraData = {
|
|
4
|
-
colors: BorderColors;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
export interface BorderBoxProps<T> {
|
|
8
|
-
node?: T;
|
|
9
|
-
}
|
|
1
|
+
export type BorderColors = [string, string];
|
|
2
|
+
|
|
3
|
+
export type ExtraData = {
|
|
4
|
+
colors: BorderColors;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export interface BorderBoxProps<T> {
|
|
8
|
+
node?: T;
|
|
9
|
+
}
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
export type DecorationColors = [string, string];
|
|
2
|
-
|
|
3
|
-
export type ExtraData = {
|
|
4
|
-
colors: DecorationColors;
|
|
5
|
-
};
|
|
6
|
-
|
|
7
|
-
export type DecorationProps<T> = {
|
|
8
|
-
node?: T;
|
|
9
|
-
};
|
|
1
|
+
export type DecorationColors = [string, string];
|
|
2
|
+
|
|
3
|
+
export type ExtraData = {
|
|
4
|
+
colors: DecorationColors;
|
|
5
|
+
};
|
|
6
|
+
|
|
7
|
+
export type DecorationProps<T> = {
|
|
8
|
+
node?: T;
|
|
9
|
+
};
|
|
@@ -98,7 +98,7 @@ var EleFanComponent = function EleFanComponent(_ref) {
|
|
|
98
98
|
className: styles.wrap
|
|
99
99
|
}, /*#__PURE__*/React.createElement("img", {
|
|
100
100
|
className: "".concat(styles['fan-img'], " ").concat(fanIsOn ? styles.on : ''),
|
|
101
|
-
src: "
|
|
101
|
+
src: "https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/fan.png"
|
|
102
102
|
})));
|
|
103
103
|
};
|
|
104
104
|
export default /*#__PURE__*/memo(EleFanComponent, reactShapeNodeAreEqual);
|
|
@@ -89,7 +89,7 @@ export var defaultConfig = {
|
|
|
89
89
|
refWidth: '60%',
|
|
90
90
|
refHeight: '60%',
|
|
91
91
|
fill: 'red',
|
|
92
|
-
xlinkHref: '
|
|
92
|
+
xlinkHref: 'https://utopia1994.oss-cn-shanghai.aliyuncs.com/img-bed/202111021014940.svg'
|
|
93
93
|
},
|
|
94
94
|
label: {
|
|
95
95
|
text: '温度',
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/be42df157707426fb53360693eae8094.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -43,7 +43,7 @@ export var defaultConfig = {
|
|
|
43
43
|
}],
|
|
44
44
|
attrs: {
|
|
45
45
|
body: {
|
|
46
|
-
xlinkHref: '
|
|
46
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/7cdce2491ce3468aae034f531bf149d5.svg',
|
|
47
47
|
refWidth: '100%',
|
|
48
48
|
refHeight: '100%'
|
|
49
49
|
}
|
|
@@ -43,7 +43,7 @@ export var defaultConfig = {
|
|
|
43
43
|
}],
|
|
44
44
|
attrs: {
|
|
45
45
|
body: {
|
|
46
|
-
xlinkHref: '
|
|
46
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/2358402046b8439b9bee49814e5d94e3.svg',
|
|
47
47
|
refWidth: '100%',
|
|
48
48
|
refHeight: '100%'
|
|
49
49
|
}
|
|
@@ -43,7 +43,7 @@ export var defaultConfig = {
|
|
|
43
43
|
}],
|
|
44
44
|
attrs: {
|
|
45
45
|
body: {
|
|
46
|
-
xlinkHref: '
|
|
46
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/58225b888f6a48b9af4b21444700c6ba.svg',
|
|
47
47
|
refWidth: '100%',
|
|
48
48
|
refHeight: '100%'
|
|
49
49
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/dd03192a3abc487aa7b91ad75d1be533.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/834835fb0d60434d934eee07d18cfafc.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/40a74ebbf068410593fbc92442088fc7.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/ad1218665b854070b21f5572e452c6ef.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/fe66d6f5586742e3a9aad2782fb45d86.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/63831cb71bd24c47bb11b6e02d9e4c77.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
|
@@ -42,7 +42,7 @@ export var defaultConfig = {
|
|
|
42
42
|
}],
|
|
43
43
|
attrs: {
|
|
44
44
|
body: {
|
|
45
|
-
xlinkHref: '
|
|
45
|
+
xlinkHref: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/8e5f1deaf3a8466fa168588eaac664bc.svg',
|
|
46
46
|
refWidth: '100%',
|
|
47
47
|
refHeight: '100%'
|
|
48
48
|
}
|
package/es/pages/document.ejs
CHANGED
|
@@ -16,7 +16,7 @@
|
|
|
16
16
|
content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0"
|
|
17
17
|
/>
|
|
18
18
|
<title>组态 CoolCare</title>
|
|
19
|
-
<link rel="icon" href="
|
|
19
|
+
<link rel="icon" href="https://front-end-assets.oss-cn-shanghai.aliyuncs.com/images/coolcarelitelogo/logo_light3.png" type="image/x-icon" />
|
|
20
20
|
</head>
|
|
21
21
|
<body>
|
|
22
22
|
<noscript>请允许浏览器使用 Javascript</noscript>
|
|
@@ -9,54 +9,54 @@ import { defaultConfig as defaultConfigLightning } from "../../../../element/Bas
|
|
|
9
9
|
export var elementList = [
|
|
10
10
|
// 矩形
|
|
11
11
|
{
|
|
12
|
-
url: '
|
|
12
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E7%9F%A9%E5%BD%A2.svg',
|
|
13
13
|
label: '',
|
|
14
14
|
width: 30,
|
|
15
15
|
payload: defaultConfigRectangle
|
|
16
16
|
},
|
|
17
17
|
// 圆形
|
|
18
18
|
{
|
|
19
|
-
url: '
|
|
19
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E5%9C%86%E5%BD%A2.svg',
|
|
20
20
|
label: '',
|
|
21
21
|
width: 30,
|
|
22
22
|
payload: defaultConfigCircle
|
|
23
23
|
},
|
|
24
24
|
// 椭圆形
|
|
25
25
|
{
|
|
26
|
-
url: '
|
|
26
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E6%A4%AD%E5%9C%86%E5%BD%A2.svg',
|
|
27
27
|
label: '',
|
|
28
28
|
width: 34,
|
|
29
29
|
payload: defaultConfigEllipse
|
|
30
30
|
},
|
|
31
31
|
// 评论框
|
|
32
32
|
{
|
|
33
|
-
url: '
|
|
33
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E5%AF%B9%E8%AF%9D%E6%A1%86.svg',
|
|
34
34
|
label: '',
|
|
35
35
|
width: 30,
|
|
36
36
|
payload: defaultConfigCommentBox
|
|
37
37
|
}, {
|
|
38
|
-
url: '
|
|
38
|
+
url: 'http://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/comment-box2.svg',
|
|
39
39
|
label: '',
|
|
40
40
|
width: 38,
|
|
41
41
|
payload: defaultConfigCommentBox2
|
|
42
42
|
},
|
|
43
43
|
// 心形
|
|
44
44
|
{
|
|
45
|
-
url: '
|
|
45
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/heart.svg',
|
|
46
46
|
label: '',
|
|
47
47
|
width: 30,
|
|
48
48
|
payload: defaultConfigHeart
|
|
49
49
|
},
|
|
50
50
|
// 星星
|
|
51
51
|
{
|
|
52
|
-
url: '
|
|
52
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E6%98%9F%E6%98%9F.svg',
|
|
53
53
|
label: '',
|
|
54
54
|
width: 30,
|
|
55
55
|
payload: defaultConfigStar
|
|
56
56
|
},
|
|
57
57
|
// 闪电
|
|
58
58
|
{
|
|
59
|
-
url: '
|
|
59
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/lightning.svg',
|
|
60
60
|
label: '',
|
|
61
61
|
width: 28,
|
|
62
62
|
payload: defaultConfigLightning
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// This file is automatically generated.
|
|
2
|
-
// Please do not change this file!
|
|
3
|
-
interface CssExports {
|
|
4
|
-
'border-box-ele-item': string;
|
|
5
|
-
}
|
|
6
|
-
export const cssExports: CssExports;
|
|
7
|
-
export default cssExports;
|
|
1
|
+
// This file is automatically generated.
|
|
2
|
+
// Please do not change this file!
|
|
3
|
+
interface CssExports {
|
|
4
|
+
'border-box-ele-item': string;
|
|
5
|
+
}
|
|
6
|
+
export const cssExports: CssExports;
|
|
7
|
+
export default cssExports;
|
|
@@ -1,7 +1,7 @@
|
|
|
1
|
-
// This file is automatically generated.
|
|
2
|
-
// Please do not change this file!
|
|
3
|
-
interface CssExports {
|
|
4
|
-
'decoration-ele-item': string;
|
|
5
|
-
}
|
|
6
|
-
export const cssExports: CssExports;
|
|
7
|
-
export default cssExports;
|
|
1
|
+
// This file is automatically generated.
|
|
2
|
+
// Please do not change this file!
|
|
3
|
+
interface CssExports {
|
|
4
|
+
'decoration-ele-item': string;
|
|
5
|
+
}
|
|
6
|
+
export const cssExports: CssExports;
|
|
7
|
+
export default cssExports;
|
|
@@ -33,10 +33,10 @@ var DragHandle = SortableHandle(function () {
|
|
|
33
33
|
});
|
|
34
34
|
});
|
|
35
35
|
|
|
36
|
-
/**
|
|
37
|
-
* @param color color
|
|
38
|
-
* @param children children
|
|
39
|
-
* @param onClick onClick
|
|
36
|
+
/**
|
|
37
|
+
* @param color color
|
|
38
|
+
* @param children children
|
|
39
|
+
* @param onClick onClick
|
|
40
40
|
*/
|
|
41
41
|
|
|
42
42
|
var SortableItem = SortableElement(function (_ref) {
|
|
@@ -25,23 +25,23 @@ export var elementList = [{
|
|
|
25
25
|
payload: defaultConfigElePointImage,
|
|
26
26
|
tooltipTitle: '适用于图片/动图表示功能状态'
|
|
27
27
|
}, {
|
|
28
|
-
url: '
|
|
28
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E7%82%B9%E4%BD%8D%E7%8A%B6%E6%80%81.svg',
|
|
29
29
|
label: '状态点位',
|
|
30
30
|
width: 25,
|
|
31
31
|
payload: defaultConfigElePointState,
|
|
32
32
|
tooltipTitle: '适用于图标颜色变化表示功能状态'
|
|
33
33
|
}, {
|
|
34
|
-
url: '
|
|
34
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E7%82%B9%E4%BD%8D%E9%9D%A2%E6%9D%BF.svg',
|
|
35
35
|
label: '点位列表',
|
|
36
36
|
width: 25,
|
|
37
37
|
payload: defaultConfigElePointList
|
|
38
38
|
}, {
|
|
39
|
-
url: '
|
|
39
|
+
url: 'http://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E4%BB%AA%E8%A1%A8%E7%9B%98.svg',
|
|
40
40
|
label: '仪表盘',
|
|
41
41
|
payload: defaultConfigGauge,
|
|
42
42
|
width: 28
|
|
43
43
|
}, {
|
|
44
|
-
url: '
|
|
44
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E9%A3%8E%E6%89%87.svg',
|
|
45
45
|
label: '风机',
|
|
46
46
|
payload: defaultConfigEleFan,
|
|
47
47
|
width: 26
|
|
@@ -51,37 +51,37 @@ export var elementList = [{
|
|
|
51
51
|
width: 30,
|
|
52
52
|
payload: defaultConfigEleText
|
|
53
53
|
}, {
|
|
54
|
-
url: '
|
|
54
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E6%8C%89%E9%92%AE.svg',
|
|
55
55
|
label: '按钮',
|
|
56
56
|
width: 30,
|
|
57
57
|
payload: defaultConfigEleButton
|
|
58
58
|
}, {
|
|
59
|
-
url: '
|
|
59
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/switch.svg',
|
|
60
60
|
label: '开关',
|
|
61
61
|
width: 30,
|
|
62
62
|
payload: defaultConfigEleSwitch
|
|
63
63
|
}, {
|
|
64
|
-
url: '
|
|
64
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E6%8C%87%E7%A4%BA%E7%81%AF.svg',
|
|
65
65
|
label: '指示灯',
|
|
66
66
|
width: 25,
|
|
67
67
|
payload: defaultConfigEleIndicatorLight
|
|
68
68
|
}, {
|
|
69
|
-
url: '
|
|
69
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E9%97%AA%E7%83%81%E5%91%8A%E8%AD%A6.svg',
|
|
70
70
|
label: '闪烁告警',
|
|
71
71
|
width: 22,
|
|
72
72
|
payload: defaultConfigEleShine
|
|
73
73
|
}, {
|
|
74
|
-
url: '
|
|
74
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E5%9B%BE%E6%A0%87.svg',
|
|
75
75
|
label: '图标',
|
|
76
76
|
width: 25,
|
|
77
77
|
payload: defaultConfigEleIcon
|
|
78
78
|
}, {
|
|
79
|
-
url: '
|
|
79
|
+
url: 'http://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/time-circle.svg',
|
|
80
80
|
label: '时间',
|
|
81
81
|
width: 28,
|
|
82
82
|
payload: defaultConfigClock
|
|
83
83
|
}, {
|
|
84
|
-
url: '
|
|
84
|
+
url: 'https://coolcare-scada.oss-cn-shanghai.aliyuncs.com/%E5%AE%98%E6%96%B9%E5%9B%BE%E5%BA%93/%E8%BF%9E%E7%BA%BF.svg',
|
|
85
85
|
label: '连接线',
|
|
86
86
|
width: 28,
|
|
87
87
|
payload: defaultConfigEdgeLinePort
|
|
@@ -10,58 +10,58 @@ import { defaultConfig as defaultConfigElePipeVertical } from "../../../../eleme
|
|
|
10
10
|
import { defaultConfig as defaultConfigElePipeHorizontal } from "../../../../element/PipeNodes/NodeHorizontal";
|
|
11
11
|
import { defaultConfig as defaultConfigElePipeCenter } from "../../../../element/PipeNodes/NodeCenter";
|
|
12
12
|
export var elementList = [{
|
|
13
|
-
url: '
|
|
13
|
+
url: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/ad1218665b854070b21f5572e452c6ef.svg',
|
|
14
14
|
label: '',
|
|
15
15
|
width: 30,
|
|
16
16
|
payload: defaultConfigElePipeTL
|
|
17
17
|
}, {
|
|
18
|
-
url: '
|
|
18
|
+
url: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/63831cb71bd24c47bb11b6e02d9e4c77.svg',
|
|
19
19
|
label: '',
|
|
20
20
|
width: 30,
|
|
21
21
|
payload: defaultConfigElePipeTop
|
|
22
22
|
}, {
|
|
23
|
-
url: '
|
|
23
|
+
url: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/fe66d6f5586742e3a9aad2782fb45d86.svg',
|
|
24
24
|
label: '',
|
|
25
25
|
width: 30,
|
|
26
26
|
payload: defaultConfigElePipeTR
|
|
27
27
|
}, {
|
|
28
|
-
url: '
|
|
28
|
+
url: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/834835fb0d60434d934eee07d18cfafc.svg',
|
|
29
29
|
label: '',
|
|
30
30
|
width: 25,
|
|
31
31
|
payload: defaultConfigElePipeLeft
|
|
32
32
|
}, {
|
|
33
|
-
url: '
|
|
33
|
+
url: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/58225b888f6a48b9af4b21444700c6ba.svg',
|
|
34
34
|
label: '',
|
|
35
35
|
width: 25,
|
|
36
36
|
payload: defaultConfigElePipeCenter
|
|
37
37
|
}, {
|
|
38
|
-
url: '
|
|
38
|
+
url: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/40a74ebbf068410593fbc92442088fc7.svg',
|
|
39
39
|
label: '',
|
|
40
40
|
width: 25,
|
|
41
41
|
payload: defaultConfigElePipeRight
|
|
42
42
|
}, {
|
|
43
|
-
url: '
|
|
43
|
+
url: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/be42df157707426fb53360693eae8094.svg',
|
|
44
44
|
label: '',
|
|
45
45
|
width: 25,
|
|
46
46
|
payload: defaultConfigElePipeBL
|
|
47
47
|
}, {
|
|
48
|
-
url: '
|
|
48
|
+
url: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/2358402046b8439b9bee49814e5d94e3.svg',
|
|
49
49
|
label: '',
|
|
50
50
|
width: 25,
|
|
51
51
|
payload: defaultConfigElePipeBottom
|
|
52
52
|
}, {
|
|
53
|
-
url: '
|
|
53
|
+
url: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/7cdce2491ce3468aae034f531bf149d5.svg',
|
|
54
54
|
label: '',
|
|
55
55
|
width: 25,
|
|
56
56
|
payload: defaultConfigElePipeBR
|
|
57
57
|
}, {
|
|
58
|
-
url: '
|
|
58
|
+
url: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/dd03192a3abc487aa7b91ad75d1be533.svg',
|
|
59
59
|
label: '',
|
|
60
60
|
width: 30,
|
|
61
61
|
height: 10,
|
|
62
62
|
payload: defaultConfigElePipeHorizontal
|
|
63
63
|
}, {
|
|
64
|
-
url: '
|
|
64
|
+
url: 'https://front-end-assets.oss-cn-shanghai.aliyuncs.com/生产/组态图片/图片元素/8e5f1deaf3a8466fa168588eaac664bc.svg',
|
|
65
65
|
label: '',
|
|
66
66
|
width: 10,
|
|
67
67
|
height: 30,
|