@zgfe/business-lib 1.0.24-userTag.0 → 1.0.24

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.
Files changed (64) hide show
  1. package/es/addToPanel/components/addPanel.d.ts +2 -1
  2. package/es/addToPanel/index.js +17 -2
  3. package/es/assets/iconfont/demo_index.html +97 -5
  4. package/es/assets/iconfont/iconfont.css +19 -3
  5. package/es/assets/iconfont/iconfont.js +12 -12
  6. package/es/assets/iconfont/iconfont.json +28 -0
  7. package/es/assets/iconfont/iconfont.ttf +0 -0
  8. package/es/assets/iconfont/iconfont.woff +0 -0
  9. package/es/assets/iconfont/iconfont.woff2 +0 -0
  10. package/es/assets/styles/chunks.less +2 -2
  11. package/es/assets/styles/resetAntd.less +4 -4
  12. package/es/assets/styles/variable.less +2 -1
  13. package/es/attributeSelector/types.d.ts +1 -0
  14. package/es/attributeSelector/util.js +2 -1
  15. package/es/chart/util/color.js +1 -1
  16. package/es/context/index.d.ts +12 -0
  17. package/es/datePicker/demo/index.js +11 -2
  18. package/es/datePicker/index.js +21 -7
  19. package/es/datePicker/styles/index.less +1 -1
  20. package/es/datePicker/types.d.ts +2 -1
  21. package/es/dnd/demo/data.js +3 -2
  22. package/es/dnd/demo/styles/index.less +1 -1
  23. package/es/dnd/index.js +3 -1
  24. package/es/dnd/item.js +13 -4
  25. package/es/eventSelector/listPanel.js +40 -23
  26. package/es/eventSelector/option.d.ts +2 -1
  27. package/es/eventSelector/option.js +6 -1
  28. package/es/eventSelector/styles/index.less +6 -0
  29. package/es/eventSelector/types.d.ts +1 -1
  30. package/es/icon/iconFont.d.ts +1 -0
  31. package/es/icon/iconFont.js +1 -0
  32. package/es/index.d.ts +3 -2
  33. package/es/index.js +3 -2
  34. package/es/{analysisLayout → layout/analysisLayout}/demo/index.d.ts +0 -0
  35. package/es/{analysisLayout → layout/analysisLayout}/demo/index.js +0 -0
  36. package/es/{analysisLayout → layout/analysisLayout}/demo/index.less +0 -0
  37. package/es/{analysisLayout → layout/analysisLayout}/index.d.ts +0 -0
  38. package/es/{analysisLayout → layout/analysisLayout}/index.js +1 -1
  39. package/es/{analysisLayout → layout/analysisLayout}/index.less +12 -12
  40. package/es/layout/detail/demo/index.d.ts +2 -0
  41. package/es/layout/detail/demo/index.js +12 -0
  42. package/es/layout/detail/index.d.ts +9 -0
  43. package/es/layout/detail/index.js +24 -0
  44. package/es/layout/detail/index.less +28 -0
  45. package/es/mock/event.js +37 -0
  46. package/es/select/index.js +1 -1
  47. package/es/select/styles/index.less +1 -1
  48. package/es/targetConditionGroup/components/targetDimension.js +3 -1
  49. package/es/targetConditionGroup/demo/index.js +2 -2
  50. package/es/targetConditionGroup/index.js +46 -14
  51. package/es/targetSelector/demo/index.js +3 -1
  52. package/es/targetSelector/styles/index.less +1 -1
  53. package/es/targetSelector/types.d.ts +7 -17
  54. package/es/targetSelector/types.js +16 -1
  55. package/es/userCondition/conditionTypeList.js +5 -1
  56. package/es/userCondition/styles/conditionTypeList.less +4 -5
  57. package/es/userCondition/styles/conditionWrap.less +0 -1
  58. package/es/utils/type.d.ts +1 -0
  59. package/package.json +2 -2
  60. package/es/commonStyle/icon.less +0 -194
  61. package/es/commonStyle/index.less +0 -3
  62. package/es/commonStyle/select.less +0 -92
  63. package/es/commonStyle/theme.less +0 -523
  64. package/es/commonStyle/variable.less +0 -127
