@zgfe/modules-interval 1.0.23-zhongyuan.6 → 1.0.23-zhongyuan.7
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.
|
@@ -18,7 +18,8 @@ import _ from 'lodash';
|
|
|
18
18
|
var classPrefix = 'interval-box';
|
|
19
19
|
var EventFilter = function EventFilter(props) {
|
|
20
20
|
var _useContext = useContext(BizGlobalDataContext),
|
|
21
|
-
eventIdMap = _useContext.eventIdMap
|
|
21
|
+
eventIdMap = _useContext.eventIdMap,
|
|
22
|
+
envs = _useContext.envs;
|
|
22
23
|
// 筛选条件个数
|
|
23
24
|
var _useState = useState(0),
|
|
24
25
|
_useState2 = _slicedToArray(_useState, 2),
|
|
@@ -95,8 +96,8 @@ var EventFilter = function EventFilter(props) {
|
|
|
95
96
|
return;
|
|
96
97
|
}
|
|
97
98
|
// 最多可添加10条属性筛选
|
|
98
|
-
if (count >= 10) {
|
|
99
|
-
message.error(
|
|
99
|
+
if (count >= ((envs === null || envs === void 0 ? void 0 : envs.propertyNum) || 10)) {
|
|
100
|
+
message.error("\u6700\u591A\u53EF\u6DFB\u52A0 ".concat((envs === null || envs === void 0 ? void 0 : envs.propertyNum) || 10, " \u6761\u5C5E\u6027\u7B5B\u9009"));
|
|
100
101
|
return;
|
|
101
102
|
}
|
|
102
103
|
setIsAdd(true);
|
|
@@ -169,9 +170,9 @@ var EventFilter = function EventFilter(props) {
|
|
|
169
170
|
placeholder: "\u8BF7\u9009\u62E9\u4E8B\u4EF6"
|
|
170
171
|
}), /*#__PURE__*/React.createElement(React.Fragment, null, /*#__PURE__*/React.createElement(Tooltip, {
|
|
171
172
|
placement: "top",
|
|
172
|
-
title: !eventOverview ? '请先选择目标事件' : count < 10 ? '添加属性筛选' :
|
|
173
|
+
title: !eventOverview ? '请先选择目标事件' : count < ((envs === null || envs === void 0 ? void 0 : envs.propertyNum) || 10) ? '添加属性筛选' : "\u6700\u591A\u53EF\u6DFB\u52A0 ".concat((envs === null || envs === void 0 ? void 0 : envs.propertyNum) || 10, " \u6761\u5C5E\u6027\u7B5B\u9009")
|
|
173
174
|
}, /*#__PURE__*/React.createElement(IconFont, {
|
|
174
|
-
className: "".concat(count >= 10 || event.id === -1 || !eventOverview ? 'disable' : ''),
|
|
175
|
+
className: "".concat(count >= ((envs === null || envs === void 0 ? void 0 : envs.propertyNum) || 10) || event.id === -1 || !eventOverview ? 'disable' : ''),
|
|
175
176
|
type: "shaixuan",
|
|
176
177
|
onClick: function onClick() {
|
|
177
178
|
return onAdd();
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zgfe/modules-interval",
|
|
3
|
-
"version": "1.0.23-zhongyuan.
|
|
3
|
+
"version": "1.0.23-zhongyuan.7",
|
|
4
4
|
"private": false,
|
|
5
5
|
"module": "dist/esm/index.js",
|
|
6
6
|
"typings": "dist/esm/index.d.ts",
|
|
@@ -59,7 +59,7 @@
|
|
|
59
59
|
"publishConfig": {
|
|
60
60
|
"access": "public"
|
|
61
61
|
},
|
|
62
|
-
"gitHead": "
|
|
62
|
+
"gitHead": "a87d5d2364b644df413e5fc3aa2092302252be5a",
|
|
63
63
|
"gitHooks": {
|
|
64
64
|
"pre-commit": "lint-staged"
|
|
65
65
|
}
|