@zgfe/modules-attribution 1.1.6-alpha.1 → 1.1.6-mt.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.
Files changed (34) 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 +16 -13
  4. package/es/components/option/styles/index.less +17 -17
  5. package/es/components/searchTime/index.js +5 -5
  6. package/es/components/searchTime/styles/index.less +19 -19
  7. package/es/components/tableList/styles/index.less +18 -18
  8. package/es/components/title/index.js +13 -42
  9. package/es/components/title/searchTitle.js +8 -8
  10. package/es/components/title/styles/index.less +84 -84
  11. package/es/components/title/styles/search.less +27 -27
  12. package/es/images/empty.png +0 -0
  13. package/es/modules/chart/demo/index.d.ts +2 -1
  14. package/es/modules/chart/index.js +11 -8
  15. package/es/modules/content/index.js +13 -10
  16. package/es/modules/content/styles/index.less +7 -7
  17. package/es/modules/content/utils.js +6 -3
  18. package/es/modules/home/demo/create.d.ts +2 -1
  19. package/es/modules/home/demo/edit.d.ts +2 -1
  20. package/es/modules/home/demo/index.d.ts +2 -1
  21. package/es/modules/home/demo/scene.d.ts +2 -1
  22. package/es/modules/home/demo/styles/index.less +33 -33
  23. package/es/modules/home/index.js +31 -27
  24. package/es/modules/home/styles/index.less +68 -68
  25. package/es/modules/searchPanel/components/attributableEvents.js +31 -31
  26. package/es/modules/searchPanel/components/globalAttribute.d.ts +1 -1
  27. package/es/modules/searchPanel/components/globalAttribute.js +13 -13
  28. package/es/modules/searchPanel/components/index.js +6 -6
  29. package/es/modules/searchPanel/components/targetEvent.js +10 -10
  30. package/es/modules/searchPanel/index.js +41 -38
  31. package/es/modules/searchPanel/styles/index.less +225 -225
  32. package/es/style/image/ring.svg +8 -8
  33. package/es/style/index.less +47 -47
  34. package/package.json +9 -2
