@zgfe/business-lib 1.1.29-alpha.0 → 1.1.29-alpha.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.
|
@@ -65,6 +65,7 @@ var BizConditionItem = function BizConditionItem(props) {
|
|
|
65
65
|
propCategory: data.propCategory,
|
|
66
66
|
type: data.type,
|
|
67
67
|
key: data.attrId,
|
|
68
|
+
label: data.label,
|
|
68
69
|
dimensionSub: data.dimensionSub || 'event_attr'
|
|
69
70
|
};
|
|
70
71
|
}
|
|
@@ -74,6 +75,7 @@ var BizConditionItem = function BizConditionItem(props) {
|
|
|
74
75
|
attrData = {
|
|
75
76
|
id: aId,
|
|
76
77
|
name: data.attrName,
|
|
78
|
+
label: data.label,
|
|
77
79
|
propCategory: data.propCategory,
|
|
78
80
|
type: data.type,
|
|
79
81
|
category: data.category,
|
package/es/constants/common.d.ts
CHANGED
package/es/constants/common.js
CHANGED
|
@@ -4,26 +4,31 @@ export var BuiltinIndicators = {
|
|
|
4
4
|
eventList: [{
|
|
5
5
|
name: '新增用户',
|
|
6
6
|
id: -201,
|
|
7
|
+
type: 'add',
|
|
7
8
|
isBuiltIn: true,
|
|
8
9
|
attrList: []
|
|
9
10
|
}, {
|
|
10
11
|
name: '活跃用户',
|
|
11
12
|
id: -202,
|
|
13
|
+
type: 'active',
|
|
12
14
|
isBuiltIn: true,
|
|
13
15
|
attrList: []
|
|
14
16
|
}, {
|
|
15
17
|
name: '访问次数',
|
|
16
18
|
id: -203,
|
|
19
|
+
type: 'times',
|
|
17
20
|
isBuiltIn: true,
|
|
18
21
|
attrList: []
|
|
19
22
|
}, {
|
|
20
23
|
name: '平均使用时长',
|
|
21
24
|
id: -204,
|
|
25
|
+
type: 'duration_avg',
|
|
22
26
|
isBuiltIn: true,
|
|
23
27
|
attrList: []
|
|
24
28
|
}, {
|
|
25
29
|
name: '使用时长分布',
|
|
26
30
|
id: -205,
|
|
31
|
+
type: 'duration',
|
|
27
32
|
isBuiltIn: true,
|
|
28
33
|
attrList: []
|
|
29
34
|
}]
|
|
@@ -96,7 +96,28 @@ var EventListPanel = function EventListPanel(props) {
|
|
|
96
96
|
setGroupList(function (list) {
|
|
97
97
|
return props.showBuiltInTarget ? [group, BuiltinIndicators].concat(_toConsumableArray(list)) : [group].concat(_toConsumableArray(list));
|
|
98
98
|
});
|
|
99
|
-
setCurrentGroup(
|
|
99
|
+
setCurrentGroup(function () {
|
|
100
|
+
var _props$value;
|
|
101
|
+
|
|
102
|
+
if (props.defaultSelectAble && ((_props$value = props.value) === null || _props$value === void 0 ? void 0 : _props$value.group)) {
|
|
103
|
+
if (props.showBuiltInTarget && props.value.group.id === -2) {
|
|
104
|
+
return BuiltinIndicators;
|
|
105
|
+
} else {
|
|
106
|
+
var _currentGroup = group;
|
|
107
|
+
eventGroupList === null || eventGroupList === void 0 ? void 0 : eventGroupList.forEach(function (eGroup) {
|
|
108
|
+
var _props$value2, _props$value2$group;
|
|
109
|
+
|
|
110
|
+
if (eGroup.id === ((_props$value2 = props.value) === null || _props$value2 === void 0 ? void 0 : (_props$value2$group = _props$value2.group) === null || _props$value2$group === void 0 ? void 0 : _props$value2$group.id)) {
|
|
111
|
+
_currentGroup = eGroup;
|
|
112
|
+
return;
|
|
113
|
+
}
|
|
114
|
+
});
|
|
115
|
+
return _currentGroup;
|
|
116
|
+
}
|
|
117
|
+
}
|
|
118
|
+
|
|
119
|
+
return group;
|
|
120
|
+
});
|
|
100
121
|
}, []);
|
|
101
122
|
useEffect(function () {
|
|
102
123
|
setCurrentValue(props.value);
|
|
@@ -217,7 +217,7 @@ var BizTargetCondition = function BizTargetCondition(props) {
|
|
|
217
217
|
|
|
218
218
|
if (!target || !target.value || !((_target$value$event2 = target.value.event) === null || _target$value$event2 === void 0 ? void 0 : _target$value$event2.id)) return;
|
|
219
219
|
var data = {
|
|
220
|
-
type: 'event',
|
|
220
|
+
type: target.value.event.type || 'event',
|
|
221
221
|
alias: (target === null || target === void 0 ? void 0 : target.alias) || target.value.event.alias || ((_target$value$event3 = target.value.event) === null || _target$value$event3 === void 0 ? void 0 : _target$value$event3.name) || '',
|
|
222
222
|
eventId: (_target$value$event4 = target.value.event) === null || _target$value$event4 === void 0 ? void 0 : _target$value$event4.id,
|
|
223
223
|
eventName: ((_target$value$event5 = target.value.event) === null || _target$value$event5 === void 0 ? void 0 : _target$value$event5.alias) || ((_target$value$event6 = target.value.event) === null || _target$value$event6 === void 0 ? void 0 : _target$value$event6.name),
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.1.29-alpha.
|
|
3
|
+
"version": "1.1.29-alpha.2",
|
|
4
4
|
"scripts": {
|
|
5
5
|
"start": "dumi dev",
|
|
6
6
|
"docs:build": "dumi build",
|
|
@@ -59,5 +59,5 @@
|
|
|
59
59
|
"react": "^16.12.0 || ^17.0.0",
|
|
60
60
|
"yorkie": "^2.0.0"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "5fc87bd92fdba876713199dcb2b874c6156ea03c"
|
|
63
63
|
}
|