@zgfe/modules-interval 1.0.0-interval.25 → 1.0.0-interval.27
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/dist/esm/modules/chart/index.js +1 -1
- package/dist/esm/modules/chart/index.less +2 -2
- package/dist/esm/modules/chart/intervalChart.js +3 -3
- package/dist/esm/modules/topPanel/index.js +1 -0
- package/dist/esm/modules/topPanel/styles/index.less +5 -5
- package/dist/esm/types.d.ts +4 -0
- package/package.json +1 -1
|
@@ -42,7 +42,7 @@ var IntervalEventChart = function IntervalEventChart(props) {
|
|
|
42
42
|
setLoading = _useState8[1];
|
|
43
43
|
useEffect(function () {
|
|
44
44
|
// 没有dataSource时(看板列表访问),请求查询
|
|
45
|
-
if (!props.dataSource) {
|
|
45
|
+
if (!props.dataSource || (params === null || params === void 0 ? void 0 : params.module) === 'interval') {
|
|
46
46
|
fetchResult();
|
|
47
47
|
}
|
|
48
48
|
}, []);
|
|
@@ -27,10 +27,10 @@
|
|
|
27
27
|
.custom-tooltip-div {
|
|
28
28
|
display: flex;
|
|
29
29
|
flex-direction: column;
|
|
30
|
-
gap:
|
|
30
|
+
gap: 6px;
|
|
31
31
|
width: 100%;
|
|
32
32
|
height: 100%;
|
|
33
|
-
padding:
|
|
33
|
+
padding: 0px 8px;
|
|
34
34
|
background: #fff;
|
|
35
35
|
border-radius: 4px;
|
|
36
36
|
// box-shadow: 0px 1px 2px 0px rgba(0, 0, 0, 0.04);
|
|
@@ -34,7 +34,7 @@ var IntervalChart = function IntervalChart(props) {
|
|
|
34
34
|
type: 'scroll',
|
|
35
35
|
itemWidth: 10,
|
|
36
36
|
// 设置图例的宽度为10px
|
|
37
|
-
itemHeight: 10 // 设置图例的高度为10px
|
|
37
|
+
itemHeight: 10 // 设置图例的高度为10px
|
|
38
38
|
},
|
|
39
39
|
|
|
40
40
|
grid: {
|
|
@@ -86,7 +86,7 @@ var IntervalChart = function IntervalChart(props) {
|
|
|
86
86
|
end: 20,
|
|
87
87
|
height: 20 // 设置内置的dataZoom的高度
|
|
88
88
|
}, {
|
|
89
|
-
show: true,
|
|
89
|
+
show: (params === null || params === void 0 ? void 0 : params.module) === 'interval' ? false : true,
|
|
90
90
|
type: 'slider',
|
|
91
91
|
bottom: '38px',
|
|
92
92
|
xAxisIndex: [0],
|
|
@@ -107,7 +107,7 @@ var IntervalChart = function IntervalChart(props) {
|
|
|
107
107
|
tooltip: {
|
|
108
108
|
show: true,
|
|
109
109
|
// 单独配置series中的tooltip为显示
|
|
110
|
-
extraCssText: 'border: none;padding:0',
|
|
110
|
+
extraCssText: 'border: none;padding:0;border-radius:10px',
|
|
111
111
|
// 添加自定义的CSS样式,去掉边框
|
|
112
112
|
formatter: function formatter(params) {
|
|
113
113
|
var tooltipString = renderToString( /*#__PURE__*/React.createElement(CustomTooltip, {
|
|
@@ -18,6 +18,7 @@ import "./styles/index.less";
|
|
|
18
18
|
var classPrefix = 'top-panel-interval';
|
|
19
19
|
var TopPanel = function TopPanel(props) {
|
|
20
20
|
var _defaultValue$associa, _defaultValue$associa2, _defaultValue$associa3, _defaultValue$associa4, _defaultValue$associa5, _defaultValue$associa6, _defaultValue$associa7, _defaultValue$associa8, _defaultValue$dimensi, _defaultValue$dimensi2, _defaultValue$dimensi3, _defaultValue$dimensi4;
|
|
21
|
+
console.log(666661111, props);
|
|
21
22
|
var defaultValue = props.defaultValue,
|
|
22
23
|
loading = props.loading,
|
|
23
24
|
collapseRef = props.collapseRef,
|
|
@@ -60,9 +60,8 @@
|
|
|
60
60
|
}
|
|
61
61
|
|
|
62
62
|
.collapseRefs {
|
|
63
|
-
|
|
64
63
|
.ant-form-item {
|
|
65
|
-
margin-bottom:
|
|
64
|
+
margin-bottom: 16px;
|
|
66
65
|
}
|
|
67
66
|
|
|
68
67
|
.ant-form-item-control-input {
|
|
@@ -71,8 +70,8 @@
|
|
|
71
70
|
}
|
|
72
71
|
|
|
73
72
|
.ant-form-item-label {
|
|
74
|
-
font-weight: 500;
|
|
75
73
|
padding-left: 24px;
|
|
74
|
+
font-weight: 500;
|
|
76
75
|
}
|
|
77
76
|
|
|
78
77
|
.interval-box {
|
|
@@ -95,6 +94,7 @@
|
|
|
95
94
|
|
|
96
95
|
.biz-attr-condition-group-container-item {
|
|
97
96
|
max-width: calc(100% + 32px) !important;
|
|
97
|
+
margin-top: 4px;
|
|
98
98
|
padding: 4px 56px;
|
|
99
99
|
.ant-space-item {
|
|
100
100
|
width: auto;
|
|
@@ -125,8 +125,8 @@
|
|
|
125
125
|
}
|
|
126
126
|
|
|
127
127
|
> .ant-form-item {
|
|
128
|
-
margin-bottom:
|
|
129
|
-
.biz-user-group-val{
|
|
128
|
+
margin-bottom: 16px;
|
|
129
|
+
.biz-user-group-val {
|
|
130
130
|
color: #021429;
|
|
131
131
|
}
|
|
132
132
|
}
|
package/dist/esm/types.d.ts
CHANGED