@zgfe/business-lib 1.0.15 → 1.0.17

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.
@@ -1,16 +1,24 @@
1
- export default {
2
- 'primary-color': '#165dff',
3
- 'border-color-base': '#ECEDF0',
4
- 'background-color-base': '#fafafb',
5
- 'text-color': '#021429',
6
- // 正文
7
- 'text-color-secondary': '#5f6085',
8
- // 次要
9
- 'tooltip-bg': '#242541',
10
- 'error-color': '#fb5547',
11
- 'shadow-color': 'rgba(0, 0, 0, 0.1)',
12
- 'box-shadow-base': '0px 4px 10px rgba(0, 0, 0, 0.1)',
13
- 'btn-text-hover-bg': '#cacdd4',
14
- 'warning-color': '#FD9F41',
15
- 'border-color-split': '#E8EFFF'
16
- };
1
+ function _typeof(obj) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (obj) { return typeof obj; } : function (obj) { return obj && "function" == typeof Symbol && obj.constructor === Symbol && obj !== Symbol.prototype ? "symbol" : typeof obj; }, _typeof(obj); }
2
+
3
+ (function (global, factory) {
4
+ (typeof exports === "undefined" ? "undefined" : _typeof(exports)) === 'object' && typeof module !== 'undefined' ? factory(exports) : typeof define === 'function' && define.amd ? define(['exports'], factory) : (global = global || self, factory(global.acorn = {}));
5
+ })(this, function (exports) {
6
+ 'use strict';
7
+
8
+ exports.theme = {
9
+ 'primary-color': '#165dff',
10
+ 'border-color-base': '#ECEDF0',
11
+ 'background-color-base': '#fafafb',
12
+ 'text-color': '#021429',
13
+ // 正文
14
+ 'text-color-secondary': '#5f6085',
15
+ // 次要
16
+ 'tooltip-bg': '#242541',
17
+ 'error-color': '#fb5547',
18
+ 'shadow-color': 'rgba(0, 0, 0, 0.1)',
19
+ 'box-shadow-base': '0px 4px 10px rgba(0, 0, 0, 0.1)',
20
+ 'btn-text-hover-bg': '#cacdd4',
21
+ 'warning-color': '#FD9F41',
22
+ 'border-color-split': '#E8EFFF'
23
+ };
24
+ });
@@ -132,6 +132,8 @@ var EventListPanel = function EventListPanel(props) {
132
132
  }
133
133
 
134
134
  function onClickGroup(g) {
135
+ setCurrentGroup(g);
136
+
135
137
  if (defaultSelectAble) {
136
138
  var resVal = _.cloneDeep(currentValue) || {};
137
139
  resVal.group = g;
@@ -144,14 +146,6 @@ var EventListPanel = function EventListPanel(props) {
144
146
  }
145
147
  }
146
148
 
147
- function onHoverGroup(g) {
148
- setCurrentGroup(g);
149
- }
150
-
151
- function onMouseLeaveGroup() {
152
- setCurrentGroup(currentSelectGroup);
153
- }
154
-
155
149
  if (!groupList || !groupList.length || !groupList[0].eventList || !groupList[0].eventList.length) {
156
150
  return /*#__PURE__*/React.createElement("div", {
157
151
  className: "".concat(classPrefix, "-nodata-panel")
@@ -173,9 +167,7 @@ var EventListPanel = function EventListPanel(props) {
173
167
  key: group.id || 'overview',
174
168
  checked: (currentSelectGroup === null || currentSelectGroup === void 0 ? void 0 : currentSelectGroup.id) === group.id,
175
169
  data: group,
176
- onClick: onClickGroup,
177
- onMouseOver: onHoverGroup,
178
- onMouseLeave: onMouseLeaveGroup
170
+ onClick: onClickGroup
179
171
  });
180
172
  })), /*#__PURE__*/React.createElement("div", {
181
173
  className: "".concat(classPrefix, "-right")
@@ -11,7 +11,5 @@ declare const EventListOption: React.FC<{
11
11
  };
12
12
  data?: any;
13
13
  onClick?: (data: any) => void;
14
- onMouseOver?: (data: any) => void;
15
- onMouseLeave?: (data: any) => void;
16
14
  }>;
17
15
  export default EventListOption;
@@ -16,14 +16,6 @@ var EventListOption = function EventListOption(props) {
16
16
  if (onClick) onClick(data);
17
17
  };
18
18
 
19
- function onMouseOver() {
20
- if (props.onMouseOver) props.onMouseOver(data);
21
- }
22
-
23
- function onMouseLeave() {
24
- if (props.onMouseLeave) props.onMouseLeave(data);
25
- }
26
-
27
19
  function getLabel(label) {
28
20
  if (!highlight || !highlight.enable || !highlight.text) return label;
29
21
  var text = highlight.text;
@@ -40,9 +32,7 @@ var EventListOption = function EventListOption(props) {
40
32
 
41
33
  return /*#__PURE__*/React.createElement("div", {
42
34
  className: "".concat(classPrefix, "-option ").concat(checked ? 'active' : ''),
43
- onClick: _onClick,
44
- onMouseOver: onMouseOver,
45
- onMouseLeave: onMouseLeave
35
+ onClick: _onClick
46
36
  }, /*#__PURE__*/React.createElement("div", {
47
37
  className: "".concat(classPrefix, "-option-label"),
48
38
  title: label
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@zgfe/business-lib",
3
- "version": "1.0.15",
3
+ "version": "1.0.17",
4
4
  "scripts": {
5
5
  "start": "dumi dev",
6
6
  "docs:build": "dumi build",
@@ -59,5 +59,5 @@
59
59
  "prettier": "^2.2.1",
60
60
  "yorkie": "^2.0.0"
61
61
  },
62
- "gitHead": "0a48d3a8065d6f69ea294686714e65a4ca51a507"
62
+ "gitHead": "5877671aeaf7a70376943202699ba2dcef7d3ceb"
63
63
  }