@zgfe/business-lib 1.2.34-tags.9 → 1.2.35-ht.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/es/attrCondition/useAttrCondition.d.ts +0 -1
- package/es/attrCondition/useAttrCondition.js +2 -6
- package/es/attrConditions/index.js +0 -2
- package/es/attrConditions/types.d.ts +0 -1
- package/es/chart/index.js +7 -1
- package/es/chart/types.d.ts +1 -0
- package/es/datePicker/utils.js +1 -1
- package/es/eventSelector/demo/index.js +1 -0
- package/es/eventSelector/index.js +13 -2
- package/es/eventSelector/styles/index.less +16 -0
- package/es/eventSelector/types.d.ts +2 -0
- package/es/userCondition/conditions/eventCondition.js +1 -1
- package/es/userCondition/conditions/propCondition.js +1 -9
- package/es/userCondition/conditions/textDesc.js +1 -1
- package/es/userCondition/demo/index.js +1 -1
- package/es/userCondition/index.js +1 -2
- package/es/userCondition/orConditions.js +1 -1
- package/es/userCondition/types.d.ts +1 -9
- package/es/userCondition/types.js +0 -3
- package/es/userCondition/util.d.ts +1 -1
- package/es/userCondition/util.js +3 -5
- package/package.json +2 -2
|
@@ -11,6 +11,5 @@ declare const useAttrCondition: (props: AttrConditionTypes.ItemProp) => {
|
|
|
11
11
|
onChangeAttr: (attrData: AttributeSelect.Value) => void;
|
|
12
12
|
onChangeOperate: (data: any) => void;
|
|
13
13
|
onChangeValues: (data: any) => void;
|
|
14
|
-
placeholder: string | undefined;
|
|
15
14
|
};
|
|
16
15
|
export default useAttrCondition;
|
|
@@ -8,7 +8,7 @@ import { useEffect, useState } from 'react';
|
|
|
8
8
|
import { PropCategory } from '../attributeSelector/types';
|
|
9
9
|
import { getCondition } from '../attrConditions';
|
|
10
10
|
var useAttrCondition = function useAttrCondition(props) {
|
|
11
|
-
var _props$defaultValue, _props$value, _props$defaultValue2, _props$value2
|
|
11
|
+
var _props$defaultValue, _props$value, _props$defaultValue2, _props$value2;
|
|
12
12
|
var _useState = useState(),
|
|
13
13
|
_useState2 = _slicedToArray(_useState, 2),
|
|
14
14
|
attr = _useState2[0],
|
|
@@ -25,9 +25,6 @@ var useAttrCondition = function useAttrCondition(props) {
|
|
|
25
25
|
_useState8 = _slicedToArray(_useState7, 2),
|
|
26
26
|
loading = _useState8[0],
|
|
27
27
|
setLoading = _useState8[1];
|
|
28
|
-
var _useState9 = useState(((_props$defaultValue3 = props.defaultValue) === null || _props$defaultValue3 === void 0 ? void 0 : _props$defaultValue3.placeholder) || ((_props$value3 = props.value) === null || _props$value3 === void 0 ? void 0 : _props$value3.placeholder)),
|
|
29
|
-
_useState10 = _slicedToArray(_useState9, 1),
|
|
30
|
-
placeholder = _useState10[0];
|
|
31
28
|
useEffect(function () {
|
|
32
29
|
var data = props.defaultValue || props.value;
|
|
33
30
|
if (data) {
|
|
@@ -103,8 +100,7 @@ var useAttrCondition = function useAttrCondition(props) {
|
|
|
103
100
|
onDelete: onDelete,
|
|
104
101
|
onChangeAttr: onChangeAttr,
|
|
105
102
|
onChangeOperate: onChangeOperate,
|
|
106
|
-
onChangeValues: onChangeValues
|
|
107
|
-
placeholder: placeholder
|
|
103
|
+
onChangeValues: onChangeValues
|
|
108
104
|
};
|
|
109
105
|
};
|
|
110
106
|
export default useAttrCondition;
|
|
@@ -54,7 +54,6 @@ var BizConditionItem = function BizConditionItem(props) {
|
|
|
54
54
|
attr = _useAttrCondition.attr,
|
|
55
55
|
operate = _useAttrCondition.operate,
|
|
56
56
|
values = _useAttrCondition.values,
|
|
57
|
-
placeholder = _useAttrCondition.placeholder,
|
|
58
57
|
onChangeAttr = _useAttrCondition.onChangeAttr,
|
|
59
58
|
onChangeOperate = _useAttrCondition.onChangeOperate,
|
|
60
59
|
onChangeValues = _useAttrCondition.onChangeValues,
|
|
@@ -74,7 +73,6 @@ var BizConditionItem = function BizConditionItem(props) {
|
|
|
74
73
|
enableEventProp: enableEventProp,
|
|
75
74
|
enableUserProp: enableUserProp,
|
|
76
75
|
enableEnvProp: enableEnvProp,
|
|
77
|
-
placeholder: placeholder,
|
|
78
76
|
disableItemList: disableItemList,
|
|
79
77
|
onChange: onChangeAttr,
|
|
80
78
|
onDelete: function onDelete(_data, e) {
|
package/es/chart/index.js
CHANGED
|
@@ -42,7 +42,8 @@ var BizChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
42
42
|
autoHeight = props.autoHeight,
|
|
43
43
|
isHideLegend = props.isHideLegend,
|
|
44
44
|
tooltipTrigger = props.tooltipTrigger,
|
|
45
|
-
muit_yAxis = props.muit_yAxis
|
|
45
|
+
muit_yAxis = props.muit_yAxis,
|
|
46
|
+
unContainLabel = props.unContainLabel;
|
|
46
47
|
var _useState = useState({}),
|
|
47
48
|
_useState2 = _slicedToArray(_useState, 2),
|
|
48
49
|
chartOption = _useState2[0],
|
|
@@ -117,6 +118,11 @@ var BizChart = /*#__PURE__*/React.forwardRef(function (props, ref) {
|
|
|
117
118
|
eOption.grid.right = '1%';
|
|
118
119
|
eOption.grid.left = '1%';
|
|
119
120
|
}
|
|
121
|
+
if (type === 'muit_y' && unContainLabel) {
|
|
122
|
+
eOption.grid.right = '130';
|
|
123
|
+
eOption.grid.left = '50';
|
|
124
|
+
eOption.grid.containLabel = false;
|
|
125
|
+
}
|
|
120
126
|
} else if (type === 'map') {
|
|
121
127
|
var series = isCity ? citySeries(data) : provinceSeries(data);
|
|
122
128
|
var maxMin = maxMinValue(series[0]);
|
package/es/chart/types.d.ts
CHANGED
package/es/datePicker/utils.js
CHANGED
|
@@ -25,7 +25,7 @@ function getAbsoluteDate(unit, count, maxDate) {
|
|
|
25
25
|
case DatePickerTypes.Unit.quarter:
|
|
26
26
|
res.endDate = maxDate;
|
|
27
27
|
var firstOfQuarter = new Date(maxDate.getTime() - (maxDate.getDate() - 1) * dayTime);
|
|
28
|
-
firstOfQuarter.setMonth(firstOfQuarter.getMonth()
|
|
28
|
+
firstOfQuarter.setMonth(firstOfQuarter.getMonth() - firstOfQuarter.getMonth() % 3 - 3 * (count - 1));
|
|
29
29
|
res.startDate = new Date(firstOfQuarter);
|
|
30
30
|
break;
|
|
31
31
|
}
|
|
@@ -21,6 +21,7 @@ var EventDemo = function EventDemo() {
|
|
|
21
21
|
console.log('选中值', data);
|
|
22
22
|
};
|
|
23
23
|
return /*#__PURE__*/React.createElement(InnerDemo, null, /*#__PURE__*/React.createElement(BizEventSelector, {
|
|
24
|
+
enableDelete: true,
|
|
24
25
|
showAllEvent: false,
|
|
25
26
|
showBuiltInTarget: false,
|
|
26
27
|
popupContainer: false,
|
|
@@ -13,6 +13,7 @@ import './styles/index.less';
|
|
|
13
13
|
import { BuiltinIndicators } from '../constants/common';
|
|
14
14
|
import _ from 'lodash';
|
|
15
15
|
import useChanged from '../hooks/useChanged';
|
|
16
|
+
import BizTargetOptionIcon from '../targetSelector/optionIcon';
|
|
16
17
|
export var classPrefix = 'biz-event-select';
|
|
17
18
|
var BizEventSelector = function BizEventSelector(props) {
|
|
18
19
|
var alias = props.alias,
|
|
@@ -21,7 +22,8 @@ var BizEventSelector = function BizEventSelector(props) {
|
|
|
21
22
|
border = props.border,
|
|
22
23
|
theme = props.theme,
|
|
23
24
|
defaultSelectAble = props.defaultSelectAble,
|
|
24
|
-
disableVirtualEventShow = props.disableVirtualEventShow
|
|
25
|
+
disableVirtualEventShow = props.disableVirtualEventShow,
|
|
26
|
+
enableDelete = props.enableDelete;
|
|
25
27
|
var _useState = useState(),
|
|
26
28
|
_useState2 = _slicedToArray(_useState, 2),
|
|
27
29
|
currentValue = _useState2[0],
|
|
@@ -60,6 +62,9 @@ var BizEventSelector = function BizEventSelector(props) {
|
|
|
60
62
|
setCurrentValue(data);
|
|
61
63
|
}
|
|
62
64
|
}, props.value);
|
|
65
|
+
function onDelete(e) {
|
|
66
|
+
if (props.onDelete) props.onDelete(currentValue, e);
|
|
67
|
+
}
|
|
63
68
|
var getValue = function getValue(param) {
|
|
64
69
|
var res = {};
|
|
65
70
|
var allEvents = props.showBuiltInTarget ? eventGroupList === null || eventGroupList === void 0 ? void 0 : eventGroupList.concat(BuiltinIndicators) : eventGroupList;
|
|
@@ -145,7 +150,13 @@ var BizEventSelector = function BizEventSelector(props) {
|
|
|
145
150
|
}, [visible]);
|
|
146
151
|
return /*#__PURE__*/React.createElement("div", {
|
|
147
152
|
className: [classPrefix, border ? 'border' : ''].join(' ')
|
|
148
|
-
}, /*#__PURE__*/React.createElement(
|
|
153
|
+
}, enableDelete ? /*#__PURE__*/React.createElement(BizTargetOptionIcon, {
|
|
154
|
+
name: "delete",
|
|
155
|
+
icon: "qingchu",
|
|
156
|
+
title: "\u5220\u9664",
|
|
157
|
+
enabled: true,
|
|
158
|
+
onClick: onDelete
|
|
159
|
+
}) : null, /*#__PURE__*/React.createElement(Dropdown, {
|
|
149
160
|
dropdownRender: function dropdownRender() {
|
|
150
161
|
return /*#__PURE__*/React.createElement(EventListPanel, {
|
|
151
162
|
value: props.multiple ? checkedEventList : currentValue,
|
|
@@ -3,6 +3,22 @@
|
|
|
3
3
|
.biz-event-select {
|
|
4
4
|
position: relative;
|
|
5
5
|
border-radius: 4px;
|
|
6
|
+
.__select-handle();
|
|
7
|
+
|
|
8
|
+
&:hover {
|
|
9
|
+
.biz-target-select-option-icon {
|
|
10
|
+
display: flex;
|
|
11
|
+
align-items: center;
|
|
12
|
+
justify-content: center;
|
|
13
|
+
float: right;
|
|
14
|
+
margin-top: 4px;
|
|
15
|
+
}
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
.biz-event-select-handle {
|
|
19
|
+
border: none !important;
|
|
20
|
+
}
|
|
21
|
+
|
|
6
22
|
&.border {
|
|
7
23
|
.biz-event-select-handle {
|
|
8
24
|
.__select-handle();
|
|
@@ -31,12 +31,14 @@ export declare namespace EventSelectTypes {
|
|
|
31
31
|
placeholder?: string;
|
|
32
32
|
showAllEvent?: boolean;
|
|
33
33
|
popupContainer?: boolean;
|
|
34
|
+
enableDelete?: boolean;
|
|
34
35
|
onVisibleChange?: (visible: boolean) => void;
|
|
35
36
|
border?: boolean;
|
|
36
37
|
theme?: string;
|
|
37
38
|
size?: SizeType;
|
|
38
39
|
destroyPopupOnHide?: boolean;
|
|
39
40
|
onChange?: (val: Value | AnalysisEvent[]) => void;
|
|
41
|
+
onDelete?: (val: Value | AnalysisEvent[] | undefined, e: Value | AnalysisEvent[]) => void;
|
|
40
42
|
filter?: (evt: AnalysisEvent) => boolean;
|
|
41
43
|
disableVirtualEventShow?: boolean;
|
|
42
44
|
}
|
|
@@ -107,7 +107,7 @@ var EventCondition = function EventCondition(props) {
|
|
|
107
107
|
onChange: onEventChange,
|
|
108
108
|
border: false,
|
|
109
109
|
theme: "normal",
|
|
110
|
-
placeholder:
|
|
110
|
+
placeholder: "\u9009\u62E9\u4E00\u4E2A\u4E8B\u4EF6",
|
|
111
111
|
destroyPopupOnHide: true,
|
|
112
112
|
defaultSelectAble: false,
|
|
113
113
|
popupContainer: false
|
|
@@ -55,8 +55,7 @@ var PropCondition = function PropCondition(props) {
|
|
|
55
55
|
attrs.forEach(function (attr) {
|
|
56
56
|
var attrId = attr.attrId,
|
|
57
57
|
attrName = attr.attrName,
|
|
58
|
-
operator = attr.operator
|
|
59
|
-
placeholder = attr.placeholder;
|
|
58
|
+
operator = attr.operator;
|
|
60
59
|
if ((attrName || attrId) && operator) {
|
|
61
60
|
attr.operator = transformNumberOperate(operator, false);
|
|
62
61
|
list.push({
|
|
@@ -67,7 +66,6 @@ var PropCondition = function PropCondition(props) {
|
|
|
67
66
|
} else {
|
|
68
67
|
list.push({
|
|
69
68
|
attr: attr,
|
|
70
|
-
placeholder: placeholder,
|
|
71
69
|
id: Math.random()
|
|
72
70
|
});
|
|
73
71
|
}
|
|
@@ -140,12 +138,6 @@ var PropCondition = function PropCondition(props) {
|
|
|
140
138
|
if (userPropsMap[attrName] && userPropsMap[attrName].subtype) {
|
|
141
139
|
props.defaultValue.subtype = userPropsMap[attrName].subtype;
|
|
142
140
|
}
|
|
143
|
-
} else {
|
|
144
|
-
if (item.placeholder) {
|
|
145
|
-
props.value = _objectSpread(_objectSpread({}, props.value), {}, {
|
|
146
|
-
placeholder: item.placeholder || ''
|
|
147
|
-
});
|
|
148
|
-
}
|
|
149
141
|
}
|
|
150
142
|
if (isEvent) {
|
|
151
143
|
props.eventIdList = [eventId];
|
|
@@ -336,7 +336,7 @@ var Text = function Text(props) {
|
|
|
336
336
|
style: {
|
|
337
337
|
margin: '0 4px'
|
|
338
338
|
}
|
|
339
|
-
}, "\u6216") : null, tag && (tag[1].labelCreateType === LabelCreateType.firstAndLastUpdate || tag[1].labelCreateType === LabelCreateType.fundingSource || tag[1].labelCreateType === LabelCreateType.eventPreference || tag[1].labelCreateType === LabelCreateType.sqlCreateTable) && /*#__PURE__*/React.createElement("span", null, tag && tag[1].labelName), tag && (tag[1].labelCreateType === LabelCreateType.autoUpdate || tag[1].labelCreateType === LabelCreateType.manualUpdate || tag[1].labelCreateType === LabelCreateType.recencyFrequencyMonetaryUpdate || tag[1].labelCreateType === LabelCreateType.labelOpenApi || tag[1].labelCreateType === LabelCreateType.
|
|
339
|
+
}, "\u6216") : null, tag && (tag[1].labelCreateType === LabelCreateType.firstAndLastUpdate || tag[1].labelCreateType === LabelCreateType.fundingSource || tag[1].labelCreateType === LabelCreateType.eventPreference || tag[1].labelCreateType === LabelCreateType.sqlCreateTable) && /*#__PURE__*/React.createElement("span", null, tag && tag[1].labelName), tag && (tag[1].labelCreateType === LabelCreateType.autoUpdate || tag[1].labelCreateType === LabelCreateType.manualUpdate || tag[1].labelCreateType === LabelCreateType.recencyFrequencyMonetaryUpdate || tag[1].labelCreateType === LabelCreateType.labelOpenApi || tag[1].labelCreateType === LabelCreateType.aum) && /*#__PURE__*/React.createElement("span", null, tag && tag[1].labelName + ':' + ((_tag$ = tag[2]) === null || _tag$ === void 0 ? void 0 : _tag$.layerLabelName)));
|
|
340
340
|
}), /*#__PURE__*/React.createElement("span", null, ")")));
|
|
341
341
|
}
|
|
342
342
|
function renderCdp(condition) {
|
|
@@ -165,7 +165,7 @@ var BizUserCondition = function BizUserCondition(props) {
|
|
|
165
165
|
setDataList(showList);
|
|
166
166
|
}
|
|
167
167
|
function onAdd(type) {
|
|
168
|
-
var condition = buildCondition(type
|
|
168
|
+
var condition = buildCondition(type);
|
|
169
169
|
var newValue = [].concat(_toConsumableArray(value), [[condition]]);
|
|
170
170
|
setValue(newValue);
|
|
171
171
|
var newData = {
|
|
@@ -252,7 +252,6 @@ var BizUserCondition = function BizUserCondition(props) {
|
|
|
252
252
|
return /*#__PURE__*/React.createElement(OrConditions, {
|
|
253
253
|
showAndDesc: i > 0,
|
|
254
254
|
orConditions: item.orConditions,
|
|
255
|
-
labelCreateType: props.labelCreateType,
|
|
256
255
|
key: item.id,
|
|
257
256
|
onChange: function onChange(data) {
|
|
258
257
|
_onChange(item.id, data);
|
|
@@ -55,7 +55,7 @@ var OrConditions = function OrConditions(props) {
|
|
|
55
55
|
setShowList(showList);
|
|
56
56
|
}
|
|
57
57
|
function onAdd(type) {
|
|
58
|
-
var condition = buildCondition(type
|
|
58
|
+
var condition = buildCondition(type);
|
|
59
59
|
var newData = {
|
|
60
60
|
id: Math.random(),
|
|
61
61
|
condition: condition
|
|
@@ -21,10 +21,7 @@ export declare enum LabelCreateType {
|
|
|
21
21
|
eventPreference = 6,
|
|
22
22
|
sqlCreateTable = 8,
|
|
23
23
|
aum = 9,
|
|
24
|
-
fundingSource = 10
|
|
25
|
-
lostUser = 11,
|
|
26
|
-
riskLevel = 12,
|
|
27
|
-
financeValue = 13
|
|
24
|
+
fundingSource = 10
|
|
28
25
|
}
|
|
29
26
|
export interface RunTimesI {
|
|
30
27
|
operator: '>' | '=' | '<' | '>=' | '<=' | '>=' | 'not equal' | 'between';
|
|
@@ -69,7 +66,6 @@ export declare namespace BizUserConditionT {
|
|
|
69
66
|
openOrderDataCondition?: boolean;
|
|
70
67
|
openCondition?: boolean;
|
|
71
68
|
cdpTip?: string;
|
|
72
|
-
labelCreateType?: number;
|
|
73
69
|
}
|
|
74
70
|
interface BusinessPropsI {
|
|
75
71
|
dataId: number;
|
|
@@ -113,7 +109,6 @@ export declare namespace BizUserConditionT {
|
|
|
113
109
|
attrType: 'cont-string' | 'cont-num' | 'cont-date';
|
|
114
110
|
category: 'fixed' | 'custom';
|
|
115
111
|
propCategory?: string;
|
|
116
|
-
placeholder?: string;
|
|
117
112
|
}
|
|
118
113
|
interface AttrsCondition {
|
|
119
114
|
attrId: number;
|
|
@@ -142,7 +137,6 @@ export declare namespace BizUserConditionT {
|
|
|
142
137
|
runTimes: RunTimesI;
|
|
143
138
|
runPeriod: RunPeriodI;
|
|
144
139
|
eventId: number;
|
|
145
|
-
placeholder?: string;
|
|
146
140
|
}
|
|
147
141
|
interface AddCondition {
|
|
148
142
|
eventId: '-3';
|
|
@@ -256,7 +250,6 @@ export declare namespace OrConditionsT {
|
|
|
256
250
|
onChange: (value: any[]) => void;
|
|
257
251
|
orConditions: BizUserConditionT.Conditions[number];
|
|
258
252
|
showAndDesc: boolean;
|
|
259
|
-
labelCreateType?: number;
|
|
260
253
|
}
|
|
261
254
|
interface ShowItemI {
|
|
262
255
|
id: number;
|
|
@@ -277,7 +270,6 @@ export declare namespace PropConditionType {
|
|
|
277
270
|
attr: BizUserConditionT.AttrCondition;
|
|
278
271
|
id: number;
|
|
279
272
|
default?: BizUserConditionT.AttrCondition;
|
|
280
|
-
placeholder?: string;
|
|
281
273
|
}[];
|
|
282
274
|
interface PropsI extends AllConditionBasePropsI<any> {
|
|
283
275
|
isEvent?: boolean;
|
|
@@ -10,9 +10,6 @@ export var LabelCreateType;
|
|
|
10
10
|
LabelCreateType[LabelCreateType["sqlCreateTable"] = 8] = "sqlCreateTable";
|
|
11
11
|
LabelCreateType[LabelCreateType["aum"] = 9] = "aum";
|
|
12
12
|
LabelCreateType[LabelCreateType["fundingSource"] = 10] = "fundingSource";
|
|
13
|
-
LabelCreateType[LabelCreateType["lostUser"] = 11] = "lostUser";
|
|
14
|
-
LabelCreateType[LabelCreateType["riskLevel"] = 12] = "riskLevel";
|
|
15
|
-
LabelCreateType[LabelCreateType["financeValue"] = 13] = "financeValue";
|
|
16
13
|
})(LabelCreateType || (LabelCreateType = {}));
|
|
17
14
|
export var PropType;
|
|
18
15
|
(function (PropType) {
|
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
import type { GlobalContextProps } from '../context';
|
|
2
2
|
import type { BizUserConditionT, Unpacked } from './types';
|
|
3
|
-
export declare function buildCondition(type: BizUserConditionT.ConditionType
|
|
3
|
+
export declare function buildCondition(type: BizUserConditionT.ConditionType): BizUserConditionT.BusinessCondition | BizUserConditionT.EventCondition | BizUserConditionT.AddCondition | BizUserConditionT.OrderCondition | BizUserConditionT.ActiveCondition | BizUserConditionT.PropCondition | BizUserConditionT.CdpCondition | BizUserConditionT.CdpCshCondition;
|
|
4
4
|
export declare function transformNumberOperate(key: string, output?: boolean): string;
|
|
5
5
|
export declare function findEvent(eventId: number, eventGroupList: Unpacked<GlobalContextProps, 'eventGroupList'>): import("../attributeSelector/types").AnalysisEvent | null;
|
|
6
6
|
export declare function findPropAndEnv(name: string, list: Unpacked<GlobalContextProps, 'userPropList' | 'eventEnvList'>): import("../attributeSelector/types").UserProp | import("../attributeSelector/types").EnvProp | null;
|
package/es/userCondition/util.js
CHANGED
|
@@ -5,7 +5,7 @@ function _defineProperty(obj, key, value) { key = _toPropertyKey(key); if (key i
|
|
|
5
5
|
function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _typeof(key) === "symbol" ? key : String(key); }
|
|
6
6
|
function _toPrimitive(input, hint) { if (_typeof(input) !== "object" || input === null) return input; var prim = input[Symbol.toPrimitive]; if (prim !== undefined) { var res = prim.call(input, hint || "default"); if (_typeof(res) !== "object") return res; throw new TypeError("@@toPrimitive must return a primitive value."); } return (hint === "string" ? String : Number)(input); }
|
|
7
7
|
import { LabelCreateType } from './types';
|
|
8
|
-
export function buildCondition(type
|
|
8
|
+
export function buildCondition(type) {
|
|
9
9
|
switch (type) {
|
|
10
10
|
case 'add':
|
|
11
11
|
var condition = {
|
|
@@ -46,15 +46,13 @@ export function buildCondition(type, labelCreateType) {
|
|
|
46
46
|
runPeriod: {
|
|
47
47
|
operator: 'relative',
|
|
48
48
|
values: ['30', '0']
|
|
49
|
-
}
|
|
50
|
-
placeholder: labelCreateType === LabelCreateType.lostUser ? '进入App' : ''
|
|
49
|
+
}
|
|
51
50
|
};
|
|
52
51
|
case 'prop':
|
|
53
52
|
return {
|
|
54
53
|
eventId: undefined,
|
|
55
54
|
attrs: [{
|
|
56
|
-
attrId: 0
|
|
57
|
-
placeholder: labelCreateType === LabelCreateType.riskLevel ? '风险等级' : ''
|
|
55
|
+
attrId: 0
|
|
58
56
|
}]
|
|
59
57
|
};
|
|
60
58
|
case 'tag':
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.2.
|
|
3
|
+
"version": "1.2.35-ht.0",
|
|
4
4
|
"module": "es/index.js",
|
|
5
5
|
"typings": "es/index.d.ts",
|
|
6
6
|
"files": [
|
|
@@ -55,7 +55,7 @@
|
|
|
55
55
|
"react": "^16.12.0 || ^17.0.0",
|
|
56
56
|
"yorkie": "^2.0.0"
|
|
57
57
|
},
|
|
58
|
-
"gitHead": "
|
|
58
|
+
"gitHead": "731dd9549eebf3b2a5df3fd079d4c3211672b079",
|
|
59
59
|
"gitHooks": {
|
|
60
60
|
"pre-commit": "lint-staged"
|
|
61
61
|
}
|