@zgfe/business-lib 1.0.25-layers.0 → 1.0.25-layers.1

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.
@@ -42,7 +42,7 @@
42
42
  display: flex;
43
43
  align-items: center;
44
44
  min-width: 28px;
45
- height: 42px;
45
+ height: 34px;
46
46
  margin-right: @margin-xs;
47
47
  }
48
48
  &-runtimes {
@@ -8,7 +8,7 @@
8
8
  margin-left: @margin-xs;
9
9
  }
10
10
  &-label {
11
- line-height: 40px;
11
+ line-height: 32px;
12
12
  }
13
13
  &-value {
14
14
  flex: 1;
@@ -23,6 +23,7 @@ import { operatorMap } from './constants';
23
23
  import BizUserTagsSelect from '../../userTagsSelector';
24
24
  import './styles/tagsCondition.less';
25
25
  import { buildSelectLayer, buildTagsGroup } from '../util';
26
+ import _ from 'lodash';
26
27
  var options = [{
27
28
  value: 'equal',
28
29
  text: '是'
@@ -68,6 +69,10 @@ var TagsCondition = function TagsCondition(props) {
68
69
  var values = [];
69
70
  var findTag = buildSelectLayer(userTagsData);
70
71
  labels.values.forEach(function (value) {
72
+ if (_.isNumber(value)) {
73
+ return;
74
+ }
75
+
71
76
  var _value$split = value.split(':'),
72
77
  _value$split2 = _slicedToArray(_value$split, 2),
73
78
  layerId = _value$split2[1];
@@ -16,6 +16,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
16
16
 
17
17
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
18
18
 
19
+ import _ from 'lodash';
19
20
  import React, { useContext, useMemo } from 'react';
20
21
  import { BizUserConditionContext, classPrefix } from '..';
21
22
  import BizGlobalDataContext from '../../context';
@@ -186,6 +187,10 @@ var Text = function Text(props) {
186
187
  }, /*#__PURE__*/React.createElement("b", null, "\u7528\u6237\u6807\u7B7E")), /*#__PURE__*/React.createElement("span", null, /*#__PURE__*/React.createElement("b", null, operatorMap[labels.operator])), /*#__PURE__*/React.createElement("span", {
187
188
  className: "".concat(classPrefix, "-text-desc-value")
188
189
  }, /*#__PURE__*/React.createElement("span", null, "("), labels.values.map(function (value, index) {
190
+ if (_.isNumber(value)) {
191
+ return null;
192
+ }
193
+
189
194
  var _value$split = value.split(':'),
190
195
  _value$split2 = _slicedToArray(_value$split, 2),
191
196
  layerId = _value$split2[1];
@@ -28,6 +28,6 @@ export declare const conditions: {
28
28
  attrs: never[];
29
29
  labels: {
30
30
  operator: string;
31
- values: string[];
31
+ values: (string | number)[];
32
32
  };
33
33
  }[][];
@@ -197,6 +197,6 @@ export var conditions = [[{
197
197
  attrs: [],
198
198
  labels: {
199
199
  operator: 'equal',
200
- values: ['28:130003289636864', '29:130078364041217', '29:130078364041216', '29:130078364041218']
200
+ values: ['28:130003289636864', '29:130078364041217', '29:130078364041216', 130078364041218]
201
201
  }
202
202
  }]];
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.0.25-layers.0",
3
+ "version": "1.0.25-layers.1",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -58,5 +58,5 @@
58
58
  "react": "^16.12.0 || ^17.0.0",
59
59
  "yorkie": "^2.0.0"
60
60
  },
61
- "gitHead": "3f5bf3ac79c12018d7b44d15a42e6e715cd93f6d"
61
+ "gitHead": "b9fbc29e1763a99246b7cccf08e322b4b019b21b"
62
62
  }