@zgfe/business-lib 1.2.34-tags.5 → 1.2.34-tags.6

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,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
@@ -255,6 +255,7 @@ export declare namespace OrConditionsT {
255
255
  onChange: (value: any[]) => void;
256
256
  orConditions: BizUserConditionT.Conditions[number];
257
257
  showAndDesc: boolean;
258
+ labelCreateType?: number;
258
259
  }
259
260
  interface ShowItemI {
260
261
  id: number;
@@ -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 = {
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.2.34-tags.5",
3
+ "version": "1.2.34-tags.6",
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": "a6836869a453cbd6fa347034fe97adafb60cf059",
58
+ "gitHead": "344de037654d0c58623b39d7ab59c9fe2957b936",
59
59
  "gitHooks": {
60
60
  "pre-commit": "lint-staged"
61
61
  }