@@ -50,9 +50,21 @@ var BizDatePicker = function BizDatePicker(props) {
50
50
 
51
51
  if (data) {
52
52
  setCurrentType(function () {
53
- return dateList.filter(function (item) {
53
+ var list = dateList.filter(function (item) {
54
54
  return item.value === data.unit;
55
55
  })[0] || dateList[0];
56
+
57
+ if (data.relative) {
58
+ var valueData = list.children.filter(function (item) {
59
+ return item.count === data.relative[0];
60
+ })[0];
61
+
62
+ if (valueData) {
63
+ setCurrentTime(valueData);
64
+ }
65
+ }
66
+
67
+ return list;
56
68
  });
57
69
  setDateRange(function () {
58
70
  return {
@@ -64,13 +76,19 @@ var BizDatePicker = function BizDatePicker(props) {
64
76
 
65
77
  setReady(false);
66
78
  }, []);
79
+ useEffect(function () {
80
+ if (props.onChange && dateRange) props.onChange(_objectSpread({
81
+ unit: currentType.value,
82
+ relative: currentTime ? [currentTime === null || currentTime === void 0 ? void 0 : currentTime.count, props.includeToday && currentType.value === 'day' ? 0 : 1] : undefined
83
+ }, dateRange));
84
+ }, [currentType, currentTime, dateRange]);
67
85
 
68
86
  var onChangeDateType = function onChangeDateType(data) {
69
87
  setCurrentType(data);
70
88
  setCurrentTime(data.children[0]);
71
89
  };
72
90
 
73
- var _onClick = function onClick(value) {
91
+ var onClickShortcut = function onClickShortcut(value) {
74
92
  setCurrentTime(value);
75
93
  };
76
94
 
@@ -80,10 +98,6 @@ var BizDatePicker = function BizDatePicker(props) {
80
98
  if (!changed) {
81
99
  setCurrentTime(undefined);
82
100
  }
83
-
84
- if (props.onChange) props.onChange(_objectSpread({
85
- unit: currentType.value
86
- }, value));
87
101
  };
88
102
 
89
103
  return /*#__PURE__*/React.createElement("div", {
@@ -109,7 +123,7 @@ var BizDatePicker = function BizDatePicker(props) {
109
123
  key: index,
110
124
  className: "".concat(classPrefix, "-item ").concat(currentTime && currentTime.value === item.value ? 'active' : ''),
111
125
  onClick: function onClick() {
112
- return _onClick(item);
126
+ return onClickShortcut(item);
113
127
  }
114
128
  }, item.value);
115
129
  })), /*#__PURE__*/React.createElement(BizDate, {
@@ -45,7 +45,7 @@
45
45
 
46
46
  &.active {
47
47
  color: @primary-color;
48
- background: color(~`colorPalette('@{primary-color}', 0.1) `);
48
+ background: @primary-color-hover;
49
49
  border: 1px solid @primary-color;
50
50
  }
51
51
  }
@@ -5,12 +5,13 @@ export declare namespace DatePickerTypes {
5
5
  }
6
6
  interface Value extends Range {
7
7
  unit: 'hour' | 'day' | 'week' | 'month';
8
+ relative?: [number, number];
8
9
  }
9
10
  interface Props {
10
11
  defaultValue?: Value;
11
12
  value?: Value;
12
13
  includeToday?: boolean;
13
- onChange?: (data: object) => void;
14
+ onChange?: (data: Value) => void;
14
15
  }
15
16
  interface Option {
16
17
  label: string;
@@ -68,8 +68,9 @@ export default (function () {
68
68
  key: data.id
69
69
  }, data.label);
70
70
  },
71
- onChange: function onChange(list) {
72
- console.log('排序后数据', list);
71
+ onChange: function onChange(array) {
72
+ console.log('排序后数据', array);
73
+ setList(array);
73
74
  }
74
75
  }));
75
76
  });
@@ -6,7 +6,7 @@
6
6
  }
7
7
  .item {
8
8
  display: inline-block;
9
- width: 300px;
9
+ width: 10%;
10
10
  height: 150px;
11
11
  margin: @margin-md;
12
12
  line-height: 150px;
package/es/dnd/index.js CHANGED
@@ -91,7 +91,9 @@ var BizDnd = function BizDnd(props) {
91
91
  res.push(item);
92
92
  }
93
93
 
94
- if (props.onChange) props.onChange(res);
94
+ setTimeout(function () {
95
+ if (props.onChange) props.onChange(res);
96
+ });
95
97
  return res;
96
98
  });
