@zgfe/modules-event 1.0.5-heyh.0 → 1.0.5-heyh.2

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.
@@ -32,10 +32,6 @@ var SearchPanel = function SearchPanel(props) {
32
32
  _useState4 = _slicedToArray(_useState3, 2),
33
33
  chart = _useState4[0],
34
34
  setChart = _useState4[1];
35
- var _useState5 = useState(0),
36
- _useState6 = _slicedToArray(_useState5, 2),
37
- timer = _useState6[0],
38
- setTimer = _useState6[1];
39
35
  var currentNormalOptions = analysisSubjectType === 'user' ? normalOptions : normalEventOptions;
40
36
  console.log('analysisSubjectType: ', analysisSubjectType);
41
37
  useEffect(function () {
@@ -59,14 +55,11 @@ var SearchPanel = function SearchPanel(props) {
59
55
  }
60
56
  }, [props.enableSelectChart]);
61
57
  var onChangeTime = function onChangeTime(val) {
62
- if (timer) clearTimeout(timer);
63
- setTimer(setTimeout(function () {
64
- setTime(val);
65
- props.onChange && props.onChange(_objectSpread({
66
- time: val,
67
- chartType: chart.value
68
- }, dimension));
69
- }, 10));
58
+ setTime(val);
59
+ props.onChange && props.onChange(_objectSpread({
60
+ time: val,
61
+ chartType: chart.value
62
+ }, dimension));
70
63
  };
71
64
  var onChange = function onChange(val) {
72
65
  setChart(val);
@@ -90,9 +90,7 @@ var ModuleEvent = function ModuleEvent(props) {
90
90
  } else {
91
91
  initSearch();
92
92
  }
93
- setTimeout(function () {
94
- setPageLoading(false);
95
- }, 0);
93
+ setPageLoading(false);
96
94
  }, []);
97
95
  var initSearch = function initSearch(userGroup) {
98
96
  setSearchData({
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/modules-event",
3
- "version": "1.0.5-heyh.0",
3
+ "version": "1.0.5-heyh.2",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -49,7 +49,7 @@
49
49
  "react": "^16.12.0 || ^17.0.0",
50
50
  "yorkie": "^2.0.0"
51
51
  },
52
- "gitHead": "9c1230709eccd14352e1c71e194f0f7088c27cb5",
52
+ "gitHead": "b59edac8a03cbc390929d470b38cf0e74249a3de",
53
53
  "dependencies": {
54
54
  "react-copy-to-clipboard": "^5.1.0",
55
55
  "react-highlight": "^0.15.0"