@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.
- package/es/userCondition/conditions/styles/eventCondition.less +1 -1
- package/es/userCondition/conditions/styles/tagsCondition.less +1 -1
- package/es/userCondition/conditions/tagsCondition.js +5 -0
- package/es/userCondition/conditions/textDesc.js +5 -0
- package/es/userCondition/demo/mockData.d.ts +1 -1
- package/es/userCondition/demo/mockData.js +1 -1
- package/package.json +2 -2
|
@@ -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];
|
|
@@ -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',
|
|
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.
|
|
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": "
|
|
61
|
+
"gitHead": "b9fbc29e1763a99246b7cccf08e322b4b019b21b"
|
|
62
62
|
}
|