@zgfe/modules-interval 1.0.0-interval.42 → 1.0.0-interval.44

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.
@@ -26,6 +26,7 @@ var CancelToken = Request.CancelToken;
26
26
  var cancel;
27
27
  var classPrefix = 'interval-content';
28
28
  var EventContent = function EventContent(props) {
29
+ console.log(7777777, props);
29
30
  // 最后的查询数据(防止图表在还没查询时就改变了类型)
30
31
  var _useState = useState(props.value),
31
32
  _useState2 = _slicedToArray(_useState, 2),
@@ -118,12 +119,12 @@ var EventContent = function EventContent(props) {
118
119
  setLoading(false);
119
120
  return;
120
121
  }
121
- setLoading(true);
122
122
  setEventData(undefined);
123
+ setLoading(true);
123
124
  // 取消上次未完成的请求
124
- if (typeof cancel === 'function') {
125
- cancel();
126
- }
125
+ // if (typeof cancel === 'function') {
126
+ // cancel();
127
+ // }
127
128
  if (searchData !== null && searchData !== void 0 && (_searchData$associate = searchData.associatedNextAttr) !== null && _searchData$associate !== void 0 && _searchData$associate.type && (searchData === null || searchData === void 0 ? void 0 : (_searchData$associate2 = searchData.associatedPreAttr) === null || _searchData$associate2 === void 0 ? void 0 : _searchData$associate2.type) !== (searchData === null || searchData === void 0 ? void 0 : (_searchData$associate3 = searchData.associatedNextAttr) === null || _searchData$associate3 === void 0 ? void 0 : _searchData$associate3.type)) {
128
129
  setLoading(false);
129
130
  return message.error('您查询的属性不一致,暂不支持查询');
@@ -9,6 +9,7 @@ export declare namespace EventContentProps {
9
9
  * 默认值
10
10
  */
11
11
  value: SearchValue;
12
+ urlParam: SearchValue;
12
13
  /**
13
14
  * 展示列表
14
15
  */
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-interval",
3
- "version": "1.0.0-interval.42",
3
+ "version": "1.0.0-interval.44",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",