@zgfe/modules-attribution 1.1.6 → 1.1.13-zhongyuan.1

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 (41) hide show
  1. package/README.md +35 -35
  2. package/es/components/common/styles/index.less +27 -27
  3. package/es/components/option/index.js +26 -19
  4. package/es/components/option/styles/index.less +22 -17
  5. package/es/components/option/types.d.ts +1 -0
  6. package/es/components/searchTime/index.js +12 -8
  7. package/es/components/searchTime/styles/index.less +18 -19
  8. package/es/components/tableList/styles/index.less +18 -18
  9. package/es/components/title/index.js +27 -25
  10. package/es/components/title/searchTitle.js +8 -8
  11. package/es/components/title/styles/index.less +84 -84
  12. package/es/components/title/styles/search.less +27 -27
  13. package/es/images/empty.png +0 -0
  14. package/es/modules/chart/demo/index.d.ts +2 -1
  15. package/es/modules/chart/index.js +42 -16
  16. package/es/modules/chart/types.d.ts +2 -0
  17. package/es/modules/content/index.js +65 -15
  18. package/es/modules/content/styles/index.less +39 -7
  19. package/es/modules/content/types.d.ts +1 -0
  20. package/es/modules/content/utils.js +7 -3
  21. package/es/modules/home/demo/create.d.ts +2 -1
  22. package/es/modules/home/demo/create.js +1 -1
  23. package/es/modules/home/demo/edit.d.ts +2 -1
  24. package/es/modules/home/demo/edit.js +90 -89
  25. package/es/modules/home/demo/index.d.ts +2 -1
  26. package/es/modules/home/demo/index.js +5 -1
  27. package/es/modules/home/demo/scene.d.ts +2 -1
  28. package/es/modules/home/demo/scene.js +1 -0
  29. package/es/modules/home/demo/styles/index.less +33 -33
  30. package/es/modules/home/index.js +53 -36
  31. package/es/modules/home/styles/index.less +68 -68
  32. package/es/modules/searchPanel/components/attributableEvents.js +15 -14
  33. package/es/modules/searchPanel/components/globalAttribute.js +16 -14
  34. package/es/modules/searchPanel/components/index.js +19 -9
  35. package/es/modules/searchPanel/components/targetEvent.js +11 -9
  36. package/es/modules/searchPanel/index.js +25 -17
  37. package/es/modules/searchPanel/styles/index.less +226 -226
  38. package/es/style/image/ring.svg +8 -8
  39. package/es/style/index.less +47 -47
  40. package/es/types.d.ts +5 -0
  41. package/package.json +3 -3
@@ -4,112 +4,113 @@ import { AttributionHome } from '@zgfe/modules-attribution';
4
4
  import { requestConfig } from '../../../utils/ajaxConfig';