97
99
  return target;
package/es/dnd/item.js CHANGED
@@ -47,24 +47,30 @@ var BizDndItem = function BizDndItem(props) {
47
47
  if (ref.current) {
48
48
  var computedStyle = window.getComputedStyle(ref.current);
49
49
  style = {
50
- position: 'fixed',
50
+ position: '',
51
51
  pointerEvents: 'inherit',
52
52
  top: top - Number(computedStyle.marginTop.replace('px', '')),
53
- left: left - Number(computedStyle.marginLeft.replace('px', ''))
53
+ left: left - Number(computedStyle.marginLeft.replace('px', '')),
54
+ width: computedStyle.width,
55
+ height: computedStyle.height
54
56
  };
57
+ setStyle();
55
58
  preMouse = {
56
59
  x: e.clientX,
57
60
  y: e.clientY
58
61
  };
62
+ setIsDragging(true);
59
63
  }
60
64
  }
61
65
 
62
66
  function onMouseMove(e) {
63
- setIsDragging(true);
67
+ var computedStyle = window.getComputedStyle(ref.current);
64
68
  style.position = 'fixed';
65
69
  style.top += e.clientY - (preMouse.y || 0);
66
70
  style.left += e.clientX - (preMouse.x || 0);
67
71
  style.pointerEvents = 'none';
72
+ style.width = computedStyle.width;
73
+ style.height = computedStyle.height;
68
74
  setStyle();
69
75
  preMouse = {
70
76
  x: e.clientX,
@@ -81,7 +87,9 @@ var BizDndItem = function BizDndItem(props) {
81
87
  position: 'inherit',
82
88
  pointerEvents: 'inherit',
83
89
  top: 0,
84
- left: 0
90
+ left: 0,
91
+ width: '',
92
+ height: ''
85
93
  };
86
94
  setStyle();
87
95
  if (props.onDropEnd) props.onDropEnd(data);
@@ -93,6 +101,7 @@ var BizDndItem = function BizDndItem(props) {
93
101
  ref.current.style.top = "".concat(style.top, "px");
94
102
  ref.current.style.left = "".concat(style.left, "px");
95
103
  ref.current.style.pointerEvents = style.pointerEvents;
104
+ ref.current.style.width = style.width;
96
105
  }
97
106
  }
98
107
 
@@ -40,7 +40,7 @@ var EventListPanel = function EventListPanel(props) {
40
40
  var _useContext = useContext(BizGlobalDataContext),
41
41
  eventGroupList = _useContext.eventGroupList;
42
42
 
43
- var _useState3 = useState(eventGroupList),
43
+ var _useState3 = useState(eventGroupList || []),
44
44
  _useState4 = _slicedToArray(_useState3, 2),
45
45
  groupList = _useState4[0],
46
46
  setGroupList = _useState4[1];
@@ -55,15 +55,10 @@ var EventListPanel = function EventListPanel(props) {
55
55
  searchEventList = _useState8[0],
56
56
  setSearchEventList = _useState8[1];
57
57
 
58
- var _useState9 = useState([]),
58
+ var _useState9 = useState(),
59
59
  _useState10 = _slicedToArray(_useState9, 2),
60
- showList = _useState10[0],
61
- setShowList = _useState10[1];
62
-
63
- var _useState11 = useState(),
64
- _useState12 = _slicedToArray(_useState11, 2),
65
- currentValue = _useState12[0],
66
- setCurrentValue = _useState12[1];
60
+ currentValue = _useState10[0],
61
+ setCurrentValue = _useState10[1];
67
62
 
68
63
  var overviewData = {
69
64
  id: -100,
@@ -107,18 +102,8 @@ var EventListPanel = function EventListPanel(props) {
107
102
  setSearchEventList(function () {
108
103
  return list;
109
104
  });
110
- setShowList(function () {
111
- return list.slice(0, 10);
112
- });
113
105
  }, [searchValue, currentGroup, showOverview]);
114
106
 
115
- var loadMoreData = function loadMoreData() {
116
- var moreData = searchEventList.slice(showList.length, showList.length + 10);
117
- setShowList(function (list) {
118
- return [].concat(_toConsumableArray(list), _toConsumableArray(moreData));
119
- });
120
- };
121
-
122
107
  function onClickEvent(e) {
123
108
  var resVal = _.cloneDeep(currentValue) || {};
124
109
  resVal.event = e;
@@ -172,7 +157,39 @@ var EventListPanel = function EventListPanel(props) {
172
157
  }), /*#__PURE__*/React.createElement("div", {
173
158
  className: "".concat(classPrefix, "-list"),
174
159
  id: "scrollableDiv"
175
- }, /*#__PURE__*/React.createElement(InfiniteScroll, {
160
+ }, /*#__PURE__*/React.createElement(InfiniteScrollList, {
161
+ searchEventList: searchEventList,
162
+ searchValue: searchValue,
163
+ currentGroup: currentGroup,
164
+ currentValue: currentValue,
165
+ onClick: onClickEvent
166
+ }))));
167
+ };
168
+
169
+ var InfiniteScrollList = function InfiniteScrollList(_ref) {
170
+ var searchEventList = _ref.searchEventList,
171
+ searchValue = _ref.searchValue,
172
+ currentGroup = _ref.currentGroup,
173
+ currentValue = _ref.currentValue,
174
+ onClick = _ref.onClick;
175
+
176
+ var _useState11 = useState([]),
177
+ _useState12 = _slicedToArray(_useState11, 2),
178
+ showList = _useState12[0],
179
+ setShowList = _useState12[1];
180
+
181
+ useEffect(function () {
182
+ setShowList(searchEventList.slice(0, 10));
183
+ }, [searchEventList]);
184
+
185
+ var loadMoreData = function loadMoreData() {
186
+ var moreData = searchEventList.slice(showList.length, showList.length + 10);
187
+ setShowList(function (list) {
188
+ return [].concat(_toConsumableArray(list), _toConsumableArray(moreData));
189
+ });
190
+ };
191
+
192
+ return /*#__PURE__*/React.createElement(InfiniteScroll, {
176
193
  dataLength: showList.length,
177
194
  hasMore: showList.length < searchEventList.length,
178
195
  loader: /*#__PURE__*/React.createElement(Skeleton, {
@@ -184,7 +201,7 @@ var EventListPanel = function EventListPanel(props) {
184
201
  next: loadMoreData,
185
202
  scrollableTarget: "scrollableDiv",
186
203
  key: Math.random()
187
- }, showList === null || showList === void 0 ? void 0 : showList.map(function (e) {
204
+ }, showList.map(function (e) {
188
205
  var _currentValue$event;
189
206
 
190
207
  if (e.eventHidden === ShowStatus.hidden) return null;
@@ -197,9 +214,9 @@ var EventListPanel = function EventListPanel(props) {
197
214
  text: searchValue
198
215
  },
199
216
  data: e,
200
- onClick: onClickEvent
217
+ onClick: onClick
201
218
  });
202
- })))));
219
+ }));
203
220
  };
