@zgfe/business-lib 1.2.34-tags.3 → 1.2.34-tags.5
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.
|
@@ -53,7 +53,6 @@ var PropCondition = function PropCondition(props) {
|
|
|
53
53
|
function buildDefault() {
|
|
54
54
|
var list = [];
|
|
55
55
|
attrs.forEach(function (attr) {
|
|
56
|
-
console.log('attr===', attr);
|
|
57
56
|
var attrId = attr.attrId,
|
|
58
57
|
attrName = attr.attrName,
|
|
59
58
|
operator = attr.operator,
|
|
@@ -152,7 +151,6 @@ var PropCondition = function PropCondition(props) {
|
|
|
152
151
|
if (isEvent) {
|
|
153
152
|
props.eventIdList = [eventId];
|
|
154
153
|
}
|
|
155
|
-
console.log('renderAttr', props);
|
|
156
154
|
return /*#__PURE__*/React.createElement("div", {
|
|
157
155
|
className: "".concat(classPrefix, "-prop-condition-attr"),
|
|
158
156
|
key: id
|
|
@@ -165,7 +165,7 @@ var BizUserCondition = function BizUserCondition(props) {
|
|
|
165
165
|
setDataList(showList);
|
|
166
166
|
}
|
|
167
167
|
function onAdd(type) {
|
|
168
|
-
console.log('props.labelCreateType', props.labelCreateType);
|
|
168
|
+
console.log('props.labelCreateType)', props.labelCreateType);
|
|
169
169
|
var condition = buildCondition(type, props.labelCreateType);
|
|
170
170
|
var newValue = [].concat(_toConsumableArray(value), [[condition]]);
|
|
171
171
|
setValue(newValue);
|
package/es/userCondition/util.js
CHANGED
|
@@ -6,7 +6,7 @@ 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
|
|
9
|
+
console.log('buildCondition', labelCreateType);
|
|
10
10
|
switch (type) {
|
|
11
11
|
case 'add':
|
|
12
12
|
var condition = {
|
|
@@ -54,7 +54,7 @@ export function buildCondition(type, labelCreateType) {
|
|
|
54
54
|
eventId: undefined,
|
|
55
55
|
attrs: [{
|
|
56
56
|
attrId: 0,
|
|
57
|
-
placeholder: labelCreateType === LabelCreateType.
|
|
57
|
+
placeholder: labelCreateType === LabelCreateType.riskLevel ? '风险等级' : ''
|
|
58
58
|
}]
|
|
59
59
|
};
|
|
60
60
|
case 'tag':
|
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.5",
|
|
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": "a6836869a453cbd6fa347034fe97adafb60cf059",
|
|
59
59
|
"gitHooks": {
|
|
60
60
|
"pre-commit": "lint-staged"
|
|
61
61
|
}
|