@zgfe/modules-interval 1.0.9 → 1.0.10-qirui.0
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/components/common/styles/index.less +3 -3
- package/dist/esm/components/eventFilter/index.js +17 -21
- package/dist/esm/components/eventFilter/types.d.ts +4 -3
- package/dist/esm/components/searchPanel/index.js +3 -4
- package/dist/esm/components/table/index.js +5 -4
- package/dist/esm/components/topBar/index.js +4 -4
- package/dist/esm/components/topBar/types.d.ts +3 -2
- package/dist/esm/constants/apis.d.ts +1 -5
- package/dist/esm/constants/apis.js +15 -4
- package/dist/esm/modules/chart/index.js +4 -3
- package/dist/esm/modules/chart/intervalChart.js +1 -1
- package/dist/esm/modules/chart/types.d.ts +1 -0
- package/dist/esm/modules/content/index.js +27 -42
- package/dist/esm/modules/content/types.d.ts +4 -3
- package/dist/esm/modules/content/utils.d.ts +2 -0
- package/dist/esm/modules/content/utils.js +4 -2
- package/dist/esm/modules/home/demo/edit.js +1 -1
- package/dist/esm/modules/home/demo/index.js +200 -15
- package/dist/esm/modules/home/demo/scene.js +1 -1
- package/dist/esm/modules/home/index.d.ts +2 -2
- package/dist/esm/modules/home/index.js +59 -46
- package/dist/esm/modules/home/styles/index.less +6 -0
- package/dist/esm/modules/home/types.d.ts +7 -4
- package/dist/esm/modules/home/types.js +2 -2
- package/dist/esm/modules/topPanel/index.js +244 -127
- package/dist/esm/modules/topPanel/styles/index.less +29 -2
- package/dist/esm/modules/topPanel/types.d.ts +6 -9
- package/dist/esm/modules/topPanel/types.js +5 -1
- package/dist/esm/style/index.less +14 -0
- package/dist/esm/types.d.ts +25 -28
- package/dist/esm/types.js +1 -1
- package/dist/esm/utils/formData.d.ts +7 -2
- package/dist/esm/utils/formData.js +64 -12
- package/package.json +9 -4
- package/dist/esm/assets/business/demo.css +0 -539
- package/dist/esm/assets/business/demo_index.html +0 -3316
- package/dist/esm/assets/business/iconfont.css +0 -559
- package/dist/esm/assets/business/iconfont.js +0 -43
- package/dist/esm/assets/business/iconfont.json +0 -961
- package/dist/esm/assets/business/iconfont.ttf +0 -0
- package/dist/esm/assets/business/iconfont.woff +0 -0
- package/dist/esm/assets/business/iconfont.woff2 +0 -0
- package/dist/esm/assets/icons/demo.css +0 -539
- package/dist/esm/assets/icons/demo_index.html +0 -9618
- package/dist/esm/assets/icons/iconfont.css +0 -1655
- package/dist/esm/assets/icons/iconfont.js +0 -43
- package/dist/esm/assets/icons/iconfont.json +0 -2879
- package/dist/esm/assets/icons/iconfont.ttf +0 -0
- package/dist/esm/assets/icons/iconfont.woff +0 -0
- package/dist/esm/assets/icons/iconfont.woff2 +0 -0
|
@@ -17,17 +17,11 @@ export default (function () {
|
|
|
17
17
|
isDetail = _useState2[0],
|
|
18
18
|
setIsDetail = _useState2[1];
|
|
19
19
|
var _useState3 = useState(),
|
|
20
|
-
_useState4 = _slicedToArray(_useState3,
|
|
21
|
-
detailParams = _useState4[0]
|
|
22
|
-
setDetailParams = _useState4[1];
|
|
20
|
+
_useState4 = _slicedToArray(_useState3, 1),
|
|
21
|
+
detailParams = _useState4[0];
|
|
23
22
|
var _useState5 = useState(),
|
|
24
|
-
_useState6 = _slicedToArray(_useState5,
|
|
25
|
-
searchParams = _useState6[0]
|
|
26
|
-
setSearchParams = _useState6[1];
|
|
27
|
-
var _useState7 = useState(),
|
|
28
|
-
_useState8 = _slicedToArray(_useState7, 2),
|
|
29
|
-
urlParam = _useState8[0],
|
|
30
|
-
setUrlParam = _useState8[1];
|
|
23
|
+
_useState6 = _slicedToArray(_useState5, 1),
|
|
24
|
+
searchParams = _useState6[0];
|
|
31
25
|
useEffect(function () {
|
|
32
26
|
setGlobalConfig(requestConfig);
|
|
33
27
|
}, []);
|
|
@@ -38,16 +32,207 @@ export default (function () {
|
|
|
38
32
|
console.log('onUserDrill:111', data, searchData);
|
|
39
33
|
};
|
|
40
34
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
41
|
-
needMeta: true
|
|
42
|
-
defaultApp: 204
|
|
35
|
+
needMeta: true
|
|
43
36
|
}, isDetail ? /*#__PURE__*/React.createElement("div", null, JSON.stringify(detailParams), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement("br", null), /*#__PURE__*/React.createElement(Button, {
|
|
44
37
|
onClick: function onClick() {
|
|
45
38
|
return setIsDetail(false);
|
|
46
39
|
}
|
|
47
40
|
}, "\u8FD4\u56DE")) : /*#__PURE__*/React.createElement(ModuleInterval, {
|
|
48
|
-
defaultValue: searchParams,
|
|
49
|
-
urlParam: urlParam,
|
|
50
41
|
afterEditTarget: afterEditTarget,
|
|
51
|
-
onUserDrill: onUserDrill
|
|
42
|
+
onUserDrill: onUserDrill,
|
|
43
|
+
defaultValue: {
|
|
44
|
+
data: {
|
|
45
|
+
analysisSubject: {
|
|
46
|
+
subjectId: 91,
|
|
47
|
+
subjectName: 'url',
|
|
48
|
+
subjectAlias: '网址',
|
|
49
|
+
unit: '达不溜'
|
|
50
|
+
},
|
|
51
|
+
start: {
|
|
52
|
+
alias: '页面访问',
|
|
53
|
+
attrList: [{
|
|
54
|
+
alias: '',
|
|
55
|
+
eventId: 18062,
|
|
56
|
+
id: 96068,
|
|
57
|
+
isHidden: 0,
|
|
58
|
+
key: 'eventProp-96068',
|
|
59
|
+
label: 'landing_page',
|
|
60
|
+
propCategory: 'eventProp',
|
|
61
|
+
type: 1,
|
|
62
|
+
realTime: true,
|
|
63
|
+
dimensionSub: 'event_attr'
|
|
64
|
+
}, {
|
|
65
|
+
alias: '',
|
|
66
|
+
eventId: 18062,
|
|
67
|
+
id: 96060,
|
|
68
|
+
isHidden: 0,
|
|
69
|
+
key: 'eventProp-96060',
|
|
70
|
+
label: 'url',
|
|
71
|
+
propCategory: 'eventProp',
|
|
72
|
+
type: 1,
|
|
73
|
+
realTime: true,
|
|
74
|
+
dimensionSub: 'event_attr'
|
|
75
|
+
}, {
|
|
76
|
+
alias: '',
|
|
77
|
+
eventId: 18062,
|
|
78
|
+
id: 96059,
|
|
79
|
+
isHidden: 0,
|
|
80
|
+
key: 'eventProp-96059',
|
|
81
|
+
label: 'page_url',
|
|
82
|
+
propCategory: 'eventProp',
|
|
83
|
+
type: 1,
|
|
84
|
+
realTime: true,
|
|
85
|
+
dimensionSub: 'event_attr'
|
|
86
|
+
}, {
|
|
87
|
+
alias: '',
|
|
88
|
+
eventId: 18062,
|
|
89
|
+
id: 96069,
|
|
90
|
+
isHidden: 0,
|
|
91
|
+
key: 'eventProp-96069',
|
|
92
|
+
label: 'page_title',
|
|
93
|
+
propCategory: 'eventProp',
|
|
94
|
+
type: 1,
|
|
95
|
+
realTime: true,
|
|
96
|
+
dimensionSub: 'event_attr'
|
|
97
|
+
}, {
|
|
98
|
+
alias: '',
|
|
99
|
+
eventId: 18062,
|
|
100
|
+
id: 96062,
|
|
101
|
+
isHidden: 0,
|
|
102
|
+
key: 'eventProp-96062',
|
|
103
|
+
label: 'ref',
|
|
104
|
+
propCategory: 'eventProp',
|
|
105
|
+
type: 1,
|
|
106
|
+
realTime: true,
|
|
107
|
+
dimensionSub: 'event_attr'
|
|
108
|
+
}],
|
|
109
|
+
id: 18062,
|
|
110
|
+
isDelete: 0,
|
|
111
|
+
isStop: 0,
|
|
112
|
+
name: 'pv',
|
|
113
|
+
eventHidden: 0,
|
|
114
|
+
marked: false,
|
|
115
|
+
clickAnalysis: true
|
|
116
|
+
},
|
|
117
|
+
end: {
|
|
118
|
+
alias: '收入',
|
|
119
|
+
attrList: [{
|
|
120
|
+
alias: '',
|
|
121
|
+
eventId: 18065,
|
|
122
|
+
id: 96079,
|
|
123
|
+
isHidden: 0,
|
|
124
|
+
key: 'eventProp-96079',
|
|
125
|
+
label: 'productQuantity',
|
|
126
|
+
propCategory: 'eventProp',
|
|
127
|
+
type: 2,
|
|
128
|
+
realTime: true,
|
|
129
|
+
dimensionSub: 'event_attr'
|
|
130
|
+
}, {
|
|
131
|
+
alias: '',
|
|
132
|
+
eventId: 18065,
|
|
133
|
+
id: 96081,
|
|
134
|
+
isHidden: 0,
|
|
135
|
+
key: 'eventProp-96081',
|
|
136
|
+
label: 'page_title',
|
|
137
|
+
propCategory: 'eventProp',
|
|
138
|
+
type: 1,
|
|
139
|
+
realTime: true,
|
|
140
|
+
dimensionSub: 'event_attr'
|
|
141
|
+
}, {
|
|
142
|
+
alias: '',
|
|
143
|
+
eventId: 18065,
|
|
144
|
+
id: 96083,
|
|
145
|
+
isHidden: 0,
|
|
146
|
+
key: 'eventProp-96083',
|
|
147
|
+
label: 'price',
|
|
148
|
+
propCategory: 'eventProp',
|
|
149
|
+
type: 2,
|
|
150
|
+
realTime: true,
|
|
151
|
+
dimensionSub: 'event_attr'
|
|
152
|
+
}, {
|
|
153
|
+
alias: '',
|
|
154
|
+
eventId: 18065,
|
|
155
|
+
id: 96082,
|
|
156
|
+
isHidden: 0,
|
|
157
|
+
key: 'eventProp-96082',
|
|
158
|
+
label: 'productID',
|
|
159
|
+
propCategory: 'eventProp',
|
|
160
|
+
type: 1,
|
|
161
|
+
realTime: true,
|
|
162
|
+
dimensionSub: 'event_attr'
|
|
163
|
+
}, {
|
|
164
|
+
alias: '',
|
|
165
|
+
eventId: 18065,
|
|
166
|
+
id: 96078,
|
|
167
|
+
isHidden: 0,
|
|
168
|
+
key: 'eventProp-96078',
|
|
169
|
+
label: 'total',
|
|
170
|
+
propCategory: 'eventProp',
|
|
171
|
+
type: 2,
|
|
172
|
+
realTime: true,
|
|
173
|
+
dimensionSub: 'event_attr'
|
|
174
|
+
}, {
|
|
175
|
+
alias: '',
|
|
176
|
+
eventId: 18065,
|
|
177
|
+
id: 96089,
|
|
178
|
+
isHidden: 0,
|
|
179
|
+
key: 'eventProp-96089',
|
|
180
|
+
label: 'page_url',
|
|
181
|
+
propCategory: 'eventProp',
|
|
182
|
+
type: 1,
|
|
183
|
+
realTime: true,
|
|
184
|
+
dimensionSub: 'event_attr'
|
|
185
|
+
}, {
|
|
186
|
+
alias: '',
|
|
187
|
+
eventId: 18065,
|
|
188
|
+
id: 96088,
|
|
189
|
+
isHidden: 0,
|
|
190
|
+
key: 'eventProp-96088',
|
|
191
|
+
label: 'ref',
|
|
192
|
+
propCategory: 'eventProp',
|
|
193
|
+
type: 1,
|
|
194
|
+
realTime: true,
|
|
195
|
+
dimensionSub: 'event_attr'
|
|
196
|
+
}, {
|
|
197
|
+
alias: '',
|
|
198
|
+
eventId: 18065,
|
|
199
|
+
id: 96084,
|
|
200
|
+
isHidden: 0,
|
|
201
|
+
key: 'eventProp-96084',
|
|
202
|
+
label: 'revenueType',
|
|
203
|
+
propCategory: 'eventProp',
|
|
204
|
+
type: 1,
|
|
205
|
+
realTime: true,
|
|
206
|
+
dimensionSub: 'event_attr'
|
|
207
|
+
}, {
|
|
208
|
+
alias: '',
|
|
209
|
+
eventId: 18065,
|
|
210
|
+
id: 96085,
|
|
211
|
+
isHidden: 0,
|
|
212
|
+
key: 'eventProp-96085',
|
|
213
|
+
label: 'url',
|
|
214
|
+
propCategory: 'eventProp',
|
|
215
|
+
type: 1,
|
|
216
|
+
realTime: true,
|
|
217
|
+
dimensionSub: 'event_attr'
|
|
218
|
+
}],
|
|
219
|
+
id: 18065,
|
|
220
|
+
isDelete: 0,
|
|
221
|
+
isStop: 0,
|
|
222
|
+
name: 'revenue',
|
|
223
|
+
eventHidden: 0,
|
|
224
|
+
marked: false,
|
|
225
|
+
clickAnalysis: false
|
|
226
|
+
},
|
|
227
|
+
analysisModel: 'commonInterval',
|
|
228
|
+
time: {
|
|
229
|
+
begin: '2023-10-25',
|
|
230
|
+
end: '2023-11-01',
|
|
231
|
+
relative: [7, 0],
|
|
232
|
+
unit: 'day'
|
|
233
|
+
}
|
|
234
|
+
}
|
|
235
|
+
},
|
|
236
|
+
onJumpWarning: function onJumpWarning() {}
|
|
52
237
|
}));
|
|
53
238
|
});
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import React from 'react';
|
|
2
2
|
import './styles/index.less';
|
|
3
|
-
import {
|
|
4
|
-
declare const ModuleInterval: React.FC<
|
|
3
|
+
import { IntervalProps } from './types';
|
|
4
|
+
declare const ModuleInterval: React.FC<IntervalProps.Props>;
|
|
5
5
|
export default ModuleInterval;
|
|
@@ -12,12 +12,12 @@ function _iterableToArrayLimit(arr, i) { var _i = null == arr ? null : "undefine
|
|
|
12
12
|
function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
|
|
13
13
|
import React, { useContext, useEffect, useState } from 'react';
|
|
14
14
|
import { Spin } from 'antd';
|
|
15
|
-
import { BizGlobalDataContext, BizTargetFromPanel } from '@zgfe/business-lib';
|
|
15
|
+
import { BizGlobalDataContext, BizTargetFromPanel, ajax } from '@zgfe/business-lib';
|
|
16
16
|
import "./styles/index.less";
|
|
17
|
-
import {
|
|
17
|
+
import { IntervalContext } from "../../types";
|
|
18
18
|
import { getInitDate } from "../../constants/initData";
|
|
19
19
|
import EventContent from "../content";
|
|
20
|
-
import { chartTypes } from "../../constants";
|
|
20
|
+
import { Apis, chartTypes } from "../../constants";
|
|
21
21
|
var classPrefix = 'interval-module-container';
|
|
22
22
|
var ModuleInterval = function ModuleInterval(props) {
|
|
23
23
|
// 属性
|
|
@@ -36,43 +36,52 @@ var ModuleInterval = function ModuleInterval(props) {
|
|
|
36
36
|
_useState4 = _slicedToArray(_useState3, 2),
|
|
37
37
|
loading = _useState4[0],
|
|
38
38
|
setLoading = _useState4[1];
|
|
39
|
-
var _useState5 = useState(true),
|
|
40
|
-
_useState6 = _slicedToArray(_useState5, 2),
|
|
41
|
-
pageLoading = _useState6[0],
|
|
42
|
-
setPageLoading = _useState6[1];
|
|
43
39
|
// 指标标题
|
|
40
|
+
var _useState5 = useState(),
|
|
41
|
+
_useState6 = _slicedToArray(_useState5, 2),
|
|
42
|
+
title = _useState6[0],
|
|
43
|
+
setTitle = _useState6[1];
|
|
44
44
|
var _useState7 = useState(),
|
|
45
45
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
46
|
-
|
|
47
|
-
|
|
46
|
+
panelId = _useState8[0],
|
|
47
|
+
setPanelId = _useState8[1];
|
|
48
48
|
var _useState9 = useState(),
|
|
49
49
|
_useState10 = _slicedToArray(_useState9, 2),
|
|
50
|
-
|
|
51
|
-
|
|
50
|
+
elementId = _useState10[0],
|
|
51
|
+
setElementId = _useState10[1];
|
|
52
52
|
var _useState11 = useState(),
|
|
53
53
|
_useState12 = _slicedToArray(_useState11, 2),
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
var _useState13 = useState(),
|
|
54
|
+
showList = _useState12[0],
|
|
55
|
+
setShowList = _useState12[1];
|
|
56
|
+
var _useState13 = useState(false),
|
|
57
57
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
58
|
-
|
|
59
|
-
|
|
58
|
+
subjectEnable = _useState14[0],
|
|
59
|
+
setSubjectEnable = _useState14[1];
|
|
60
60
|
// 初始化
|
|
61
61
|
useEffect(function () {
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
62
|
+
setLoading(true);
|
|
63
|
+
ajax(Apis.querySubjectDisplay, {
|
|
64
|
+
method: 'post',
|
|
65
|
+
data: {
|
|
66
|
+
appId: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId
|
|
67
|
+
}
|
|
68
|
+
}).then(function (res) {
|
|
69
|
+
if (!res) return;
|
|
70
|
+
setSubjectEnable(res.data);
|
|
71
|
+
// 设置初始值
|
|
72
|
+
if (!props.defaultValue) {
|
|
73
|
+
initSearch();
|
|
74
|
+
} else {
|
|
75
|
+
setShowList(props.defaultValue.chosen_data);
|
|
76
|
+
setPanelId(props.defaultValue.panelId);
|
|
77
|
+
setElementId(props.defaultValue.id);
|
|
78
|
+
setTitle(props.defaultValue.name);
|
|
79
|
+
setSearchData(props.defaultValue.data);
|
|
80
|
+
}
|
|
81
|
+
setTimeout(function () {
|
|
82
|
+
setLoading(false);
|
|
83
|
+
});
|
|
84
|
+
});
|
|
76
85
|
}, []);
|
|
77
86
|
|
|
78
87
|
// 查询条件初始化
|
|
@@ -80,20 +89,21 @@ var ModuleInterval = function ModuleInterval(props) {
|
|
|
80
89
|
setSearchData({
|
|
81
90
|
userGroup: (userGroupList === null || userGroupList === void 0 ? void 0 : userGroupList.length) > 0 ? [userGroupList[0].id] : [0],
|
|
82
91
|
time: getInitDate(props.includeToday),
|
|
83
|
-
chartType: '
|
|
92
|
+
chartType: 'boxplot'
|
|
84
93
|
});
|
|
85
94
|
};
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
95
|
+
useEffect(function () {
|
|
96
|
+
if (props.onChange) props.onChange(searchData);
|
|
97
|
+
}, [searchData]);
|
|
98
|
+
if (loading) {
|
|
99
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
100
|
+
className: classPrefix
|
|
101
|
+
}, /*#__PURE__*/React.createElement(Spin, {
|
|
102
|
+
className: "".concat(classPrefix, "-loading")
|
|
103
|
+
}));
|
|
93
104
|
}
|
|
94
|
-
return /*#__PURE__*/React.createElement(
|
|
95
|
-
|
|
96
|
-
wrapperClassName: classPrefix
|
|
105
|
+
return /*#__PURE__*/React.createElement("div", {
|
|
106
|
+
className: classPrefix
|
|
97
107
|
}, /*#__PURE__*/React.createElement(BizTargetFromPanel, {
|
|
98
108
|
value: panelId ? {
|
|
99
109
|
panelId: panelId,
|
|
@@ -102,7 +112,7 @@ var ModuleInterval = function ModuleInterval(props) {
|
|
|
102
112
|
name: title,
|
|
103
113
|
params: _objectSpread({
|
|
104
114
|
app_id: currentApp === null || currentApp === void 0 ? void 0 : currentApp.appId,
|
|
105
|
-
module: '
|
|
115
|
+
module: 'interval'
|
|
106
116
|
}, searchData)
|
|
107
117
|
}
|
|
108
118
|
} : undefined,
|
|
@@ -112,7 +122,7 @@ var ModuleInterval = function ModuleInterval(props) {
|
|
|
112
122
|
children: ""
|
|
113
123
|
}), !panelId && /*#__PURE__*/React.createElement("div", {
|
|
114
124
|
className: "".concat(classPrefix, "-header-title")
|
|
115
|
-
}, "\u95F4\u9694\u5206\u6790"), /*#__PURE__*/React.createElement(
|
|
125
|
+
}, "\u95F4\u9694\u5206\u6790"), /*#__PURE__*/React.createElement(IntervalContext.Provider, {
|
|
116
126
|
value: {
|
|
117
127
|
panelId: panelId,
|
|
118
128
|
elementId: elementId,
|
|
@@ -121,18 +131,21 @@ var ModuleInterval = function ModuleInterval(props) {
|
|
|
121
131
|
userPropList: userPropList,
|
|
122
132
|
searchData: searchData,
|
|
123
133
|
setSearchData: setSearchData,
|
|
134
|
+
subjectEnable: subjectEnable,
|
|
124
135
|
panelName: title,
|
|
125
136
|
includeToday: props.includeToday,
|
|
126
|
-
|
|
137
|
+
enableAddScene: props.defaultValue && props.defaultValue.enableAddScene === false ? false : true,
|
|
138
|
+
changeLoading: setLoading,
|
|
127
139
|
afterEditTarget: props.afterEditTarget,
|
|
128
|
-
onUserDrill: props.onUserDrill
|
|
140
|
+
onUserDrill: props.onUserDrill,
|
|
141
|
+
onJumpWarning: props.onJumpWarning
|
|
129
142
|
}
|
|
130
143
|
}, /*#__PURE__*/React.createElement(EventContent, {
|
|
131
144
|
defaultValue: props.defaultValue ? props.defaultValue.data : undefined,
|
|
132
145
|
value: searchData,
|
|
133
146
|
show: showList,
|
|
134
|
-
urlParam: props.urlParam,
|
|
135
147
|
onUserDrill: props.onUserDrill,
|
|
148
|
+
onJumpWarning: props.onJumpWarning,
|
|
136
149
|
onChange: setSearchData,
|
|
137
150
|
initSearch: initSearch
|
|
138
151
|
})));
|
|
@@ -1,12 +1,11 @@
|
|
|
1
1
|
/// <reference types="react" />
|
|
2
|
-
import { SearchValue,
|
|
3
|
-
export declare namespace
|
|
2
|
+
import { SearchValue, IntervalDrillParams } from '../../types';
|
|
3
|
+
export declare namespace IntervalProps {
|
|
4
4
|
interface Props {
|
|
5
5
|
/**
|
|
6
6
|
* @description 默认查询值
|
|
7
7
|
*/
|
|
8
8
|
defaultValue?: Value;
|
|
9
|
-
urlParam?: SearchValue;
|
|
10
9
|
/**
|
|
11
10
|
* @description 看板是否可禁用, true禁用
|
|
12
11
|
*/
|
|
@@ -23,7 +22,9 @@ export declare namespace EventProps {
|
|
|
23
22
|
/**
|
|
24
23
|
* 用户钻取
|
|
25
24
|
*/
|
|
26
|
-
onUserDrill: (data:
|
|
25
|
+
onUserDrill: (data: IntervalDrillParams, isSubject: boolean) => void;
|
|
26
|
+
onJumpWarning: (data: Record<string, any>, searchData: SearchValue) => void;
|
|
27
|
+
onChange?: (data: SearchValue) => void;
|
|
27
28
|
}
|
|
28
29
|
interface Value {
|
|
29
30
|
/**
|
|
@@ -69,6 +70,8 @@ export declare namespace EventProps {
|
|
|
69
70
|
min?: number;
|
|
70
71
|
perValue?: number;
|
|
71
72
|
peopleNum?: number;
|
|
73
|
+
names?: string[];
|
|
74
|
+
total?: number;
|
|
72
75
|
children?: ColumnsDataType[];
|
|
73
76
|
}
|
|
74
77
|
}
|
|
@@ -1,2 +1,2 @@
|
|
|
1
|
-
export var
|
|
2
|
-
(function (
|
|
1
|
+
export var IntervalProps;
|
|
2
|
+
(function (_IntervalProps) {})(IntervalProps || (IntervalProps = {}));
|