204
221
 
205
222
  export default EventListPanel;
@@ -1,4 +1,5 @@
1
1
  import React from 'react';
2
+ import { AnalysisEvent, EventGroup } from '../attributeSelector/types';
2
3
  declare const EventListOption: React.FC<{
3
4
  showCount?: boolean;
4
5
  count?: number;
@@ -9,7 +10,7 @@ declare const EventListOption: React.FC<{
9
10
  text: string;
10
11
  color?: string;
11
12
  };
12
- data?: any;
13
+ data?: EventGroup | AnalysisEvent;
13
14
  onClick?: (data: any) => void;
14
15
  }>;
15
16
  export default EventListOption;
@@ -1,6 +1,7 @@
1
1
  import { Badge } from 'antd';
2
2
  import React from 'react';
3
3
  import { classPrefix } from '.';
4
+ import IconFont from '../icon/iconFont';
4
5
  import { util } from '../utils';
5
6
 
6
7
  var EventListOption = function EventListOption(props) {
@@ -36,7 +37,11 @@ var EventListOption = function EventListOption(props) {
36
37
  }, /*#__PURE__*/React.createElement("div", {
37
38
  className: "".concat(classPrefix, "-option-label"),
38
39
  title: label
39
- }, getLabel(label || '')), showCount && /*#__PURE__*/React.createElement(Badge, {
40
+ }, data.attrList && /*#__PURE__*/React.createElement("span", {
41
+ className: "".concat(classPrefix, "-like")
42
+ }, data.marked ? /*#__PURE__*/React.createElement(IconFont, {
43
+ type: "shoucang"
44
+ }) : null), getLabel(label || '')), showCount && /*#__PURE__*/React.createElement(Badge, {
40
45
  count: count
41
46
  }));
