@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.
- package/README.md +35 -35
- package/es/components/common/styles/index.less +27 -27
- package/es/components/option/index.js +16 -13
- package/es/components/option/styles/index.less +17 -17
- package/es/components/searchTime/index.js +5 -5
- package/es/components/searchTime/styles/index.less +19 -19
- package/es/components/tableList/styles/index.less +18 -18
- package/es/components/title/index.js +13 -42
- package/es/components/title/searchTitle.js +8 -8
- package/es/components/title/styles/index.less +84 -84
- package/es/components/title/styles/search.less +27 -27
- package/es/images/empty.png +0 -0
- package/es/modules/chart/demo/index.d.ts +2 -1
- package/es/modules/chart/index.js +11 -8
- package/es/modules/content/index.js +13 -10
- package/es/modules/content/styles/index.less +7 -7
- package/es/modules/content/utils.js +6 -3
- package/es/modules/home/demo/create.d.ts +2 -1
- package/es/modules/home/demo/edit.d.ts +2 -1
- package/es/modules/home/demo/index.d.ts +2 -1
- package/es/modules/home/demo/scene.d.ts +2 -1
- package/es/modules/home/demo/styles/index.less +33 -33
- package/es/modules/home/index.js +31 -27
- package/es/modules/home/styles/index.less +68 -68
- package/es/modules/searchPanel/components/attributableEvents.js +31 -31
- package/es/modules/searchPanel/components/globalAttribute.d.ts +1 -1
- package/es/modules/searchPanel/components/globalAttribute.js +13 -13
- package/es/modules/searchPanel/components/index.js +6 -6
- package/es/modules/searchPanel/components/targetEvent.js +10 -10
- package/es/modules/searchPanel/index.js +41 -38
- package/es/modules/searchPanel/styles/index.less +225 -225
- package/es/style/image/ring.svg +8 -8
- package/es/style/index.less +47 -47
- 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
|
+
}
|
package/es/images/empty.png
CHANGED
|
File without changes
|
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
function
|
|
2
|
-
function
|
|
3
|
-
function
|
|
4
|
-
function
|
|
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(
|
|
7
|
-
function _arrayLikeToArray(
|
|
8
|
-
function _iterableToArrayLimit(
|
|
9
|
-
function _arrayWithHoles(
|
|
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
|
|
2
|
-
function
|
|
3
|
-
function
|
|
4
|
-
function
|
|
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(
|
|
7
|
-
function _arrayLikeToArray(
|
|
8
|
-
function _iterableToArrayLimit(
|
|
9
|
-
function _arrayWithHoles(
|
|
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
|
|
2
|
-
function
|
|
3
|
-
function
|
|
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,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
|
+
}
|
package/es/modules/home/index.js
CHANGED
|
@@ -1,12 +1,15 @@
|
|
|
1
|
-
function
|
|
2
|
-
function
|
|
3
|
-
function
|
|
4
|
-
function
|
|
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(
|
|
7
|
-
function _arrayLikeToArray(
|
|
8
|
-
function _iterableToArrayLimit(
|
|
9
|
-
function _arrayWithHoles(
|
|
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(
|
|
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
|
-
|
|
38
|
-
panelId =
|
|
39
|
-
setPanelId =
|
|
40
|
-
var
|
|
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
|
-
|
|
43
|
-
|
|
44
|
-
var _useState13 = useState(
|
|
52
|
+
searching = _useState12[0],
|
|
53
|
+
setSearching = _useState12[1];
|
|
54
|
+
var _useState13 = useState(true),
|
|
45
55
|
_useState14 = _slicedToArray(_useState13, 2),
|
|
46
|
-
|
|
47
|
-
|
|
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
|
-
|
|
132
|
-
includeToday: true
|
|
133
|
-
};
|
|
137
|
+
;
|
|
134
138
|
export default AttributionHome;
|