@@ -1,84 +1,84 @@
1
- @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
-
3
- .attribution-title {
4
- display: flex;
5
- align-items: center;
6
- justify-content: space-between;
7
- width: 100%;
8
- height: 64px;
9
- padding: 0 24px;
10
- background: #fff;
11
-
12
- &-option {
13
- display: flex;
14
- align-items: center;
15
- }
16
- &-input-box {
17
- white-space: nowrap;
18
- .btn-back {
19
- margin-right: 8px;
20
- color: #5F6085;
21
- }
22
- &-container {
23
- position: relative;
24
- display: inline-block;
25
- height: 100%;
26
- }
27
- &-content {
28
- height: @height-base;
29
- color: @text-color;
30
- font-weight: 600;
31
- font-size:16px;
32
- background: @white !important;
33
- border: 1px solid transparent;
34
-
35
- &:hover,
36
- &:focus {
37
- // border-color: @primary-color;
38
- }
39
- }
40
- }
41
- &-error-tip {
42
- position: absolute;
43
- top: 100%;
44
- left: 0;
45
- color: @error-color;
46
- line-height: 1.2;
47
- }
48
- &-dropdown {
49
- .ant-dropdown-menu-item:hover span {
50
- // color: @primary-color;
51
- }
52
-
53
- .ant-dropdown-menu-item-icon {
54
- font-size: 16px;
55
- }
56
- }
57
- /*更多按钮*/
58
- &-pop-btn {
59
- width: @height-base;
60
- height: @height-base;
61
- color: @text-color-secondary;
62
- font-size: 16px;
63
- line-height: @height-base;
64
- text-align: center;
65
- border-radius: @border-radius-small;
66
- transform: rotate(90deg);
67
-
68
- &:hover {
69
- .__default-hover();
70
- }
71
- }
72
- }
73
-
74
- .attribution-btn {
75
- margin-right: 16px;
76
- border-radius: @border-radius-small;
77
- }
78
-
79
- .attribution-divider {
80
- width: 1px;
81
- height: @height-base;
82
- margin: 0 32px;
83
- background: @border-color-base;
84
- }
1
+ @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
+
3
+ .attribution-title {
4
+ display: flex;
5
+ align-items: center;
6
+ justify-content: space-between;
7
+ width: 100%;
8
+ height: 64px;
9
+ padding: 0 24px;
10
+ background: #fff;
11
+
12
+ &-option {
13
+ display: flex;
14
+ align-items: center;
15
+ }
16
+ &-input-box {
17
+ white-space: nowrap;
18
+ .btn-back {
19
+ margin-right: 8px;
20
+ color: #5F6085;
21
+ }
22
+ &-container {
23
+ position: relative;
24
+ display: inline-block;
25
+ height: 100%;
26
+ }
27
+ &-content {
28
+ height: @height-base;
29
+ color: @text-color;
30
+ font-weight: 600;
31
+ font-size:16px;
32
+ background: @white !important;
33
+ border: 1px solid transparent;
34
+
35
+ &:hover,
36
+ &:focus {
37
+ // border-color: @primary-color;
38
+ }
39
+ }
40
+ }
41
+ &-error-tip {
42
+ position: absolute;
43
+ top: 100%;
44
+ left: 0;
45
+ color: @error-color;
46
+ line-height: 1.2;
47
+ }
48
+ &-dropdown {
49
+ .ant-dropdown-menu-item:hover span {
50
+ // color: @primary-color;
51
+ }
52
+
53
+ .ant-dropdown-menu-item-icon {
54
+ font-size: 16px;
55
+ }
56
+ }
57
+ /*更多按钮*/
58
+ &-pop-btn {
59
+ width: @height-base;
60
+ height: @height-base;
61
+ color: @text-color-secondary;
62
+ font-size: 16px;
63
+ line-height: @height-base;
64
+ text-align: center;
65
+ border-radius: @border-radius-small;
66
+ transform: rotate(90deg);
67
+
68
+ &:hover {
69
+ .__default-hover();
70
+ }
71
+ }
72
+ }
73
+
74
+ .attribution-btn {
75
+ margin-right: 16px;
76
+ border-radius: @border-radius-small;
77
+ }
78
+
79
+ .attribution-divider {
80
+ width: 1px;
81
+ height: @height-base;
82
+ margin: 0 32px;
83
+ background: @border-color-base;
84
+ }
@@ -1,27 +1,27 @@
1
- @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
-
3
- .search-title {
4
- display: flex;
5
- align-items: center;
6
- height: 24px;
7
- transition: all 0.3s;
8
-
9
- &-title {
10
- margin-right: 15px;
11
- }
12
-
13
- &-input {
14
- min-width: 100px;
15
- max-width: 200px;
16
- height: 24px;
17
- background-color: #fff !important;
18
- .ant-input {
19
- background-color: #fff !important;
20
- }
21
- }
22
-
23
- &-icon {
24
- color: #5f6085;
25
- font-size: 12px;
26
- }
27
- }
1
+ @import '~@zgfe/business-lib/es/assets/styles/inner.less';
2
+
3
+ .search-title {
4
+ display: flex;
5
+ align-items: center;
6
+ height: 24px;
7
+ transition: all 0.3s;
8
+
9
+ &-title {
10
+ margin-right: 15px;
11
+ }
12
+
13
+ &-input {
14
+ min-width: 100px;
15
+ max-width: 200px;
16
+ height: 24px;
17
+ background-color: #fff !important;
18
+ .ant-input {
19
+ background-color: #fff !important;
20
+ }
21
+ }
22
+
23
+ &-icon {
24
+ color: #5f6085;
25
+ font-size: 12px;
26
+ }
27
+ }
File without changes
@@ -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;
@@ -1,12 +1,15 @@
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
+ 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; }
3
+ 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; }
4
+ 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; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
+ 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); }
7
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
5
8
  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; }
9
+ 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; } }
10
+ 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; }
11
+ 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; } }
12
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
10
13
  import React, { useContext, useEffect, useState } from 'react';
11
14
  import { Empty } from 'antd';
12
15
  import request from '../../utils/request';
@@ -1,12 +1,15 @@
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
+ 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; }
3
+ 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; }
4
+ 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; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
+ 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); }
7
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
5
8
  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; }
9
+ 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; } }
10
+ 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; }
11
+ 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; } }
12
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
10
13
  import React, { useEffect, useState, useRef } from 'react';
11
14
  import SearchPanel from '../searchPanel';
12
15
  import './styles/index.less';
@@ -83,11 +86,11 @@ var AttributionContent = /*#__PURE__*/React.forwardRef(function (props, ref) {
83
86
  }, /*#__PURE__*/React.createElement(SearchTime, {
84
87
  time: searchData === null || searchData === void 0 ? void 0 : searchData.time,
85
88
  onChange: onChangeContent
86
- }), searchData && /*#__PURE__*/React.createElement(OptionGroup, {
89
+ }), searchData && (/*#__PURE__*/React.createElement(OptionGroup, {
87
90
  ref: ref,
88
91
  searchData: searchData,
89
92
  onGetSearchData: onGetSearchData
90
- })), /*#__PURE__*/React.createElement(AttributeChart, {
93
+ }))), /*#__PURE__*/React.createElement(AttributeChart, {
91
94
  params: params,
92
95
  onChangeLoading: setLoading,
93
96
  searchType: 0
@@ -1,7 +1,7 @@
1
- // .attribution-content {
2
- // &-options {
3
- // display: flex;
4
- // justify-content: flex-end;
5
- // // margin-bottom: 16px;
6
- // }
7
- // }
1
+ // .attribution-content {
2
+ // &-options {
3
+ // display: flex;
4
+ // justify-content: flex-end;
5
+ // // margin-bottom: 16px;
6
+ // }
7
+ // }
@@ -1,6 +1,9 @@
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; }
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
+ 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; }
3
+ 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; }
4
+ 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; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
+ 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); }
4
7
  import { nanoid } from 'nanoid';