42
47
  };
@@ -49,6 +49,12 @@
49
49
  .__select-nodata();
50
50
  }
51
51
 
52
+ &-like {
53
+ display: inline-block;
54
+ width: @font-size-base;
55
+ margin-right: @margin-xss;
56
+ color: @warning-color;
57
+ }
52
58
  &-option {
53
59
  .__select-option();
54
60
  display: flex;
@@ -16,7 +16,7 @@ export declare namespace EventSelectTypes {
16
16
  }
17
17
  interface Props {
18
18
  defaultValue?: Value | SimpleValue;
19
- value?: Value | SimpleValue;
19
+ value?: Value;
20
20
  groupId?: number;
21
21
  alias?: string;
22
22
  placeholder?: string;
@@ -1,5 +1,6 @@
1
1
  import React from 'react';
2
2
  import { IconFontProps } from '@ant-design/icons/lib/components/IconFont';
3
+ import '../assets/iconfont/iconfont.css';
3
4
  interface Props extends IconFontProps {
4
5
  family?: string;
5
6
  size?: number;
@@ -11,6 +11,7 @@ function _objectWithoutProperties(source, excluded) { if (source == null) return
11
11
  function _objectWithoutPropertiesLoose(source, excluded) { if (source == null) return {}; var target = {}; var sourceKeys = Object.keys(source); var key, i; for (i = 0; i < sourceKeys.length; i++) { key = sourceKeys[i]; if (excluded.indexOf(key) >= 0) continue; target[key] = source[key]; } return target; }
12
12
 
13
13
  import React, { useMemo } from 'react';
14
+ import '../assets/iconfont/iconfont.css';
14
15
 
15
16
  var IconFont = function IconFont(props) {
16
17
  var className = props.className,
package/es/index.d.ts CHANGED
@@ -1,5 +1,5 @@
1
1
  /// <reference path="../typings.d.ts" />
2
- import BizAnalysisLayout from './analysisLayout';
2
+ import BizAnalysisLayout from './layout/analysisLayout';
3
3
  import BizUserGroup from './userGroup';
4
4
  import BizTargetSelector from './targetSelector';
5
5
  import BizEventSelector from './eventSelector/index';
@@ -25,7 +25,8 @@ import BizAddToPanel from './addToPanel';
25
25
  import setGlobalConfig from './config';
26
26
  import BizCycleTime from './cycleTime';
27
27
  import BizDnd from './dnd';
28
- export { BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizAnalysisLayout, BizUserGroup, IconFont, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetCondition, BizDatePicker, BizConditionItem, BizConditionGroup, BizUserCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, ajax, util, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, };
28
+ import BizDetailLayout from './layout/detail';
29
+ export { BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizAnalysisLayout, BizDetailLayout, BizUserGroup, IconFont, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetCondition, BizDatePicker, BizConditionItem, BizConditionGroup, BizUserCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, ajax, util, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig, };
29
30
  export type { UserGroupTypes } from './userGroup/types';
30
31
  export type { BizSelectTypes } from './select/types';
31
32
  export type { AttributeSelect } from './attributeSelector/types';
package/es/index.js CHANGED
@@ -1,4 +1,4 @@
1
- import BizAnalysisLayout from './analysisLayout';
1
+ import BizAnalysisLayout from './layout/analysisLayout';
2
2
  import BizUserGroup from './userGroup';
3
3
  import BizTargetSelector from './targetSelector';
4
4
  import BizEventSelector from './eventSelector/index';
@@ -24,4 +24,5 @@ import BizAddToPanel from './addToPanel';
24
24
  import setGlobalConfig from './config';
25
25
  import BizCycleTime from './cycleTime';
26
26
  import BizDnd from './dnd';
27
- export { BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizAnalysisLayout, BizUserGroup, IconFont, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetCondition, BizDatePicker, BizConditionItem, BizConditionGroup, BizUserCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, ajax, util, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig };
27
+ import BizDetailLayout from './layout/detail';
28
+ export { BizSearchInput, BizSelect, BizDialog, BizChart, BizTable, BizAnalysisLayout, BizDetailLayout, BizUserGroup, IconFont, BizTargetSelector, BizEventSelector, BizAttributeSelector, BizGlobalDataContext, BizTargetCondition, BizDatePicker, BizConditionItem, BizConditionGroup, BizUserCondition, BizAddToScene, BizAddToPanel, BizCycleTime, BizDnd, ajax, util, theme, convertAttributeData, BizUserTagsSelect, setGlobalConfig };
@@ -11,7 +11,7 @@ function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Sy
11
11
  function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
12
12
 
13
13
  import React, { useEffect, useState } from 'react';
14
- import IconFont from '../icon/iconFont';
14
+ import IconFont from '../../icon/iconFont';
15
15
  import './index.less';
16
16
  import { Tooltip } from 'antd';
17
17
 
@@ -1,4 +1,4 @@
1
- @import '../commonStyle/icon.less';
1
+ @import '../../assets/styles/inner.less';
2
2
 
3
3
  .biz-layout-container {
4
4
  position: relative;
@@ -33,7 +33,7 @@
33
33
  box-sizing: border-box;
34
34
  width: 100%;
35
35
  height: calc(100% - 30px);
36
- padding: @searchPadding;
36
+ padding: @padding-lg;
37
37
  overflow: auto;
38
38
  .biz-left-content {
39
39
  min-height: 600px;
@@ -50,10 +50,10 @@
50
50
  line-height: 30px;
51
51
  text-align: center;
52
52
  background-color: #fff;
53
- border-top: @boxBorder;
53
+ border-top: 1px solid @border-color-base;
54
54
 
55
55
  .biz-layout-expand {
56
- color: @fontColor;
56
+ color: @text-color;
57
57
  font-size: 16px;
58
58
  cursor: pointer;
59
59
 
@@ -66,7 +66,7 @@
66
66
 
67
67
  .biz-layout-right {
68
68
  box-sizing: border-box;
69
- padding: @contentPadding;
69
+ padding: @padding-lg;
70
70
  overflow: auto;
71
71
  background-color: #fff;
72
72
 
@@ -91,22 +91,22 @@
91
91
  font-size: 24px;
92
92
  text-align: center;
93
93
  background: #ffffff;
94
- border: @boxBorder;
94
+ border: 1px solid @border-color-split;
95
95
  border-top-right-radius: 20px;
96
96
  border-bottom-right-radius: 20px;
97
97
  cursor: pointer;
98
98
 
99
99
  .biz-layout-pickup-icon {
100
- color: @layoutIconColor;
100
+ color: @icon-color;
101
101
  font-size: 24px;
102
102
  }
103
103
 
104
104
  &:hover {
105
- color: @hoverColor;
106
- background-color: @hoverBgColor;
105
+ color: @primary-color;
106
+ background-color: @primary-color-hover;
107
107
 
108
108
  .biz-layout-pickup-icon {
109
- color: @hoverColor;
109
+ color: @primary-color;
110
110
  }
111
111
  }
112
112
  }
@@ -115,10 +115,10 @@
115
115
  position: absolute;
116
116
  bottom: 20px;
117
117
  left: 16px;
118
- color: @layoutIconColor;
118
+ color: @icon-color;
119
119
  font-size: 24px;
120
120
  cursor: pointer;
121
121
  &:hover {
122
- color: @hoverColor;
122
+ color: @primary-color;
123
123
  }
124
124
  }
@@ -0,0 +1,2 @@
1
+ declare const _default: () => JSX.Element;
2
+ export default _default;
@@ -0,0 +1,12 @@
1
+ import React from 'react';
2
+ import { BizDetailLayout } from '@zgfe/business-lib';
3
+ export default (function () {
4
+ return /*#__PURE__*/React.createElement("div", {
5
+ style: {
6
+ background: '#FAFAFB',
7
+ padding: '24px'
8
+ }
9
+ }, /*#__PURE__*/React.createElement(BizDetailLayout, {
10
+ extra: /*#__PURE__*/React.createElement(React.Fragment, null, "\u9875\u9762extra")
11
+ }, "\u9875\u9762\u5185\u5BB9"));
12
+ });
@@ -0,0 +1,9 @@
1
+ import React from 'react';
2
+ import './index.less';
3
+ declare const BizDetailLayout: React.FC<{
4
+ width?: number;
5
+ onBack?: () => void;
6
+ extra?: React.ReactNode;
7
+ children?: React.ReactNode;
8
+ }>;
9
+ export default BizDetailLayout;
@@ -0,0 +1,24 @@
1
+ import React from 'react';
2
+ import { IconFont } from '../..';
3
+ import './index.less';
4
+
5
+ var BizDetailLayout = function BizDetailLayout(props) {
6
+ var width = props.width;
7
+ var classPrefix = 'biz-detail';
8
+ return /*#__PURE__*/React.createElement("div", {
9
+ className: classPrefix,
10
+ style: {
11
+ width: width ? "".concat(width, "px") : undefined
12
+ }
13
+ }, /*#__PURE__*/React.createElement("div", {
14
+ className: "".concat(classPrefix, "-menu")
15
+ }, /*#__PURE__*/React.createElement("a", {
16
+ onClick: props.onBack
17
+ }, /*#__PURE__*/React.createElement(IconFont, {
18
+ type: "fanhuiicon"
19
+ }), "\u8FD4\u56DE"), props.extra), /*#__PURE__*/React.createElement("div", {
20
+ className: "".concat(classPrefix, "-content")
21
+ }, props.children));
22
+ };
23
+
24
+ export default BizDetailLayout;
@@ -0,0 +1,28 @@
1
+ @import '../../assets/styles/inner.less';
2
+ .biz-detail {
3
+ display: flex;
4
+ flex-direction: column;
5
+ width: 1376px;
6
+ height: 100%;
7
+ margin: 0 auto;
8
+ &-menu {
9
+ flex: none;
10
+ padding-top: @padding-md;
11
+ padding-bottom: @padding-md - 2;
12
+ color: @text-color-secondary;
13
+ a {
14
+ margin-right: @margin-md;
15
+ color: @text-color-secondary;
16
+ &:hover {
17
+ color: @primary-color;
18
+ }
19
+ }
20
+ }
21
+ &-content {
22
+ flex: 1;
23
+ padding: @padding-sm @padding-lg @padding-lg @padding-lg;
24
+ overflow-y: auto;
25
+ background-color: @white;
26
+ border-radius: @border-radius-normal;
27
+ }
28
+ }
package/es/mock/event.js CHANGED
@@ -695,6 +695,43 @@ export default [{
695
695
  groupId: 4160,
696
696
  groupName: '小程序转化',
697
697
  eventList: [{
698
+ plats: [1, 2, 3],
699
+ click_analysis: false,
700
+ mark_type: null,
701
+ event_id: 7086289,
702
+ event_name: '付款成功',
703
+ event_hidden: 0,
704
+ event_type: 0,
705
+ is_stop: 0,
706
+ is_delete: 0,
707
+ alias_name: '',
708
+ event_attrs: [{
709
+ hidden: 0,
710
+ dimension_sub: 'event_attr',
711
+ encryption_type: 0,
712
+ alias_name: '',
713
+ value_dict: false,
714
+ attr_id: 5461056,
715
+ attr_name: '支付方式',
716
+ event_id: 7086289,
717
+ prop_type: 1,
718
+ is_stop: 0
719
+ }, {
720
+ hidden: 0,
721
+ dimension_sub: 'event_attr',
722
+ encryption_type: 0,
723
+ alias_name: '',
724
+ value_dict: false,
725
+ attr_id: 5461057,
726
+ attr_name: '金额',
727
+ event_id: 7086289,
728
+ prop_type: 2,
729
+ is_stop: 0
730
+ }],
731
+ stop_date_time: null,
732
+ insert_time: '2016-01-01 00:00:00',
733
+ owner: 'zg'
734
+ }, {
698
735
  plats: [3],
699
736
  click_analysis: false,
700
737
  mark_type: 1,
@@ -164,7 +164,7 @@ var BizSelect = function BizSelect(props) {
164
164
  width: overlayWidth || width
165
165
  },
166
166
  trigger: ['click'],
167
- getPopupContainer: props.popupContainer || props.multiple ? function () {
167
+ getPopupContainer: props.popupContainer ? function () {
168
168
  return document.getElementById(selectId);
169
169
  } : undefined,
170
170
  visible: visible,
@@ -67,7 +67,7 @@
67
67
  &.biz-select-option-multiple {
68
68
  &:hover:not(.disabled) {
69
69
  color: @primary-color;
70
- background-color: color(~`colorPalette('@{primary-color}', 0.1) `);
70
+ background-color: @primary-color-hover;
71
71
  }
72
72
 
73
73
  &.active:not(.disabled) {
@@ -76,11 +76,13 @@ var BizTargetDimension = function BizTargetDimension(props) {
76
76
 
77
77
  var getAttrOption = function getAttrOption(eventId) {
78
78
  var attrData = [];
79
+ var attrMap = {};
79
80
  eventGroupList === null || eventGroupList === void 0 ? void 0 : eventGroupList.forEach(function (group) {
80
81
  group.eventList.forEach(function (event) {
81
82
  if (event.id === eventId) {
82
83
  event.attrList.forEach(function (attr) {
83
- if (attr.type === 2 && !attr.isHidden && attr.label) {
84
+ if (attr.type === 2 && !attr.isHidden && attr.label && !attrMap[String(attr.id)]) {
85
+ attrMap[String(attr.id)] = true;
84
86
  attrData.push({
85
87
  label: attr.label,
86
88
  value: String(attr.id),
@@ -18,8 +18,8 @@ import userData from '../../mock/user';
18
18
  var defaultValue = {
19
19
  type: 'event',
20
20
  alias: 'alias',
21
- eventId: 24143017,
22
- eventGroupId: 4201,
21
+ eventId: 7086289,
22
+ eventGroupId: 4160,
23
23
  analysisIndex: 'times',
24
24
  filters: {
25
25
  relation: 'or',