5
5
  var defaultValue = {
6
6
  data: {
7
- "app_id": 331,
8
- "module": "attribution",
9
- "targetFilters": [{
10
- "eventId": 4024,
11
- "eventName": "收入",
12
- "filters": {
13
- "relation": "and",
14
- "conditions": [{
15
- "attrId": 31331,
16
- "propCategory": "eventProp",
17
- "type": 2,
18
- "operator": "gt",
19
- "values": ["88"],
20
- "dimensionSub": "event_attr",
21
- "label": "price",
22
- "attrName": "price"
7
+ app_id: 331,
8
+ module: 'attribution',
9
+ targetFilters: [{
10
+ eventId: 4024,
11
+ eventName: '收入',
12
+ filters: {
13
+ relation: 'and',
14
+ conditions: [{
15
+ attrId: 31331,
16
+ propCategory: 'eventProp',
17
+ type: 2,
18
+ operator: 'gt',
19
+ values: ['88'],
20
+ dimensionSub: 'event_attr',
21
+ label: 'price',
22
+ attrName: 'price'
23
23
  }, {
24
- "attrId": 31328,
25
- "propCategory": "eventProp",
26
- "type": 2,
27
- "operator": "gt",
28
- "values": ["99"],
29
- "dimensionSub": "event_attr",
30
- "label": "total",
31
- "attrName": "total"
24
+ attrId: 31328,
25
+ propCategory: 'eventProp',
26
+ type: 2,
27
+ operator: 'gt',
28
+ values: ['99'],
29
+ dimensionSub: 'event_attr',
30
+ label: 'total',
31
+ attrName: 'total'
32
32
  }]
33
33
  }
34
34
  }],
35
- "sourceFilters": [{
36
- "eventId": 4023,
37
- "eventName": "查看商品",
38
- "filters": {
39
- "relation": "and",
40
- "conditions": [{
41
- "attrId": 31321,
42
- "propCategory": "eventProp",
43
- "type": 2,
44
- "operator": "gt",
45
- "values": ["77"],
46
- "dimensionSub": "event_attr",
47
- "label": "商品价格",
48
- "attrName": "商品价格"
35
+ sourceFilters: [{
36
+ eventId: 4023,
37
+ eventName: '查看商品',
38
+ filters: {
39
+ relation: 'and',
40
+ conditions: [{
41
+ attrId: 31321,
42
+ propCategory: 'eventProp',
43
+ type: 2,
44
+ operator: 'gt',
45
+ values: ['77'],
46
+ dimensionSub: 'event_attr',
47
+ label: '商品价格',
48
+ attrName: '商品价格'
49
49
  }, {
50
- "attrId": 31332,
51
- "propCategory": "eventProp",
52
- "type": 1,
53
- "operator": "equal",
54
- "values": ["移动电话"],
55
- "dimensionSub": "event_attr",
56
- "label": "商品类型",
57
- "attrName": "商品类型"
50
+ attrId: 31332,
51
+ propCategory: 'eventProp',
52
+ type: 1,
53
+ operator: 'equal',
54
+ values: ['移动电话'],
55
+ dimensionSub: 'event_attr',
56
+ label: '商品类型',
57
+ attrName: '商品类型'
58
58
  }]
59
59
  },
60
- "attributionSubdivision": {
61
- "relation": "and",
62
- "conditions": {
63
- "propCategory": "eventProp",
64
- "type": 1,
65
- "attrId": 31332
60
+ attributionSubdivision: {
61
+ relation: 'and',
62
+ conditions: {
63
+ propCategory: 'eventProp',
64
+ type: 1,
65
+ attrId: 31332
66
66
  }
67
67
  }
68
68
  }, {
69
- "eventId": 4026,
70
- "eventName": "加购商品",
71
- "filters": {
72
- "relation": "and",
73
- "conditions": [{
74
- "attrId": 31334,
75
- "propCategory": "eventProp",
76
- "type": 2,
77
- "operator": "gt",
78
- "values": ["66"],
79
- "dimensionSub": "event_attr",
80
- "label": "商品价格",
81
- "attrName": "商品价格"
69
+ eventId: 4026,
70
+ eventName: '加购商品',
71
+ filters: {
72
+ relation: 'and',
73
+ conditions: [{
74
+ attrId: 31334,
75
+ propCategory: 'eventProp',
76
+ type: 2,
77
+ operator: 'gt',
78
+ values: ['66'],
79
+ dimensionSub: 'event_attr',
80
+ label: '商品价格',
81
+ attrName: '商品价格'
82
82
  }, {
83
- "attrId": 31336,
84
- "propCategory": "eventProp",
85
- "type": 1,
86
- "operator": "equal",
87
- "values": ["移动电话"],
88
- "dimensionSub": "event_attr",
89
- "label": "商品类型",
90
- "attrName": "商品类型"
83
+ attrId: 31336,
84
+ propCategory: 'eventProp',
85
+ type: 1,
86
+ operator: 'equal',
87
+ values: ['移动电话'],
88
+ dimensionSub: 'event_attr',
89
+ label: '商品类型',
90
+ attrName: '商品类型'
91
91
  }]
92
92
  },
93
- "attributionSubdivision": {
94
- "relation": "and",
95
- "conditions": {
96
- "propCategory": "eventProp",
97
- "type": 1,
98
- "attrId": 31329
93
+ attributionSubdivision: {
94
+ relation: 'and',
95
+ conditions: {
96
+ propCategory: 'eventProp',
97
+ type: 1,
98
+ attrId: 31329
99
99
  }
100
100
  }
101
101
  }],
102
- "attributionType": 3,
103
- "otherEvent": true,
104
- "windowCnt": 2,
105
- "windowType": "hour",
106
- "time": {
107
- "unit": "day",
108
- "relative": [14, 0],
109
- "begin": "2023-05-29",
110
- "end": "2023-06-12"
102
+ attributionType: 3,
103
+ platform: 0,
104
+ otherEvent: true,
105
+ windowCnt: 2,
106
+ windowType: 'hour',
107
+ time: {
108
+ unit: 'day',
109
+ relative: [14, 0],
110
+ begin: '2023-05-29',
111
+ end: '2023-06-12'
111
112
  },
112
- "chartType": "grid"
113
+ chartType: 'grid'
113
114
  }
114
115
  };
115
116
  export default (function () {
@@ -1,3 +1,4 @@
1
+ import React from 'react';
1
2
  import './styles/index.less';
2
- declare const _default: () => JSX.Element;
3
+ declare const _default: () => React.JSX.Element;
3
4
  export default _default;
@@ -10,10 +10,14 @@ export default (function () {
10
10
  var afterEditTarget = function afterEditTarget(type, data) {
11
11
  console.log("".concat(type, "\u56DE\u8C03"), data);
12
12
  };
13
+ var platformChange = function platformChange(platform) {
14
+ console.log('platform', platform);
15
+ };
13
16
  return /*#__PURE__*/React.createElement(DemoWrapper, {
14
17
  needMeta: true,
15
18
  defaultApp: 328
16
19
  }, /*#__PURE__*/React.createElement(AttributionHome, {
17
- afterEditTarget: afterEditTarget
20
+ afterEditTarget: afterEditTarget,
21
+ platformChange: platformChange
18
22
  }));
19
23
  });
@@ -1,2 +1,3 @@
1
- declare const _default: () => JSX.Element;
1
+ import React from 'react';
2
+ declare const _default: () => React.JSX.Element;
2
3
  export default _default;
@@ -17,6 +17,7 @@ var defaultValue = {
17
17
  }
18
18
  }],
19
19
  userGroup: [0],
20
+ platform: 0,
20
21
  time: {
21
22
  unit: 'month',
22
23
  relative: [3, 1],
@@ -1,33 +1,33 @@
1
- /*滚动条凹槽的颜色,还可以设置边框属性 */
2
- ::-webkit-scrollbar-track-piece {
3
- background-color: #fff;
4
- -webkit-border-radius: 10px;
5
- -moz-border-radius: 10px;
6
- border-radius: 10px;
7
- }
8
-
9
- /*滚动条的宽度*/
10
- ::-webkit-scrollbar {
11
- width: 10px;
12
- height: 10px;
13
- }
14
-
15
- /*滚动条的设置*/
16
- ::-webkit-scrollbar-thumb {
17
- background-color: #cacdd4;
18
- background-clip: padding-box;
19
- border: 2px solid #fff;
20
- -webkit-border-radius: 10px;
21
- -moz-border-radius: 10px;
22
- border-radius: 10px;
23
- }
24
-
25
- /*滚动条鼠标移上去*/
26
- ::-webkit-scrollbar-thumb:hover {
27
- // background-color: #bbb;
28
- }
29
-
30
- ::-webkit-scrollbar-track-piece {
31
- width: 6px;
32
- height: 6px;
33
- }
1
+ /*滚动条凹槽的颜色,还可以设置边框属性 */
2
+ ::-webkit-scrollbar-track-piece {
3
+ background-color: #fff;
4
+ -webkit-border-radius: 10px;
5
+ -moz-border-radius: 10px;
6
+ border-radius: 10px;
7
+ }
8
+
9
+ /*滚动条的宽度*/
10
+ ::-webkit-scrollbar {
11
+ width: 10px;
12
+ height: 10px;
13
+ }
14
+
15
+ /*滚动条的设置*/
16
+ ::-webkit-scrollbar-thumb {
17
+ background-color: #cacdd4;
18
+ background-clip: padding-box;
19
+ border: 2px solid #fff;
20
+ -webkit-border-radius: 10px;
21
+ -moz-border-radius: 10px;
22
+ border-radius: 10px;
23
+ }
24
+
25
+ /*滚动条鼠标移上去*/
26
+ ::-webkit-scrollbar-thumb:hover {
27
+ // background-color: #bbb;
28
+ }
29
+
30
+ ::-webkit-scrollbar-track-piece {
31
+ width: 6px;
32
+ height: 6px;
33
+ }
@@ -1,22 +1,35 @@
1
- function ownKeys(object, enumerableOnly) { var keys = Object.keys(object); if (Object.getOwnPropertySymbols) { var symbols = Object.getOwnPropertySymbols(object); enumerableOnly && (symbols = symbols.filter(function (sym) { return Object.getOwnPropertyDescriptor(object, sym).enumerable; })), keys.push.apply(keys, symbols); } return keys; }
2
- function _objectSpread(target) { for (var i = 1; i < arguments.length; i++) { var source = null != arguments[i] ? arguments[i] : {}; i % 2 ? ownKeys(Object(source), !0).forEach(function (key) { _defineProperty(target, key, source[key]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(target, Object.getOwnPropertyDescriptors(source)) : ownKeys(Object(source)).forEach(function (key) { Object.defineProperty(target, key, Object.getOwnPropertyDescriptor(source, key)); }); } return target; }
3
- function _defineProperty(obj, key, value) { if (key in obj) { Object.defineProperty(obj, key, { value: value, enumerable: true, configurable: true, writable: true }); } else { obj[key] = value; } return obj; }
4
- function _slicedToArray(arr, i) { return _arrayWithHoles(arr) || _iterableToArrayLimit(arr, i) || _unsupportedIterableToArray(arr, i) || _nonIterableRest(); }
1
+ function _typeof(o) { "@babel/helpers - typeof"; return _typeof = "function" == typeof Symbol && "symbol" == typeof Symbol.iterator ? function (o) { return typeof o; } : function (o) { return o && "function" == typeof Symbol && o.constructor === Symbol && o !== Symbol.prototype ? "symbol" : typeof o; }, _typeof(o); }
2
+ var _excluded = ["includeToday"];
3
+ function ownKeys(e, r) { var t = Object.keys(e); if (Object.getOwnPropertySymbols) { var o = Object.getOwnPropertySymbols(e); r && (o = o.filter(function (r) { return Object.getOwnPropertyDescriptor(e, r).enumerable; })), t.push.apply(t, o); } return t; }
4
+ function _objectSpread(e) { for (var r = 1; r < arguments.length; r++) { var t = null != arguments[r] ? arguments[r] : {}; r % 2 ? ownKeys(Object(t), !0).forEach(function (r) { _defineProperty(e, r, t[r]); }) : Object.getOwnPropertyDescriptors ? Object.defineProperties(e, Object.getOwnPropertyDescriptors(t)) : ownKeys(Object(t)).forEach(function (r) { Object.defineProperty(e, r, Object.getOwnPropertyDescriptor(t, r)); }); } return e; }
5
+ function _defineProperty(e, r, t) { return (r = _toPropertyKey(r)) in e ? Object.defineProperty(e, r, { value: t, enumerable: !0, configurable: !0, writable: !0 }) : e[r] = t, e; }
6
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
7
+ function _toPrimitive(t, r) { if ("object" != _typeof(t) || !t) return t; var e = t[Symbol.toPrimitive]; if (void 0 !== e) { var i = e.call(t, r || "default"); if ("object" != _typeof(i)) return i; throw new TypeError("@@toPrimitive must return a primitive value."); } return ("string" === r ? String : Number)(t); }
8
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
5
9
  function _nonIterableRest() { throw new TypeError("Invalid attempt to destructure non-iterable instance.\nIn order to be iterable, non-array objects must have a [Symbol.iterator]() method."); }
6
- function _unsupportedIterableToArray(o, minLen) { if (!o) return; if (typeof o === "string") return _arrayLikeToArray(o, minLen); var n = Object.prototype.toString.call(o).slice(8, -1); if (n === "Object" && o.constructor) n = o.constructor.name; if (n === "Map" || n === "Set") return Array.from(o); if (n === "Arguments" || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(n)) return _arrayLikeToArray(o, minLen); }
7
- function _arrayLikeToArray(arr, len) { if (len == null || len > arr.length) len = arr.length; for (var i = 0, arr2 = new Array(len); i < len; i++) { arr2[i] = arr[i]; } return arr2; }
8
- function _iterableToArrayLimit(arr, i) { var _i = arr == null ? null : typeof Symbol !== "undefined" && arr[Symbol.iterator] || arr["@@iterator"]; if (_i == null) return; var _arr = []; var _n = true; var _d = false; var _s, _e; try { for (_i = _i.call(arr); !(_n = (_s = _i.next()).done); _n = true) { _arr.push(_s.value); if (i && _arr.length === i) break; } } catch (err) { _d = true; _e = err; } finally { try { if (!_n && _i["return"] != null) _i["return"](); } finally { if (_d) throw _e; } } return _arr; }
9
- function _arrayWithHoles(arr) { if (Array.isArray(arr)) return arr; }
10
- import React, { useEffect, useRef, useState } from 'react';
10
+ function _unsupportedIterableToArray(r, a) { if (r) { if ("string" == typeof r) return _arrayLikeToArray(r, a); var t = {}.toString.call(r).slice(8, -1); return "Object" === t && r.constructor && (t = r.constructor.name), "Map" === t || "Set" === t ? Array.from(r) : "Arguments" === t || /^(?:Ui|I)nt(?:8|16|32)(?:Clamped)?Array$/.test(t) ? _arrayLikeToArray(r, a) : void 0; } }
11
+ function _arrayLikeToArray(r, a) { (null == a || a > r.length) && (a = r.length); for (var e = 0, n = Array(a); e < a; e++) n[e] = r[e]; return n; }
12
+ function _iterableToArrayLimit(r, l) { var t = null == r ? null : "undefined" != typeof Symbol && r[Symbol.iterator] || r["@@iterator"]; if (null != t) { var e, n, i, u, a = [], f = !0, o = !1; try { if (i = (t = t.call(r)).next, 0 === l) { if (Object(t) !== t) return; f = !1; } else for (; !(f = (e = i.call(t)).done) && (a.push(e.value), a.length !== l); f = !0); } catch (r) { o = !0, n = r; } finally { try { if (!f && null != t.return && (u = t.return(), Object(u) !== u)) return; } finally { if (o) throw n; } } return a; } }
13
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
14
+ function _objectWithoutProperties(e, t) { if (null == e) return {}; var o, r, i = _objectWithoutPropertiesLoose(e, t); if (Object.getOwnPropertySymbols) { var s = Object.getOwnPropertySymbols(e); for (r = 0; r < s.length; r++) o = s[r], t.includes(o) || {}.propertyIsEnumerable.call(e, o) && (i[o] = e[o]); } return i; }
15
+ function _objectWithoutPropertiesLoose(r, e) { if (null == r) return {}; var t = {}; for (var n in r) if ({}.hasOwnProperty.call(r, n)) { if (e.includes(n)) continue; t[n] = r[n]; } return t; }
16
+ import React, { useEffect, useRef, useState, useContext } from 'react';
11
17
  import { Spin } from 'antd';
12
18
  import './styles/index.less';
19
+ import { BizGlobalDataContext } from '@zgfe/business-lib';
13
20
  import { AttributableContext } from '../../types';
14
21
  import EditTitle from '../../components/title';
15
22
  import { getInitDate, initTarget } from '../../constants/initData';
16
23
  import AttributionContent from '../content';
17
24
  var classPrefix = 'attribution-container';
18
- var AttributionHome = function AttributionHome(props) {
25
+ var AttributionHome = function AttributionHome(_ref) {
19
26
  var _props$defaultValue;
27
+ var _ref$includeToday = _ref.includeToday,
28
+ includeToday = _ref$includeToday === void 0 ? true : _ref$includeToday,
29
+ props = _objectWithoutProperties(_ref, _excluded);
30
+ var _useContext = useContext(BizGlobalDataContext),
31
+ currentApp = _useContext.currentApp,
32
+ useBizStoreLoading = _useContext.useBizStoreLoading;
20
33
  var _useState = useState(),
21
34
  _useState2 = _slicedToArray(_useState, 2),
22
35
  searchData = _useState2[0],
@@ -25,30 +38,34 @@ var AttributionHome = function AttributionHome(props) {
25
38
  _useState4 = _slicedToArray(_useState3, 2),
26
39
  loading = _useState4[0],
27
40
  setLoading = _useState4[1];
28
- var _useState5 = useState(true),
41
+ var _useState5 = useState(false),
29
42
  _useState6 = _slicedToArray(_useState5, 2),
30
- pageLoading = _useState6[0],
31
- setPageLoading = _useState6[1];
32
- var _useState7 = useState(),
43
+ refreshLoading = _useState6[0],
44
+ setRefreshLoading = _useState6[1];
45
+ var _useState7 = useState(true),
33
46
  _useState8 = _slicedToArray(_useState7, 2),
34
- title = _useState8[0],
35
- setTitle = _useState8[1];
47
+ pageLoading = _useState8[0],
48
+ setPageLoading = _useState8[1];
36
49
  var _useState9 = useState(),
37
50
  _useState10 = _slicedToArray(_useState9, 2),
38
- panelId = _useState10[0],
39
- setPanelId = _useState10[1];
51
+ title = _useState10[0],
52
+ setTitle = _useState10[1];
40
53
  var _useState11 = useState(),
41
54
  _useState12 = _slicedToArray(_useState11, 2),
42
- elementId = _useState12[0],
43
- setElementId = _useState12[1];
44
- var _useState13 = useState(false),
55
+ panelId = _useState12[0],
56
+ setPanelId = _useState12[1];
57
+ var _useState13 = useState(),
45
58
  _useState14 = _slicedToArray(_useState13, 2),
46
- searching = _useState14[0],
47
- setSearching = _useState14[1];
48
- var _useState15 = useState(true),
59
+ elementId = _useState14[0],
60
+ setElementId = _useState14[1];
61
+ var _useState15 = useState(false),
49
62
  _useState16 = _slicedToArray(_useState15, 2),
50
- buttonDisable = _useState16[0],
51
- setButtonDisable = _useState16[1];
63
+ searching = _useState16[0],
64
+ setSearching = _useState16[1];
65
+ var _useState17 = useState(true),
66
+ _useState18 = _slicedToArray(_useState17, 2),
67
+ buttonDisable = _useState18[0],
68
+ setButtonDisable = _useState18[1];
52
69
  var attributionRef = useRef(null);
53
70
  useEffect(function () {
54
71
  setPageLoading(true);
@@ -73,7 +90,8 @@ var AttributionHome = function AttributionHome(props) {
73
90
  setSearchData({
74
91
  targetFilters: initTarget,
75
92
  sourceFilters: initTarget,
76
- time: getInitDate(props.includeToday)
93
+ time: getInitDate(includeToday),
94
+ platform: 0
77
95
  });
78
96
  };
79
97
  var changeLoading = function changeLoading(flag) {
@@ -91,7 +109,7 @@ var AttributionHome = function AttributionHome(props) {
91
109
  attributionRef.current.saveAsPanel();
92
110
  }
93
111
  };
94
- if (pageLoading) {
112
+ if (pageLoading || useBizStoreLoading) {
95
113
  return /*#__PURE__*/React.createElement(Spin, null);
96
114
  }
97
115
  return /*#__PURE__*/React.createElement(Spin, {
@@ -99,6 +117,9 @@ var AttributionHome = function AttributionHome(props) {
99
117
  wrapperClassName: classPrefix
100
118
  }, /*#__PURE__*/React.createElement(AttributableContext.Provider, {
101
119
  value: {
120
+ refreshLoading: refreshLoading,
121
+ setRefreshLoading: setRefreshLoading,
122
+ currentApp: currentApp,
102
123
  panelId: panelId,
103
124
  elementId: elementId,
104
125
  panelName: title,
@@ -106,29 +127,25 @@ var AttributionHome = function AttributionHome(props) {
106
127
  buttonDisable: buttonDisable,
107
128
  setButtonDisable: setButtonDisable,
108
129
  panelDisabled: props.panelDisabled,
109
- includeToday: props.includeToday,
130
+ includeToday: includeToday,
110
131
  changeLoading: changeLoading,
111
132
  afterEditTarget: props.afterEditTarget
112
133
  }
113
- }, panelId && /*#__PURE__*/React.createElement(EditTitle, {
134
+ }, panelId && (/*#__PURE__*/React.createElement(EditTitle, {
114
135
  title: title,
115
136
  type: (_props$defaultValue = props.defaultValue) === null || _props$defaultValue === void 0 ? void 0 : _props$defaultValue.panelType,
116
137
  onSave: onSave,
117
138
  onSaveAs: onSaveAs,
118
139
  onEditTitle: setTitle
119
- }), !panelId && /*#__PURE__*/React.createElement("div", {
120
- className: "".concat(classPrefix, "-header-title")
121
- }, "\u5F52\u56E0"), /*#__PURE__*/React.createElement("div", {
140
+ })), /*#__PURE__*/React.createElement("div", {
122
141
  className: "".concat(classPrefix, "-content ").concat(panelId ? classPrefix + '-content2' : '')
123
142
  }, /*#__PURE__*/React.createElement(AttributionContent, {
124
143
  ref: attributionRef,
125
144
  value: searchData,
145
+ panelId: panelId,
126
146
  onSearching: function onSearching(val) {
127
147
  return setSearching(val);
128
148
  }
129
149
  }))));
130
150
  };
131
- AttributionHome.defaultProps = {
132
- includeToday: true
133
- };
134
151
  export default AttributionHome;
@@ -1,68 +1,68 @@
1
- .attribution-container {
2
- width: 100%;
3
- height: 100%;
4
- overflow: hidden;
5
- background: #fff;
6
- .ant-spin-container {
7
- width: 100%;
8
- height: 100%;
9
- }
10
- &-header-title {
11
- height: 48px;
12
- padding: 0px 24px;
13
- color: #021429;
14
- font-weight: 500;
15
- font-size: 16px;
16
- line-height: 48px;
17
- }
18
- &-content {
19
- width: 100%;
20
- height: 100%;
21
- // overflow: auto;
22
- overflow-x: hidden;
23
- background: #fff;
24
- border-top: 1px solid #eaeaea;
25
- .attribution-content {
26
- &-top-content {
27
- background: #fafafb;
28
- padding: 16px 24px;
29
- &-box{
30
- padding: 24px;
31
- background: #fff;
32
- border: 1px solid #ECEDF0;
33
- border-radius: 8px;
34
- }
35
- }
36
- &-bottom-content-box {
37
- min-height: 382px;
38
- padding: 24px;
39
- background: #fff;
40
- &-times {
41
- display: flex;
42
- justify-content: space-between;
43
- }
44
- }
45
- }
46
- }
47
-
48
- &-content2 {
49
- height: calc(100% - 64px);
50
- }
51
-
52
- .biz-event-select.border .biz-event-select-handle {
53
- padding: 0;
54
- border: none;
55
- }
56
-
57
- .biz-select-option:not(.biz-select-option-multiple),
58
- .biz-attr-select-option {
59
- &.active {
60
- // background: @primary-color !important;
61
- }
62
- }
63
-
64
- // 设置下拉框最大高度
65
- .biz-select-overlay {
66
- max-height: 300px;
67
- }
68
- }
1
+ .attribution-container {
2
+ width: 100%;
3
+ height: 100%;
4
+ overflow: hidden;
5
+ background: #fff;
6
+ .ant-spin-container {
7
+ width: 100%;
8
+ height: 100%;
9
+ }
10
+ &-header-title {
11
+ height: 48px;
12
+ padding: 0px 24px;
13
+ color: #021429;
14
+ font-weight: 500;
15
+ font-size: 16px;
16
+ line-height: 48px;
17
+ }
18
+ &-content {
19
+ width: 100%;
20
+ height: 100%;
21
+ // overflow: auto;
22
+ overflow-x: hidden;
23
+ background: #fff;
24
+ border-top: 1px solid #eaeaea;
25
+ .attribution-content {
26
+ &-top-content {
27
+ background: #fafafb;
28
+ padding: 16px;
29
+ &-box{
30
+ padding: 24px;
31
+ background: #fff;
32
+ border: 1px solid #ECEDF0;
33
+ border-radius: 8px;
34
+ }
35
+ }
36
+ &-bottom-content-box {
37
+ min-height: 382px;
38
+ padding: 24px;
39
+ background: #fff;
40
+ &-times {
41
+ display: flex;
42
+ justify-content: space-between;
43
+ }
44
+ }
45
+ }
46
+ }
47
+
48
+ &-content2 {
49
+ height: calc(100% - 64px);
50
+ }
51
+
52
+ .biz-event-select.border .biz-event-select-handle {
53
+ padding: 0;
54
+ border: none;
55
+ }
56
+
57
+ .biz-select-option:not(.biz-select-option-multiple),
58
+ .biz-attr-select-option {
59
+ &.active {
60
+ // background: @primary-color !important;
61
+ }
62
+ }
63
+
64
+ // 设置下拉框最大高度
65
+ .biz-select-overlay {
66
+ max-height: 300px;
67
+ }
68
+ }