@zgfe/business-lib 1.2.34-tags.5 → 1.2.34-tags.7
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.
|
@@ -43,12 +43,11 @@ export default (function () {
|
|
|
43
43
|
openTagCondition: true,
|
|
44
44
|
openCdpCondition: true,
|
|
45
45
|
userTagsData: userTagsData,
|
|
46
|
-
labelCreateType: 12,
|
|
47
46
|
isRealTime: true
|
|
48
47
|
});
|
|
49
48
|
return /*#__PURE__*/React.createElement(DemoWrapper, {
|
|
50
49
|
needMeta: true,
|
|
51
|
-
defaultApp:
|
|
50
|
+
defaultApp: 99825
|
|
52
51
|
}, /*#__PURE__*/React.createElement("div", {
|
|
53
52
|
style: {
|
|
54
53
|
display: 'inline-block'
|
|
@@ -165,7 +165,6 @@ var BizUserCondition = function BizUserCondition(props) {
|
|
|
165
165
|
setDataList(showList);
|
|
166
166
|
}
|
|
167
167
|
function onAdd(type) {
|
|
168
|
-
console.log('props.labelCreateType)', props.labelCreateType);
|
|
169
168
|
var condition = buildCondition(type, props.labelCreateType);
|
|
170
169
|
var newValue = [].concat(_toConsumableArray(value), [[condition]]);
|
|
171
170
|
setValue(newValue);
|
|
@@ -253,6 +252,7 @@ var BizUserCondition = function BizUserCondition(props) {
|
|
|
253
252
|
return /*#__PURE__*/React.createElement(OrConditions, {
|
|
254
253
|
showAndDesc: i > 0,
|
|
255
254
|
orConditions: item.orConditions,
|
|
255
|
+
labelCreateType: props.labelCreateType,
|
|
256
256
|
key: item.id,
|
|
257
257
|
onChange: function onChange(data) {
|
|
258
258
|
_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, props.labelCreateType);
|
|
59
59
|
var newData = {
|
|
60
60
|
id: Math.random(),
|
|
61
61
|
condition: condition
|
|
@@ -142,6 +142,7 @@ export declare namespace BizUserConditionT {
|
|
|
142
142
|
runTimes: RunTimesI;
|
|
143
143
|
runPeriod: RunPeriodI;
|
|
144
144
|
eventId: number;
|
|
145
|
+
placeholder?: string;
|
|
145
146
|
}
|
|
146
147
|
interface AddCondition {
|
|
147
148
|
eventId: '-3';
|
|
@@ -255,6 +256,7 @@ export declare namespace OrConditionsT {
|
|
|
255
256
|
onChange: (value: any[]) => void;
|
|
256
257
|
orConditions: BizUserConditionT.Conditions[number];
|
|
257
258
|
showAndDesc: boolean;
|
|
259
|
+
labelCreateType?: number;
|
|
258
260
|
}
|
|
259
261
|
interface ShowItemI {
|
|
260
262
|
id: number;
|
package/es/userCondition/util.js
CHANGED
|
@@ -6,7 +6,6 @@ function _toPropertyKey(arg) { var key = _toPrimitive(arg, "string"); return _ty
|
|
|
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
8
|
export function buildCondition(type, labelCreateType) {
|
|
9
|
-
console.log('buildCondition', labelCreateType);
|
|
10
9
|
switch (type) {
|
|
11
10
|
case 'add':
|
|
12
11
|
var condition = {
|
|
@@ -47,7 +46,8 @@ export function buildCondition(type, labelCreateType) {
|
|
|
47
46
|
runPeriod: {
|
|
48
47
|
operator: 'relative',
|
|
49
48
|
values: ['30', '0']
|
|
50
|
-
}
|
|
49
|
+
},
|
|
50
|
+
placeholder: labelCreateType === LabelCreateType.lostUser ? '进入App' : ''
|
|
51
51
|
};
|
|
52
52
|
case 'prop':
|
|
53
53
|
return {
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/business-lib",
|
|
3
|
-
"version": "1.2.34-tags.
|
|
3
|
+
"version": "1.2.34-tags.7",
|
|
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": "014f69ab6cb5a46dc8469c94898f302878902516",
|
|
59
59
|
"gitHooks": {
|
|
60
60
|
"pre-commit": "lint-staged"
|
|
61
61
|
}
|