@zgfe/business-lib 1.2.34-tags.2 → 1.2.34-tags.3
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.
|
@@ -165,6 +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
169
|
var condition = buildCondition(type, props.labelCreateType);
|
|
169
170
|
var newValue = [].concat(_toConsumableArray(value), [[condition]]);
|
|
170
171
|
setValue(newValue);
|
package/es/userCondition/util.js
CHANGED
|
@@ -6,6 +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===', labelCreateType);
|
|
9
10
|
switch (type) {
|
|
10
11
|
case 'add':
|
|
11
12
|
var condition = {
|
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.3",
|
|
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": "760269485184f625d95905cd8299b8e3c1cc56c0",
|
|
59
59
|
"gitHooks": {
|
|
60
60
|
"pre-commit": "lint-staged"
|
|
61
61
|
}
|