5
8
  export var handleTableData = function handleTableData(data) {
6
9
  var tableData = {};
@@ -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;
@@ -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;
@@ -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;
@@ -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;
@@ -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,12 +1,15 @@
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
+ 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; }
3
+ 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; }
4
+ 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; }
5
+ function _toPropertyKey(t) { var i = _toPrimitive(t, "string"); return "symbol" == _typeof(i) ? i : i + ""; }
6
+ 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); }
7
+ function _slicedToArray(r, e) { return _arrayWithHoles(r) || _iterableToArrayLimit(r, e) || _unsupportedIterableToArray(r, e) || _nonIterableRest(); }
5
8
  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; }
9
+ 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; } }
10
+ 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; }
11
+ 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; } }
12
+ function _arrayWithHoles(r) { if (Array.isArray(r)) return r; }
10
13
  import React, { useEffect, useRef, useState } from 'react';
11
14
  import { Spin } from 'antd';
12
15
  import './styles/index.less';
@@ -15,8 +18,11 @@ import EditTitle from '../../components/title';
15
18
  import { getInitDate, initTarget } from '../../constants/initData';
16
19
  import AttributionContent from '../content';
17
20
  var classPrefix = 'attribution-container';
18
- var AttributionHome = function AttributionHome(props) {
21
+ var AttributionHome = function AttributionHome() {
19
22
  var _props$defaultValue;
23
+ var props = arguments.length > 0 && arguments[0] !== undefined ? arguments[0] : {
24
+ includeToday: true
25
+ };
20
26
  var _useState = useState(),
21
27
  _useState2 = _slicedToArray(_useState, 2),
22
28
  searchData = _useState2[0],
@@ -34,21 +40,21 @@ var AttributionHome = function AttributionHome(props) {
34
40
  title = _useState8[0],
35
41
  setTitle = _useState8[1];
36
42
  var _useState9 = useState(),
37
- _useState10 = _slicedToArray(_useState9, 2),
38
- panelId = _useState10[0],
39
- setPanelId = _useState10[1];
40
- var _useState11 = useState(),
43
+ _useState0 = _slicedToArray(_useState9, 2),
44
+ panelId = _useState0[0],
45
+ setPanelId = _useState0[1];
46
+ var _useState1 = useState(),
47
+ _useState10 = _slicedToArray(_useState1, 2),
48
+ elementId = _useState10[0],
49
+ setElementId = _useState10[1];
50
+ var _useState11 = useState(false),
41
51
  _useState12 = _slicedToArray(_useState11, 2),
42
- elementId = _useState12[0],
43
- setElementId = _useState12[1];
44
- var _useState13 = useState(false),
52
+ searching = _useState12[0],
53
+ setSearching = _useState12[1];
54
+ var _useState13 = useState(true),
45
55
  _useState14 = _slicedToArray(_useState13, 2),
46
- searching = _useState14[0],
47
- setSearching = _useState14[1];
48
- var _useState15 = useState(true),
49
- _useState16 = _slicedToArray(_useState15, 2),
50
- buttonDisable = _useState16[0],
51
- setButtonDisable = _useState16[1];
56
+ buttonDisable = _useState14[0],
57
+ setButtonDisable = _useState14[1];
52
58
  var attributionRef = useRef(null);
53
59
  useEffect(function () {
54
60
  setPageLoading(true);
@@ -110,13 +116,13 @@ var AttributionHome = function AttributionHome(props) {
110
116
  changeLoading: changeLoading,
111
117
  afterEditTarget: props.afterEditTarget
112
118
  }
113
- }, panelId && /*#__PURE__*/React.createElement(EditTitle, {
119
+ }, panelId && (/*#__PURE__*/React.createElement(EditTitle, {
114
120
  title: title,
115
121
  type: (_props$defaultValue = props.defaultValue) === null || _props$defaultValue === void 0 ? void 0 : _props$defaultValue.panelType,
116
122
  onSave: onSave,
117
123
  onSaveAs: onSaveAs,
118
124
  onEditTitle: setTitle
119
- }), !panelId && /*#__PURE__*/React.createElement("div", {
125
+ })), !panelId && /*#__PURE__*/React.createElement("div", {
120
126
  className: "".concat(classPrefix, "-header-title")
121
127
  }, "\u5F52\u56E0"), /*#__PURE__*/React.createElement("div", {
122
128
  className: "".concat(classPrefix, "-content ").concat(panelId ? classPrefix + '-content2' : '')
@@ -128,7 +134,5 @@ var AttributionHome = function AttributionHome(props) {
128
134
  }
129
135
  }))));
130
136
  };
131
- AttributionHome.defaultProps = {
132
- includeToday: true
133
- };
137
+ ;
134
138
  export default AttributionHome;